15 #ifndef LLVM_CLANG_BASIC_LANGOPTIONS_H
16 #define LLVM_CLANG_BASIC_LANGOPTIONS_H
33 #define LANGOPT(Name, Bits, Default, Description) unsigned Name : Bits;
34 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description)
35 #include "clang/Basic/LangOptions.def"
40 #define LANGOPT(Name, Bits, Default, Description)
41 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
43 #include "clang/Basic/LangOptions.def"
115 #define LANGOPT(Name, Bits, Default, Description)
116 #define ENUM_LANGOPT(Name, Type, Bits, Default, Description) \
117 Type get##Name() const { return static_cast<Type>(Name); } \
118 void set##Name(Type Value) { Name = static_cast<unsigned>(Value); }
119 #include "clang/Basic/LangOptions.def"
127 !ObjCSubscriptingLegacyRuntime;
131 return MSCompatibilityVersion >= MajorVersion * 10000000U;
153 #define OPENCLEXT(nm) unsigned nm : 1;
154 #include "clang/Basic/OpenCLExtensions.def"
157 #define OPENCLEXT(nm) nm = 0;
158 #include "clang/Basic/OpenCLExtensions.def"
bool isSignedOverflowDefined() const
FPOptions(const LangOptions &LangOpts)
SanitizerSet Sanitize
Set of enabled sanitizers.
The translation unit is a prefix to a translation unit, and is not complete.
Defines types useful for describing an Objective-C runtime.
Floating point control options.
Defines the clang::SanitizerKind enum.
void resetNonModularOptions()
Reset all of the options that are not considered when building a module.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
Visibility
Describes the different kinds of visibility that a declaration may have.
Defines the clang::Visibility enumeration and various utility functions.
std::vector< std::string > ModuleFeatures
The names of any features to enable in module 'requires' decls in addition to the hard-coded list in ...
std::string CurrentModule
The name of the current module.
CommentOptions CommentOpts
Options for parsing comments.
clang::ObjCRuntime ObjCRuntime
PragmaMSPointersToMembersKind
std::string OverflowHandler
The name of the handler function to be called when -ftrapv is specified.
The basic abstraction for the target Objective-C runtime.
std::string ImplementationOfModule
The name of the module that the translation unit is an implementation of. Prevents semantic imports...
bool isSubscriptPointerArithmetic() const
Is subscripting pointer arithmetic?
bool isCompatibleWithMSVC(MSVCMajorVersion MajorVersion) const
bool isSubscriptPointerArithmetic() const
TranslationUnitKind
Describes the kind of translation unit being processed.
The translation unit is a complete translation unit.
std::vector< std::string > SanitizerBlacklistFiles
Paths to blacklist files specifying which objects (files, functions, variables) should not be instrum...
std::string ObjCConstantStringClass
clang::Visibility Visibility
The translation unit is a module.