File indexing completed on 2026-05-10 08:36:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef LLVM_CLANG_DRIVER_OPTIONUTILS_H
0014 #define LLVM_CLANG_DRIVER_OPTIONUTILS_H
0015
0016 #include "clang/Basic/Diagnostic.h"
0017 #include "clang/Basic/LLVM.h"
0018 #include "llvm/Option/OptSpecifier.h"
0019
0020 namespace llvm {
0021
0022 namespace opt {
0023
0024 class ArgList;
0025
0026 }
0027
0028 }
0029
0030 namespace clang {
0031
0032
0033 int getLastArgIntValue(const llvm::opt::ArgList &Args,
0034 llvm::opt::OptSpecifier Id, int Default,
0035 DiagnosticsEngine *Diags = nullptr, unsigned Base = 0);
0036
0037 inline int getLastArgIntValue(const llvm::opt::ArgList &Args,
0038 llvm::opt::OptSpecifier Id, int Default,
0039 DiagnosticsEngine &Diags, unsigned Base = 0) {
0040 return getLastArgIntValue(Args, Id, Default, &Diags, Base);
0041 }
0042
0043 uint64_t getLastArgUInt64Value(const llvm::opt::ArgList &Args,
0044 llvm::opt::OptSpecifier Id, uint64_t Default,
0045 DiagnosticsEngine *Diags = nullptr,
0046 unsigned Base = 0);
0047
0048 inline uint64_t getLastArgUInt64Value(const llvm::opt::ArgList &Args,
0049 llvm::opt::OptSpecifier Id,
0050 uint64_t Default,
0051 DiagnosticsEngine &Diags,
0052 unsigned Base = 0) {
0053 return getLastArgUInt64Value(Args, Id, Default, &Diags, Base);
0054 }
0055
0056 }
0057
0058 #endif