[−][src]Enum clang::EntityKind
Indicates the categorization of an AST entity.
Variants
UnexposedDecl
A declaration whose specific type is not exposed via this interface.
StructDecl
A C or C++ struct.
UnionDecl
A C or C++ union.
ClassDecl
A C++ class.
EnumDecl
An enum.
FieldDecl
A C field or C++ non-static data member in a struct, union, or class.
EnumConstantDecl
An enum constant.
FunctionDecl
A function.
VarDecl
A variable.
ParmDecl
A parameter.
ObjCInterfaceDecl
An Objective-C @interface
.
ObjCCategoryDecl
An Objective-C @interface
for a category.
ObjCProtocolDecl
An Objective-C @protocol
declaration.
ObjCPropertyDecl
An Objective-C @property
declaration.
ObjCIvarDecl
An Objective-C instance variable.
ObjCInstanceMethodDecl
An Objective-C instance method.
ObjCClassMethodDecl
An Objective-C class method.
ObjCImplementationDecl
An Objective-C @implementation
.
ObjCCategoryImplDecl
An Objective-C @implementation
for a category.
TypedefDecl
A typedef.
Method
A C++ method.
Namespace
A C++ namespace.
LinkageSpec
A linkage specification (e.g., extern "C"
).
Constructor
A C++ constructor.
Destructor
A C++ destructor.
ConversionFunction
A C++ conversion function.
TemplateTypeParameter
A C++ template type parameter.
NonTypeTemplateParameter
A C++ template non-type parameter.
TemplateTemplateParameter
A C++ template template parameter.
FunctionTemplate
A C++ function template.
ClassTemplate
A C++ class template.
ClassTemplatePartialSpecialization
A C++ class template partial specialization.
NamespaceAlias
A C++ namespace alias declaration.
UsingDirective
A C++ using directive.
UsingDeclaration
A C++ using declaration.
TypeAliasDecl
A C++ type alias declaration.
ObjCSynthesizeDecl
An Objective-C @synthesize
definition.
ObjCDynamicDecl
An Objective-C @dynamic
definition.
AccessSpecifier
An access specifier.
ObjCSuperClassRef
A reference to a super class in Objective-C.
ObjCProtocolRef
A reference to a protocol in Objective-C.
ObjCClassRef
A reference to a class in Objective-C.
TypeRef
A reference to a type declaration.
BaseSpecifier
A base class specifier.
TemplateRef
A reference to a class template, function template, template template parameter, or class template partial specialization.
NamespaceRef
A reference to a namespace or namespace alias.
MemberRef
A reference to a member of a struct, union, or class that occurs in some non-expression context.
LabelRef
A reference to a labeled statement.
OverloadedDeclRef
A reference to a set of overloaded functions or function templates that has not yet been resolved to a specific function or function template.
VariableRef
A reference to a variable that occurs in some non-expression context.
UnexposedExpr
An expression whose specific kind is not exposed via this interface.
DeclRefExpr
An expression that refers to some value declaration, such as a function or enumerator.
MemberRefExpr
An expression that refers to the member of a struct, union, or class.
CallExpr
An expression that calls a function.
ObjCMessageExpr
An expression that sends a message to an Objective-C object or class.
BlockExpr
An expression that represents a block literal.
IntegerLiteral
An integer literal.
FloatingLiteral
A floating point number literal.
ImaginaryLiteral
An imaginary number literal.
StringLiteral
A string literal.
CharacterLiteral
A character literal.
ParenExpr
A parenthesized expression.
UnaryOperator
Any unary expression other than sizeof
and alignof
.
ArraySubscriptExpr
An array subscript expression ([C99 6.5.2.1]
).
BinaryOperator
A built-in binary expression (e.g., x + y
).
CompoundAssignOperator
A compound assignment expression (e.g., x += y
).
ConditionalOperator
A ternary expression.
CStyleCastExpr
An explicit cast in C or a C-style cast in C++.
CompoundLiteralExpr
A compound literal expression ([C99 6.5.2.5]
).
InitListExpr
A C or C++ initializer list.
AddrLabelExpr
A GNU address of label expression.
StmtExpr
A GNU statement expression.
GenericSelectionExpr
A C11 generic selection expression.
GNUNullExpr
A GNU __null
expression.
StaticCastExpr
A C++ static_cast<>
expression.
DynamicCastExpr
A C++ dynamic_cast<>
expression.
ReinterpretCastExpr
A C++ reinterpret_cast<>
expression.
ConstCastExpr
A C++ const_cast<>
expression.
FunctionalCastExpr
A C++ cast that uses "function" notation (e.g., int(0.5)
).
TypeidExpr
A C++ typeid
expression.
BoolLiteralExpr
A C++ boolean literal.
NullPtrLiteralExpr
A C++ nullptr
expression.
ThisExpr
A C++ this
expression.
ThrowExpr
A C++ throw
expression.
NewExpr
A C++ new
expression.
DeleteExpr
A C++ delete
expression.
UnaryExpr
A unary expression.
ObjCStringLiteral
An Objective-C string literal.
ObjCEncodeExpr
An Objective-C @encode
expression.
ObjCSelectorExpr
An Objective-C @selector
expression.
ObjCProtocolExpr
An Objective-C @protocol
expression.
ObjCBridgedCastExpr
An Objective-C bridged cast expression.
PackExpansionExpr
A C++11 parameter pack expansion expression.
SizeOfPackExpr
A C++11 sizeof...
expression.
LambdaExpr
A C++11 lambda expression.
ObjCBoolLiteralExpr
An Objective-C boolean literal.
ObjCSelfExpr
An Objective-C self
expression.
OmpArraySectionExpr
An OpenMP array section expression.
Only produced by libclang
3.8 and later.
ObjCAvailabilityCheckExpr
An Objective-C availability check expression (e.g., @available(macos 10.10, *)
).
Only produced by libclang
3.9 and later.
UnexposedStmt
A statement whose specific kind is not exposed via this interface.
LabelStmt
A labelled statement in a function.
CompoundStmt
A group of statements (e.g., a function body).
CaseStmt
A case
statement.
DefaultStmt
A default
statement.
IfStmt
An if
statement.
SwitchStmt
A switch
statement.
WhileStmt
A while
statement.
DoStmt
A do
statement.
ForStmt
A for
statement.
GotoStmt
A goto
statement.
IndirectGotoStmt
An indirect goto
statement.
ContinueStmt
A continue
statement.
BreakStmt
A break
statement.
ReturnStmt
A return
statement.
AsmStmt
An inline assembly statement.
ObjCAtTryStmt
An Objective-C @try
-@catch
-@finally
statement.
ObjCAtCatchStmt
An Objective-C @catch
statement.
ObjCAtFinallyStmt
An Objective-C @finally
statement.
ObjCAtThrowStmt
An Objective-C @throw
statement.
ObjCAtSynchronizedStmt
An Objective-C @synchronized
statement.
ObjCAutoreleasePoolStmt
An Objective-C autorelease pool statement.
ObjCForCollectionStmt
An Objective-C collection statement.
CatchStmt
A C++ catch statement.
TryStmt
A C++ try statement.
ForRangeStmt
A C++11 range-based for statement.
SehTryStmt
A Windows Structured Exception Handling __try
statement.
SehExceptStmt
A Windows Structured Exception Handling __except
statement.
SehFinallyStmt
A Windows Structured Exception Handling __finally
statement.
SehLeaveStmt
A Windows Structured Exception Handling __leave
statement.
MsAsmStmt
A Microsoft inline assembly statement.
NullStmt
A null statement.
DeclStmt
An adaptor for mixing declarations with statements and expressions.
OmpParallelDirective
An OpenMP parallel directive.
OmpSimdDirective
An OpenMP SIMD directive.
OmpForDirective
An OpenMP for directive.
OmpSectionsDirective
An OpenMP sections directive.
OmpSectionDirective
An OpenMP section directive.
OmpSingleDirective
An OpenMP single directive.
OmpParallelForDirective
An OpenMP parallel for directive.
OmpParallelSectionsDirective
An OpenMP parallel sections directive.
OmpTaskDirective
An OpenMP task directive.
OmpMasterDirective
An OpenMP master directive.
OmpCriticalDirective
An OpenMP critical directive.
OmpTaskyieldDirective
An OpenMP taskyield directive.
OmpBarrierDirective
An OpenMP barrier directive.
OmpTaskwaitDirective
An OpenMP taskwait directive.
OmpFlushDirective
An OpenMP flush directive.
OmpOrderedDirective
An OpenMP ordered directive.
Only produced by libclang
3.6 and later.
OmpAtomicDirective
An OpenMP atomic directive.
Only produced by libclang
3.6 and later.
OmpForSimdDirective
An OpenMP for SIMD directive.
Only produced by libclang
3.6 and later.
OmpParallelForSimdDirective
An OpenMP parallel for SIMD directive.
Only produced by libclang
3.6 and later.
OmpTargetDirective
An OpenMP target directive.
Only produced by libclang
3.6 and later.
OmpTeamsDirective
An OpenMP teams directive.
Only produced by libclang
3.6 and later.
OmpTaskgroupDirective
An OpenMP taskgroup directive.
Only produced by libclang
3.7 and later.
OmpCancellationPointDirective
An OpenMP cancellation point directive.
Only produced by libclang
3.7 and later.
OmpCancelDirective
An OpenMP cancel directive.
Only produced by libclang
3.7 and later.
OmpTargetDataDirective
An OpenMP target data directive.
Only produced by libclang
3.8 and later.
OmpTaskLoopDirective
An OpenMP task loop directive.
Only produced by libclang
3.8 and later.
OmpTaskLoopSimdDirective
An OpenMP task loop SIMD directive.
Only produced by libclang
3.8 and later.
OmpDistributeDirective
An OpenMP distribute directive.
Only produced by libclang
3.8 and later.
OmpTargetEnterDataDirective
An OpenMP target enter data directive.
Only produced by libclang
3.9 and later.
OmpTargetExitDataDirective
An OpenMP target exit data directive.
Only produced by libclang
3.9 and later.
OmpTargetParallelDirective
An OpenMP target parallel directive.
Only produced by libclang
3.9 and later.
OmpTargetParallelForDirective
An OpenMP target parallel for directive.
Only produced by libclang
3.9 and later.
OmpTargetUpdateDirective
An OpenMP target update directive.
Only produced by libclang
3.9 and later.
OmpDistributeParallelForDirective
An OpenMP distribute parallel for directive.
Only produced by libclang
3.9 and later.
OmpDistributeParallelForSimdDirective
An OpenMP distribute parallel for SIMD directive.
Only produced by libclang
3.9 and later.
OmpDistributeSimdDirective
An OpenMP distribute SIMD directive.
Only produced by libclang
3.9 and later.
OmpTargetParallelForSimdDirective
An OpenMP target parallel for SIMD directive.
Only produced by libclang
3.9 and later.
OmpTargetSimdDirective
An OpenMP target SIMD directive.
Only produced by libclang
4.0 and later.
OmpTeamsDistributeDirective
An OpenMP teams distribute directive.
Only produced by libclang
4.0 and later.
OmpTeamsDistributeSimdDirective
An OpenMP teams distribute SIMD directive.
Only produced by libclang
4.0 and later.
OmpTeamsDistributeParallelForSimdDirective
An OpenMP teams distribute parallel for SIMD directive.
Only produced by libclang
4.0 and later.
OmpTeamsDistributeParallelForDirective
An OpenMP teams distribute parallel for directive.
Only produced by libclang
4.0 and later.
OmpTargetTeamsDirective
An OpenMP target teams directive.
Only produced by libclang
4.0 and later.
OmpTargetTeamsDistributeDirective
An OpenMP target teams distribute directive.
Only produced by libclang
4.0 and later.
OmpTargetTeamsDistributeParallelForDirective
An OpenMP target teams distribute parallel for directive.
Only produced by libclang
4.0 and later.
OmpTargetTeamsDistributeParallelForSimdDirective
An OpenMP target teams distribute parallel for SIMD directive.
Only produced by libclang
4.0 and later.
OmpTargetTeamsDistributeSimdDirective
An OpenMP target teams distribute SIMD directive.
Only produced by libclang
4.0 and later.
TranslationUnit
The top-level AST entity which acts as the root for the other entitys.
UnexposedAttr
An attribute whose specific kind is not exposed via this interface.
IbActionAttr
An attribute applied to an Objective-C IBAction.
IbOutletAttr
An attribute applied to an Objective-C IBOutlet.
IbOutletCollectionAttr
An attribute applied to an Objective-C IBOutletCollection.
FinalAttr
The final
attribute.
OverrideAttr
The override
attribute.
AnnotateAttr
An annotation attribute.
AsmLabelAttr
An ASM label attribute.
PackedAttr
An attribute that requests for packed records (e.g., __attribute__ ((__packed__))
).
PureAttr
An attribute that asserts a function has no side effects (e.g., __attribute__((pure))
).
ConstAttr
The const
attribute.
NoDuplicateAttr
An attribute that allows calls to a function to be duplicated by the optimized
(e.g., __attribute__((noduplicate))
).
CudaConstantAttr
A CUDA constant attribute.
CudaDeviceAttr
A CUDA device attribute.
CudaGlobalAttr
A CUDA global attribute.
CudaHostAttr
A CUDA host attribute.
A CUDA shared attribute.
Only produced by libclang
3.6 and later.
VisibilityAttr
A linker visibility attribute.
Only produced by libclang
3.8 and later.
DllExport
A MSVC DLL export attribute.
Only produced by libclang
3.8 and later.
DllImport
A MSVC DLL import attribute.
Only produced by libclang
3.8 and later.
PreprocessingDirective
A preprocessing directive.
MacroDefinition
A macro definition.
MacroExpansion
A macro expansion.
InclusionDirective
An inclusion directive.
ModuleImportDecl
A module import declaration.
TypeAliasTemplateDecl
A C++11 alias template declaration (e.g., template <typename T> using M = std::map<T, T>
).
Only produced by libclang
3.8 and later.
StaticAssert
A static_assert
node.
Only produced by libclang
3.9 and later.
FriendDecl
A friend declaration.
Only produced by libclang
4.0 and later.
OverloadCandidate
A single overload in a set of overloads.
Only produced by libclang
3.7 and later.
Trait Implementations
impl PartialEq<EntityKind> for EntityKind
[src]
fn eq(&self, other: &EntityKind) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for EntityKind
[src]
fn clone(&self) -> EntityKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for EntityKind
[src]
impl Copy for EntityKind
[src]
impl Debug for EntityKind
[src]
impl Hash for EntityKind
[src]
Auto Trait Implementations
impl Send for EntityKind
impl Sync for EntityKind
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,