[−][src]Enum clang::EntityKind
Indicates the categorization of an AST entity.
Variants
A declaration whose specific type is not exposed via this interface.
A C or C++ struct.
A C or C++ union.
A C++ class.
An enum.
A C field or C++ non-static data member in a struct, union, or class.
An enum constant.
A function.
A variable.
A parameter.
An Objective-C @interface
.
An Objective-C @interface
for a category.
An Objective-C @protocol
declaration.
An Objective-C @property
declaration.
An Objective-C instance variable.
An Objective-C instance method.
An Objective-C class method.
An Objective-C @implementation
.
An Objective-C @implementation
for a category.
A typedef.
A C++ method.
A C++ namespace.
A linkage specification (e.g., extern "C"
).
A C++ constructor.
A C++ destructor.
A C++ conversion function.
A C++ template type parameter.
A C++ template non-type parameter.
A C++ template template parameter.
A C++ function template.
A C++ class template.
A C++ class template partial specialization.
A C++ namespace alias declaration.
A C++ using directive.
A C++ using declaration.
A C++ type alias declaration.
An Objective-C @synthesize
definition.
An Objective-C @dynamic
definition.
An access specifier.
A reference to a super class in Objective-C.
A reference to a protocol in Objective-C.
A reference to a class in Objective-C.
A reference to a type declaration.
A base class specifier.
A reference to a class template, function template, template template parameter, or class template partial specialization.
A reference to a namespace or namespace alias.
A reference to a member of a struct, union, or class that occurs in some non-expression context.
A reference to a labeled statement.
A reference to a set of overloaded functions or function templates that has not yet been resolved to a specific function or function template.
A reference to a variable that occurs in some non-expression context.
Error: An invalid file.
Error: An invalid decl which could not be found.
Error: An entity which is not yet supported by libclang, or this wrapper.
Error: Invalid code.
An expression whose specific kind is not exposed via this interface.
An expression that refers to some value declaration, such as a function or enumerator.
An expression that refers to the member of a struct, union, or class.
An expression that calls a function.
An expression that sends a message to an Objective-C object or class.
An expression that represents a block literal.
An integer literal.
A floating point number literal.
An imaginary number literal.
A string literal.
A character literal.
A parenthesized expression.
Any unary expression other than sizeof
and alignof
.
An array subscript expression ([C99 6.5.2.1]
).
A built-in binary expression (e.g., x + y
).
A compound assignment expression (e.g., x += y
).
A ternary expression.
An explicit cast in C or a C-style cast in C++.
A compound literal expression ([C99 6.5.2.5]
).
A C or C++ initializer list.
A GNU address of label expression.
A GNU statement expression.
A C11 generic selection expression.
A GNU __null
expression.
A C++ static_cast<>
expression.
A C++ dynamic_cast<>
expression.
A C++ reinterpret_cast<>
expression.
A C++ const_cast<>
expression.
A C++ cast that uses "function" notation (e.g., int(0.5)
).
A C++ typeid
expression.
A C++ boolean literal.
A C++ nullptr
expression.
A C++ this
expression.
A C++ throw
expression.
A C++ new
expression.
A C++ delete
expression.
A unary expression.
An Objective-C string literal.
An Objective-C @encode
expression.
An Objective-C @selector
expression.
An Objective-C @protocol
expression.
An Objective-C bridged cast expression.
A C++11 parameter pack expansion expression.
A C++11 sizeof...
expression.
A C++11 lambda expression.
An Objective-C boolean literal.
An Objective-C self
expression.
An OpenMP array section expression.
Only produced by libclang
3.8 and later.
An Objective-C availability check expression (e.g., @available(macos 10.10, *)
).
Only produced by libclang
3.9 and later.
A fixed-point literal.
Only produced by libclang
7.0 and later.
A statement whose specific kind is not exposed via this interface.
A labelled statement in a function.
A group of statements (e.g., a function body).
A case
statement.
A default
statement.
An if
statement.
A switch
statement.
A while
statement.
A do
statement.
A for
statement.
A goto
statement.
An indirect goto
statement.
A continue
statement.
A break
statement.
A return
statement.
An inline assembly statement.
An Objective-C @try
-@catch
-@finally
statement.
An Objective-C @catch
statement.
An Objective-C @finally
statement.
An Objective-C @throw
statement.
An Objective-C @synchronized
statement.
An Objective-C autorelease pool statement.
An Objective-C collection statement.
A C++ catch statement.
A C++ try statement.
A C++11 range-based for statement.
A Windows Structured Exception Handling __try
statement.
A Windows Structured Exception Handling __except
statement.
A Windows Structured Exception Handling __finally
statement.
A Windows Structured Exception Handling __leave
statement.
A Microsoft inline assembly statement.
A null statement.
An adaptor for mixing declarations with statements and expressions.
An OpenMP parallel directive.
An OpenMP SIMD directive.
An OpenMP for directive.
An OpenMP sections directive.
An OpenMP section directive.
An OpenMP single directive.
An OpenMP parallel for directive.
An OpenMP parallel sections directive.
An OpenMP task directive.
An OpenMP master directive.
An OpenMP critical directive.
An OpenMP taskyield directive.
An OpenMP barrier directive.
An OpenMP taskwait directive.
An OpenMP flush directive.
An OpenMP ordered directive.
Only produced by libclang
3.6 and later.
An OpenMP atomic directive.
Only produced by libclang
3.6 and later.
An OpenMP for SIMD directive.
Only produced by libclang
3.6 and later.
An OpenMP parallel for SIMD directive.
Only produced by libclang
3.6 and later.
An OpenMP target directive.
Only produced by libclang
3.6 and later.
An OpenMP teams directive.
Only produced by libclang
3.6 and later.
An OpenMP taskgroup directive.
Only produced by libclang
3.7 and later.
An OpenMP cancellation point directive.
Only produced by libclang
3.7 and later.
An OpenMP cancel directive.
Only produced by libclang
3.7 and later.
An OpenMP target data directive.
Only produced by libclang
3.8 and later.
An OpenMP task loop directive.
Only produced by libclang
3.8 and later.
An OpenMP task loop SIMD directive.
Only produced by libclang
3.8 and later.
An OpenMP distribute directive.
Only produced by libclang
3.8 and later.
An OpenMP target enter data directive.
Only produced by libclang
3.9 and later.
An OpenMP target exit data directive.
Only produced by libclang
3.9 and later.
An OpenMP target parallel directive.
Only produced by libclang
3.9 and later.
An OpenMP target parallel for directive.
Only produced by libclang
3.9 and later.
An OpenMP target update directive.
Only produced by libclang
3.9 and later.
An OpenMP distribute parallel for directive.
Only produced by libclang
3.9 and later.
An OpenMP distribute parallel for SIMD directive.
Only produced by libclang
3.9 and later.
An OpenMP distribute SIMD directive.
Only produced by libclang
3.9 and later.
An OpenMP target parallel for SIMD directive.
Only produced by libclang
3.9 and later.
An OpenMP target SIMD directive.
Only produced by libclang
4.0 and later.
An OpenMP teams distribute directive.
Only produced by libclang
4.0 and later.
An OpenMP teams distribute SIMD directive.
Only produced by libclang
4.0 and later.
An OpenMP teams distribute parallel for SIMD directive.
Only produced by libclang
4.0 and later.
An OpenMP teams distribute parallel for directive.
Only produced by libclang
4.0 and later.
An OpenMP target teams directive.
Only produced by libclang
4.0 and later.
An OpenMP target teams distribute directive.
Only produced by libclang
4.0 and later.
An OpenMP target teams distribute parallel for directive.
Only produced by libclang
4.0 and later.
An OpenMP target teams distribute parallel for SIMD directive.
Only produced by libclang
4.0 and later.
An OpenMP target teams distribute SIMD directive.
Only produced by libclang
4.0 and later.
C++2a std::bit_cast expression.
Only produced by 'libclang' 9.0 and later.
An OpenMP master task loop directive.
Only produced by libclang
10.0 and later.
An OpenMP parallel master task loop directive.
Only produced by libclang
10.0 and later.
An OpenMP master task loop SIMD directive.
Only produced by libclang
10.0 and later.
An OpenMP parallel master task loop SIMD directive.
Only produced by libclang
10.0 and later.
An OpenMP parallel master directive.
Only produced by libclang
10.0 and later.
The top-level AST entity which acts as the root for the other entitys.
An attribute whose specific kind is not exposed via this interface.
An attribute applied to an Objective-C IBAction.
An attribute applied to an Objective-C IBOutlet.
An attribute applied to an Objective-C IBOutletCollection.
The final
attribute.
The override
attribute.
An annotation attribute.
An ASM label attribute.
An attribute that requests for packed records (e.g., __attribute__ ((__packed__))
).
An attribute that asserts a function has no side effects (e.g., __attribute__((pure))
).
The const
attribute.
An attribute that allows calls to a function to be duplicated by the optimized
(e.g., __attribute__((noduplicate))
).
A CUDA constant attribute.
A CUDA device attribute.
A CUDA global attribute.
A CUDA host attribute.
A CUDA shared attribute.
Only produced by libclang
3.6 and later.
A linker visibility attribute.
Only produced by libclang
3.8 and later.
A MSVC DLL export attribute.
Only produced by libclang
3.8 and later.
A MSVC DLL import attribute.
Only produced by libclang
3.8 and later.
__attribute__((ns_returns_retained))
Only produced by libclang
8.0 and later.
__attribute__((ns_returns_not_retained))
Only produced by libclang
8.0 and later.
__attribute__((ns_returns_autoreleased))
Only produced by libclang
8.0 and later.
__attribute__((ns_consumes_self))
Only produced by libclang
8.0 and later.
__attribute__((ns_consumed))
Only produced by libclang
8.0 and later.
__attribute__((objc_exception))
Only produced by libclang
8.0 and later.
__attribute__((NSObject))
Only produced by libclang
8.0 and later.
__attribute__((objc_independent_class))
Only produced by libclang
8.0 and later.
__attribute__((objc_precise_lifetime))
Only produced by libclang
8.0 and later.
__attribute__((objc_returns_inner_pointer))
Only produced by libclang
8.0 and later.
__attribute__((objc_requires_super))
Only produced by libclang
8.0 and later.
__attribute__((objc_root_class))
Only produced by libclang
8.0 and later.
__attribute__((objc_subclassing_restricted))
Only produced by libclang
8.0 and later.
__attribute__((objc_protocol_requires_explicit_implementation))
Only produced by libclang
8.0 and later.
__attribute__((objc_designated_initializer))
Only produced by libclang
8.0 and later.
__attribute__((objc_runtime_visible))
Only produced by libclang
8.0 and later.
__attribute__((objc_boxable))
Only produced by libclang
8.0 and later.
__attribute__((flag_enum))
Only produced by libclang
8.0 and later.
__attribute__((clang::convergent))
Only produced by libclang
9.0 and later.
Only produced by libclang
9.0 and later.
__attribute__((nodiscard))
Only produced by libclang
9.0 and later.
Only produced by libclang
9.0 and later.
A preprocessing directive.
A macro definition.
A macro expansion.
An inclusion directive.
A module import declaration.
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.
A static_assert
node.
Only produced by libclang
3.9 and later.
A friend declaration.
Only produced by libclang
4.0 and later.
A single overload in a set of overloads.
Only produced by libclang
3.7 and later.
Implementations
impl EntityKind
[src]
pub fn is_valid(&self) -> bool
[src]
Returns whether this entity is valid. If false, the entity represents an error condition.
Trait Implementations
impl Clone for EntityKind
[src]
pub fn clone(&self) -> EntityKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EntityKind
[src]
impl Debug for EntityKind
[src]
impl Eq for EntityKind
[src]
impl Hash for EntityKind
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<EntityKind> for EntityKind
[src]
pub fn eq(&self, other: &EntityKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for EntityKind
[src]
impl StructuralPartialEq for EntityKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnwindSafe for EntityKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,