15 using namespace clang;
18 #define LANGOPT(Name, Bits, Default, Description) Name = Default; 19 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) set##Name(Default); 20 #include "clang/Basic/LangOptions.def" 24 #define LANGOPT(Name, Bits, Default, Description) 25 #define BENIGN_LANGOPT(Name, Bits, Default, Description) Name = Default; 26 #define BENIGN_ENUM_LANGOPT(Name, Type, Bits, Default, Description) \ 28 #include "clang/Basic/LangOptions.def" 47 const int Ver = OpenCLCPlusPlus ? OpenCLCPlusPlusVersion : OpenCLVersion;
48 return VersionTuple(Ver / 100, (Ver % 100) / 10);
bool isNoBuiltinFunc(StringRef Name) const
Is this a libc/libm function that is no longer recognized as a builtin because a -fno-builtin-* optio...
std::vector< std::string > XRayAlwaysInstrumentFiles
Paths to the XRay "always instrument" files specifying which objects (files, functions, variables) should be imbued with the XRay "always instrument" attribute.
void resetNonModularOptions()
Reset all of the options that are not considered when building a module.
VersionTuple getOpenCLVersionTuple() const
Return the OpenCL C or C++ version as a VersionTuple.
std::string CurrentModule
The name of the current module, of which the main source file is a part.
Defines the clang::LangOptions interface.
Dataflow Directional Tag Classes.
bool IsHeaderFile
Indicates whether the front-end is explicitly told that the input is a header file (i...
std::vector< std::string > XRayNeverInstrumentFiles
Paths to the XRay "never instrument" files specifying which objects (files, functions, variables) should be imbued with the XRay "never instrument" attribute.
std::vector< std::string > NoBuiltinFuncs
A list of all -fno-builtin-* function names (e.g., memset).
std::vector< std::string > SanitizerBlacklistFiles
Paths to blacklist files specifying which objects (files, functions, variables) should not be instrum...