clang API Documentation
#include <LangOptions.h>


Public Types | |
| enum | GCMode { NonGC, GCOnly, HybridGC } |
| enum | StackProtectorMode { SSPOff, SSPOn, SSPReq } |
| enum | SignedOverflowBehaviorTy { SOB_Undefined, SOB_Defined, SOB_Trapping } |
| typedef clang::Visibility | Visibility |
Public Member Functions | |
| BENIGN_LANGOPT (ObjCDefaultSynthProperties, 1, 0,"Objective-C auto-synthesized properties") BENIGN_LANGOPT(ObjCInferRelatedResultType | |
| Objective C related result type inference | VALUE_LANGOPT (PackStruct, 32, 0,"default struct packing maximum alignment") LANGOPT(AssumeSaneOperatorNew |
| Objective C related result type inference implicit | __attribute__ ((malloc)) for C++'s new operators") ENUM_LANGOPT(VisibilityMode |
| Objective C related result type inference implicit symbol visibility | ENUM_LANGOPT (StackProtector, StackProtectorMode, 2, SSPOff,"stack protector mode") ENUM_LANGOPT(SignedOverflowBehavior |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling | BENIGN_LANGOPT (InstantiationDepth, 32, 1024,"maximum template instantiation depth") BENIGN_LANGOPT(ConstexprCallDepth |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth | BENIGN_LANGOPT (NumLargeByValueCopy, 32, 0,"if non-zero, warn about parameter or return Warn if parameter/return value is larger in bytes than this setting. 0 is no check.") VALUE_LANGOPT(MSCVersion |
| LangOptions () | |
| BENIGN_LANGOPT (ObjCDefaultSynthProperties, 1, 0,"Objective-C auto-synthesized properties") BENIGN_LANGOPT(ObjCInferRelatedResultType | |
| Objective C related result type inference | VALUE_LANGOPT (PackStruct, 32, 0,"default struct packing maximum alignment") LANGOPT(AssumeSaneOperatorNew |
| Objective C related result type inference implicit | __attribute__ ((malloc)) for C++'s new operators") ENUM_LANGOPT(VisibilityMode |
| Objective C related result type inference implicit symbol visibility | ENUM_LANGOPT (StackProtector, StackProtectorMode, 2, SSPOff,"stack protector mode") ENUM_LANGOPT(SignedOverflowBehavior |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling | BENIGN_LANGOPT (InstantiationDepth, 32, 1024,"maximum template instantiation depth") BENIGN_LANGOPT(ConstexprCallDepth |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth | BENIGN_LANGOPT (NumLargeByValueCopy, 32, 0,"if non-zero, warn about parameter or return Warn if parameter/return value is larger in bytes than this setting. 0 is no check.") VALUE_LANGOPT(MSCVersion |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth version of Microsoft Visual C C bool | isSignedOverflowDefined () const |
| void | resetNonModularOptions () |
| Reset all of the options that are not considered when building a module. | |
Public Attributes | |
| Objective C related result type inference implicit | Visibility |
| Objective C related result type inference implicit | DefaultVisibility |
| Objective C related result type inference implicit symbol visibility | SignedOverflowBehaviorTy |
| Objective C related result type inference implicit symbol visibility | SOB_Undefined |
| std::string | ObjCConstantStringClass |
| std::string | OverflowHandler |
| std::string | CurrentModule |
| The name of the current module. | |
LangOptions - This class keeps track of the various options that can be enabled, which controls the dialect of C that is accepted.
Definition at line 25 of file LangOptions.h.
| Objective C related result type inference implicit clang::LangOptions::Visibility |
Definition at line 27 of file LangOptions.h.
Definition at line 29 of file LangOptions.h.
| enum Objective C related result type inference implicit symbol visibility clang::LangOptions::SignedOverflowBehaviorTy |
Definition at line 32 of file LangOptions.h.
Definition at line 30 of file LangOptions.h.
| LangOptions::LangOptions | ( | ) |
Definition at line 17 of file LangOptions.cpp.
| Objective C related result type inference implicit clang::LangOptions::__attribute__ | ( | (malloc) | ) | [new] |
| Objective C related result type inference implicit clang::LangOptions::__attribute__ | ( | (malloc) | ) | [new] |
| clang::LangOptions::BENIGN_LANGOPT | ( | ObjCDefaultSynthProperties | , |
| 1 | , | ||
| 0 | , | ||
| "Objective-C auto-synthesized properties" | |||
| ) |
| clang::LangOptions::BENIGN_LANGOPT | ( | ObjCDefaultSynthProperties | , |
| 1 | , | ||
| 0 | , | ||
| "Objective-C auto-synthesized properties" | |||
| ) |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling clang::LangOptions::BENIGN_LANGOPT | ( | InstantiationDepth | , |
| 32 | , | ||
| 1024 | , | ||
| "maximum template instantiation depth" | |||
| ) |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling clang::LangOptions::BENIGN_LANGOPT | ( | InstantiationDepth | , |
| 32 | , | ||
| 1024 | , | ||
| "maximum template instantiation depth" | |||
| ) |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth clang::LangOptions::BENIGN_LANGOPT | ( | NumLargeByValueCopy | , |
| 32 | , | ||
| 0 | , | ||
| "if non- | zero, | ||
| warn about parameter or return Warn if parameter/return value is larger in bytes than this setting.0 is no check." | |||
| ) |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth clang::LangOptions::BENIGN_LANGOPT | ( | NumLargeByValueCopy | , |
| 32 | , | ||
| 0 | , | ||
| "if non- | zero, | ||
| warn about parameter or return Warn if parameter/return value is larger in bytes than this setting.0 is no check." | |||
| ) |
| Objective C related result type inference implicit symbol visibility clang::LangOptions::ENUM_LANGOPT | ( | StackProtector | , |
| StackProtectorMode | , | ||
| 2 | , | ||
| SSPOff | , | ||
| "stack protector mode" | |||
| ) |
| Objective C related result type inference implicit symbol visibility clang::LangOptions::ENUM_LANGOPT | ( | StackProtector | , |
| StackProtectorMode | , | ||
| 2 | , | ||
| SSPOff | , | ||
| "stack protector mode" | |||
| ) |
| Objective C related result type inference implicit symbol visibility signed integer overflow handling maximum constexpr call depth version of Microsoft Visual C C bool clang::LangOptions::isSignedOverflowDefined | ( | ) | const [inline] |
Definition at line 70 of file LangOptions.h.
References SOB_Defined.
Referenced by clang::CodeGen::CodeGenFunction::EmitArraySubscriptExpr(), and emitPointerArithmetic().
| void LangOptions::resetNonModularOptions | ( | ) |
Reset all of the options that are not considered when building a module.
Definition at line 23 of file LangOptions.cpp.
References CurrentModule.
| Objective C related result type inference clang::LangOptions::VALUE_LANGOPT | ( | PackStruct | , |
| 32 | , | ||
| 0 | , | ||
| "default struct packing maximum alignment" | |||
| ) |
| Objective C related result type inference clang::LangOptions::VALUE_LANGOPT | ( | PackStruct | , |
| 32 | , | ||
| 0 | , | ||
| "default struct packing maximum alignment" | |||
| ) |
| std::string clang::LangOptions::CurrentModule |
The name of the current module.
Definition at line 59 of file LangOptions.h.
Referenced by clang::GenerateModuleAction::BeginSourceFileAction(), clang::GenerateModuleAction::ComputeASTConsumerArguments(), LangOptsToArgs(), clang::CompilerInstance::loadModule(), ParseLangArgs(), and resetNonModularOptions().
| Objective C related result type inference implicit clang::LangOptions::DefaultVisibility |
Definition at line 145 of file LangOptions.h.
| std::string clang::LangOptions::ObjCConstantStringClass |
Definition at line 158 of file LangOptions.h.
Referenced by LangOptsToArgs(), and ParseLangArgs().
| std::string clang::LangOptions::OverflowHandler |
The name of the handler function to be called when -ftrapv is specified. If none is specified, abort (GCC-compatible behaviour).
Definition at line 56 of file LangOptions.h.
Referenced by LangOptsToArgs(), and ParseLangArgs().
| Objective C related result type inference implicit symbol visibility clang::LangOptions::SignedOverflowBehaviorTy |
Definition at line 149 of file LangOptions.h.
| Objective C related result type inference implicit symbol visibility clang::LangOptions::SOB_Undefined |
Definition at line 149 of file LangOptions.h.
Referenced by LangOptsToArgs().
| Objective C related result type inference implicit clang::LangOptions::Visibility |
Definition at line 145 of file LangOptions.h.