ΒΆint getLastArgIntValue(
const llvm::opt::ArgList& Args,
llvm::opt::OptSpecifier Id,
int Default,
clang::DiagnosticsEngine* Diags = nullptr,
unsigned int Base = 0)
int getLastArgIntValue(
const llvm::opt::ArgList& Args,
llvm::opt::OptSpecifier Id,
int Default,
clang::DiagnosticsEngine* Diags = nullptr,
unsigned int Base = 0)
Description
Return the value of the last argument as an integer, or a default. If Diags is non-null, emits an error if the argument is given, but non-integral.
Declared at: clang/include/clang/Driver/OptionUtils.h:33
Parameters
- const llvm::opt::ArgList& Args
- llvm::opt::OptSpecifier Id
- int Default
- clang::DiagnosticsEngine* Diags = nullptr
- unsigned int Base = 0