clang API Documentation

Public Types | Public Member Functions | Public Attributes
clang::LangOptions Class Reference

#include <LangOptions.h>

Inheritance diagram for clang::LangOptions:
Inheritance graph
[legend]
Collaboration diagram for clang::LangOptions:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.


Member Typedef Documentation

Objective C related result type inference implicit clang::LangOptions::Visibility

Definition at line 27 of file LangOptions.h.


Member Enumeration Documentation

Enumerator:
NonGC 
GCOnly 
HybridGC 

Definition at line 29 of file LangOptions.h.

enum Objective C related result type inference implicit symbol visibility clang::LangOptions::SignedOverflowBehaviorTy
Enumerator:
SOB_Undefined 
SOB_Defined 
SOB_Trapping 

Definition at line 32 of file LangOptions.h.

Enumerator:
SSPOff 
SSPOn 
SSPReq 

Definition at line 30 of file LangOptions.h.


Constructor & Destructor Documentation

LangOptions::LangOptions ( )

Definition at line 17 of file LangOptions.cpp.


Member Function Documentation

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  ,
,
,
"Objective-C auto-synthesized properties"   
)
clang::LangOptions::BENIGN_LANGOPT ( ObjCDefaultSynthProperties  ,
,
,
"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  ,
,
"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  ,
,
"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  ,
,
SSPOff  ,
"stack protector mode"   
)
Objective C related result type inference implicit symbol visibility clang::LangOptions::ENUM_LANGOPT ( StackProtector  ,
StackProtectorMode  ,
,
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]
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  ,
,
"default struct packing maximum alignment"   
)
Objective C related result type inference clang::LangOptions::VALUE_LANGOPT ( PackStruct  ,
32  ,
,
"default struct packing maximum alignment"   
)

Member Data Documentation

Objective C related result type inference implicit clang::LangOptions::DefaultVisibility

Definition at line 145 of file LangOptions.h.

Definition at line 158 of file LangOptions.h.

Referenced by LangOptsToArgs(), and ParseLangArgs().

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.


The documentation for this class was generated from the following files: