enum DeclCode
Description
Record codes for each kind of declaration. These constants describe the declaration records that can occur within a declarations block (identified by DECLTYPES_BLOCK_ID). Each constant describes a record for a specific declaration class in the AST. Note that TypeCode values share this code space.
Declared at: clang/include/clang/Serialization/ASTBitCodes.h:1236
Enumerators
Name | Value | Comment |
---|---|---|
DECL_TYPEDEF | 51 | A TypedefDecl record. |
DECL_TYPEALIAS | 52 | A TypeAliasDecl record. |
DECL_ENUM | 53 | An EnumDecl record. |
DECL_RECORD | 54 | A RecordDecl record. |
DECL_ENUM_CONSTANT | 55 | An EnumConstantDecl record. |
DECL_FUNCTION | 56 | A FunctionDecl record. |
DECL_OBJC_METHOD | 57 | A ObjCMethodDecl record. |
DECL_OBJC_INTERFACE | 58 | A ObjCInterfaceDecl record. |
DECL_OBJC_PROTOCOL | 59 | A ObjCProtocolDecl record. |
DECL_OBJC_IVAR | 60 | A ObjCIvarDecl record. |
DECL_OBJC_AT_DEFS_FIELD | 61 | A ObjCAtDefsFieldDecl record. |
DECL_OBJC_CATEGORY | 62 | A ObjCCategoryDecl record. |
DECL_OBJC_CATEGORY_IMPL | 63 | A ObjCCategoryImplDecl record. |
DECL_OBJC_IMPLEMENTATION | 64 | A ObjCImplementationDecl record. |
DECL_OBJC_COMPATIBLE_ALIAS | 65 | A ObjCCompatibleAliasDecl record. |
DECL_OBJC_PROPERTY | 66 | A ObjCPropertyDecl record. |
DECL_OBJC_PROPERTY_IMPL | 67 | A ObjCPropertyImplDecl record. |
DECL_FIELD | 68 | A FieldDecl record. |
DECL_MS_PROPERTY | 69 | A MSPropertyDecl record. |
DECL_MS_GUID | 70 | A MSGuidDecl record. |
DECL_TEMPLATE_PARAM_OBJECT | 71 | A TemplateParamObjectDecl record. |
DECL_VAR | 72 | A VarDecl record. |
DECL_IMPLICIT_PARAM | 73 | An ImplicitParamDecl record. |
DECL_PARM_VAR | 74 | A ParmVarDecl record. |
DECL_DECOMPOSITION | 75 | A DecompositionDecl record. |
DECL_BINDING | 76 | A BindingDecl record. |
DECL_FILE_SCOPE_ASM | 77 | A FileScopeAsmDecl record. |
DECL_BLOCK | 78 | A BlockDecl record. |
DECL_CAPTURED | 79 | A CapturedDecl record. |
DECL_CONTEXT_LEXICAL | 80 | A record that stores the set of declarations that are lexically stored within a given DeclContext.The record itself is a blob that is an array of declaration IDs, in the order in which those declarations were added to the declaration context. This data is used when iterating over the contents of a DeclContext, e.g., via DeclContext::decls_begin() and DeclContext::decls_end(). |
DECL_CONTEXT_VISIBLE | 81 | A record that stores the set of declarations that are visible from a given DeclContext.The record itself stores a set of mappings, each of which associates a declaration name with one or more declaration IDs. This data is used when performing qualified name lookup into a DeclContext via DeclContext::lookup. |
DECL_LABEL | 82 | A LabelDecl record. |
DECL_NAMESPACE | 83 | A NamespaceDecl record. |
DECL_NAMESPACE_ALIAS | 84 | A NamespaceAliasDecl record. |
DECL_USING | 85 | A UsingDecl record. |
DECL_USING_ENUM | 86 | A UsingEnumDecl record. |
DECL_USING_PACK | 87 | A UsingPackDecl record. |
DECL_USING_SHADOW | 88 | A UsingShadowDecl record. |
DECL_CONSTRUCTOR_USING_SHADOW | 89 | A ConstructorUsingShadowDecl record. |
DECL_USING_DIRECTIVE | 90 | A UsingDirecitveDecl record. |
DECL_UNRESOLVED_USING_VALUE | 91 | An UnresolvedUsingValueDecl record. |
DECL_UNRESOLVED_USING_TYPENAME | 92 | An UnresolvedUsingTypenameDecl record. |
DECL_LINKAGE_SPEC | 93 | A LinkageSpecDecl record. |
DECL_EXPORT | 94 | An ExportDecl record. |
DECL_CXX_RECORD | 95 | A CXXRecordDecl record. |
DECL_CXX_DEDUCTION_GUIDE | 96 | A CXXDeductionGuideDecl record. |
DECL_CXX_METHOD | 97 | A CXXMethodDecl record. |
DECL_CXX_CONSTRUCTOR | 98 | A CXXConstructorDecl record. |
DECL_CXX_DESTRUCTOR | 99 | A CXXDestructorDecl record. |
DECL_CXX_CONVERSION | 100 | A CXXConversionDecl record. |
DECL_ACCESS_SPEC | 101 | An AccessSpecDecl record. |
DECL_FRIEND | 102 | A FriendDecl record. |
DECL_FRIEND_TEMPLATE | 103 | A FriendTemplateDecl record. |
DECL_CLASS_TEMPLATE | 104 | A ClassTemplateDecl record. |
DECL_CLASS_TEMPLATE_SPECIALIZATION | 105 | A ClassTemplateSpecializationDecl record. |
DECL_CLASS_TEMPLATE_PARTIAL_SPECIALIZATION | 106 | A ClassTemplatePartialSpecializationDecl record. |
DECL_VAR_TEMPLATE | 107 | A VarTemplateDecl record. |
DECL_VAR_TEMPLATE_SPECIALIZATION | 108 | A VarTemplateSpecializationDecl record. |
DECL_VAR_TEMPLATE_PARTIAL_SPECIALIZATION | 109 | A VarTemplatePartialSpecializationDecl record. |
DECL_FUNCTION_TEMPLATE | 110 | A FunctionTemplateDecl record. |
DECL_TEMPLATE_TYPE_PARM | 111 | A TemplateTypeParmDecl record. |
DECL_NON_TYPE_TEMPLATE_PARM | 112 | A NonTypeTemplateParmDecl record. |
DECL_TEMPLATE_TEMPLATE_PARM | 113 | A TemplateTemplateParmDecl record. |
DECL_TYPE_ALIAS_TEMPLATE | 114 | A TypeAliasTemplateDecl record. |
DECL_CONCEPT | 115 | |
DECL_UNRESOLVED_USING_IF_EXISTS | 116 | An UnresolvedUsingIfExistsDecl record. |
DECL_STATIC_ASSERT | 117 | |
DECL_CXX_BASE_SPECIFIERS | 118 | A record containing CXXBaseSpecifiers. |
DECL_CXX_CTOR_INITIALIZERS | 119 | A record containing CXXCtorInitializers. |
DECL_INDIRECTFIELD | 120 | A IndirectFieldDecl record. |
DECL_EXPANDED_NON_TYPE_TEMPLATE_PARM_PACK | 121 | A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack. |
DECL_EXPANDED_TEMPLATE_TEMPLATE_PARM_PACK | 122 | A TemplateTemplateParmDecl record that stores an expanded template template parameter pack. |
DECL_CLASS_SCOPE_FUNCTION_SPECIALIZATION | 123 | A ClassScopeFunctionSpecializationDecl record a class scope function specialization. (Microsoft extension). |
DECL_IMPORT | 124 | An ImportDecl recording a module import. |
DECL_OMP_THREADPRIVATE | 125 | An OMPThreadPrivateDecl record. |
DECL_OMP_REQUIRES | 126 | An OMPRequiresDecl record. |
DECL_OMP_ALLOCATE | 127 | An OMPAllocateDcl record. |
DECL_EMPTY | 128 | An EmptyDecl record. |
DECL_LIFETIME_EXTENDED_TEMPORARY | 129 | An LifetimeExtendedTemporaryDecl record. |
DECL_REQUIRES_EXPR_BODY | 130 | A RequiresExprBodyDecl record. |
DECL_OBJC_TYPE_PARAM | 131 | An ObjCTypeParamDecl record. |
DECL_OMP_CAPTUREDEXPR | 132 | An OMPCapturedExprDecl record. |
DECL_PRAGMA_COMMENT | 133 | A PragmaCommentDecl record. |
DECL_PRAGMA_DETECT_MISMATCH | 134 | A PragmaDetectMismatchDecl record. |
DECL_OMP_DECLARE_MAPPER | 135 | An OMPDeclareMapperDecl record. |
DECL_OMP_DECLARE_REDUCTION | 136 | An OMPDeclareReductionDecl record. |
DECL_UNNAMED_GLOBAL_CONSTANT | 137 | A UnnamedGlobalConstantDecl record. |
DECL_LAST | 137 | A UnnamedGlobalConstantDecl record. |