clang: include/clang/Driver/OptionUtils.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_CLANG_DRIVER_OPTIONUTILS_H
14#define LLVM_CLANG_DRIVER_OPTIONUTILS_H
15
18#include "llvm/Option/OptSpecifier.h"
19
20namespace llvm {
21
22namespace opt {
23
24class ArgList;
25
26}
27
28}
29
31
32
34 llvm::opt::OptSpecifier Id, int Default,
36
38 llvm::opt::OptSpecifier Id, int Default,
41}
42
44 llvm::opt::OptSpecifier Id, uint64_t Default,
46 unsigned Base = 0);
47
49 llvm::opt::OptSpecifier Id,
52 unsigned Base = 0) {
54}
55
56}
57
58#endif
Defines the Diagnostic-related interfaces.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Concrete class used by the front-end to report problems and issues.
The JSON file list parser is used to communicate input to InstallAPI.
uint64_t getLastArgUInt64Value(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, uint64_t Default, DiagnosticsEngine *Diags=nullptr, unsigned Base=0)
int getLastArgIntValue(const llvm::opt::ArgList &Args, llvm::opt::OptSpecifier Id, int Default, DiagnosticsEngine *Diags=nullptr, unsigned Base=0)
Return the value of the last argument as an integer, or a default.
Diagnostic wrappers for TextAPI types for error reporting.