clang 20.0.0git
|
Namespaces | |
namespace | reader |
Classes | |
class | AbstractTypeReader |
class | AbstractTypeWriter |
class | BasicReaderBase |
class | DataStreamBasicReader |
DataStreamBasicReader provides convenience implementations for many BasicReader methods based on the assumption that the ultimate reader implementation is based on a variable-length stream of unstructured data (like Clang's module files). More... | |
class | DataStreamBasicWriter |
DataStreamBasicWriter provides convenience implementations for many BasicWriter methods based on the assumption that the ultimate writer implementation is based on a variable-length stream of unstructured data (like Clang's module files). More... | |
class | DeclarationNameKey |
A key used when looking up entities by DeclarationName. More... | |
class | DeclOffset |
Source location and bit offset of a declaration. More... | |
class | InputFile |
The input file that has been loaded from this AST file, along with bools indicating whether this was an overridden buffer or if it was out-of-date or not-found. More... | |
struct | InputFileInfo |
The input file info that has been loaded from an AST file. More... | |
class | ModuleFile |
Information about a module that has been loaded by the ASTReader. More... | |
class | ModuleManager |
Manages the set of modules loaded by an AST reader. More... | |
class | MultiOnDiskHashTable |
A collection of on-disk hash tables, merged when relevant for performance. More... | |
class | MultiOnDiskHashTableGenerator |
Writer for the on-disk hash table. More... | |
struct | ObjCCategoriesInfo |
Describes the categories of an Objective-C class. More... | |
class | PPEntityOffset |
Source range/offset of a preprocessed entity. More... | |
class | PPSkippedRange |
Source range of a skipped preprocessor region. More... | |
class | ReadMethodPoolVisitor |
class | TypeIdx |
A type index; the type ID with the qualifier bits removed. More... | |
class | UnalignedUInt64 |
32 aligned uint64_t in the AST file. More... | |
struct | UnsafeQualTypeDenseMapInfo |
A structure for putting "fast"-unqualified QualTypes into a DenseMap. More... | |
Typedefs | |
using | IdentifierID = uint64_t |
An ID number that refers to an identifier in an AST file. | |
using | DeclID = DeclIDBase::DeclID |
An ID number that refers to a declaration in an AST file. | |
using | TypeID = uint64_t |
An ID number that refers to a type in an AST file. | |
using | LocalTypeID = TypeID |
Same with TypeID except that the LocalTypeID is only meaningful with the corresponding ModuleFile. | |
using | MacroID = uint32_t |
An ID number that refers to a macro in an AST file. | |
using | GlobalMacroID = uint32_t |
A global ID number that refers to a macro in an AST file. | |
using | LocalMacroID = uint32_t |
A local to a module ID number that refers to a macro in an AST file. | |
using | SelectorID = uint32_t |
An ID number that refers to an ObjC selector in an AST file. | |
using | CXXBaseSpecifiersID = uint32_t |
An ID number that refers to a set of CXXBaseSpecifiers in an AST file. | |
using | CXXCtorInitializersID = uint32_t |
An ID number that refers to a list of CXXCtorInitializers in an AST file. | |
using | PreprocessedEntityID = uint32_t |
An ID number that refers to an entity in the detailed preprocessing record. | |
using | SubmoduleID = uint32_t |
An ID number that refers to a submodule in a module file. | |
using | unaligned_decl_id_t = llvm::support::detail::packed_endian_specific_integral< serialization::DeclID, llvm::endianness::native, llvm::support::unaligned > |
Functions | |
template<class T > | |
T | makeNullableFromOptional (const std::optional< T > &value) |
template<class T > | |
T * | makePointerFromOptional (std::optional< T * > value) |
template<class T > | |
std::optional< T > | makeOptionalFromNullable (const T &value) |
template<class T > | |
std::optional< T * > | makeOptionalFromPointer (T *value) |
TypeIdx | TypeIdxFromBuiltin (const BuiltinType *BT) |
unsigned | ComputeHash (Selector Sel) |
const DeclContext * | getDefinitiveDeclContext (const DeclContext *DC) |
Retrieve the "definitive" declaration that provides all of the visible entries for the given declaration context, if there is one. | |
bool | isRedeclarableDeclKind (unsigned Kind) |
Determine whether the given declaration kind is redeclarable. | |
bool | needsAnonymousDeclarationNumber (const NamedDecl *D) |
Determine whether the given declaration needs an anonymous declaration number. | |
template<typename Fn > | |
void | numberAnonymousDeclsWithin (const DeclContext *DC, Fn Visit) |
Visit each declaration within DC that needs an anonymous declaration number and call Visit with the declaration and its number. | |
bool | isPartOfPerModuleInitializer (const Decl *D) |
Determine whether the given declaration will be included in the per-module initializer if it needs to be eagerly handed to the AST consumer. | |
Variables | |
const unsigned | VERSION_MAJOR = 31 |
AST file major version number supported by this version of Clang. | |
const unsigned | VERSION_MINOR = 1 |
AST file minor version number supported by this version of Clang. | |
const unsigned int | NUM_PREDEF_IDENT_IDS = 1 |
The number of predefined identifier IDs. | |
const unsigned int | NUM_PREDEF_MACRO_IDS = 1 |
The number of predefined macro IDs. | |
const unsigned int | NUM_PREDEF_SELECTOR_IDS = 1 |
The number of predefined selector IDs. | |
const unsigned int | NUM_PREDEF_SUBMODULE_IDS = 1 |
The number of predefined submodule IDs. | |
const unsigned int | NUM_PREDEF_PP_ENTITY_IDS = 1 |
The number of predefined preprocessed entity IDs. | |
const unsigned | NUM_PREDEF_TYPE_IDS = 505 |
The number of predefined type IDs that are reserved for the PREDEF_TYPE_* constants. | |
const unsigned | NumSpecialTypeIDs = 8 |
The number of special type IDs. | |
const unsigned int | DECL_UPDATES = 49 |
Record of updates for a declaration that was modified after being deserialized. | |
const unsigned int | LOCAL_REDECLARATIONS = 50 |
Record code for a list of local redeclarations of a declaration. | |
using clang::serialization::CXXBaseSpecifiersID = typedef uint32_t |
An ID number that refers to a set of CXXBaseSpecifiers in an AST file.
Definition at line 174 of file ASTBitCodes.h.
using clang::serialization::CXXCtorInitializersID = typedef uint32_t |
An ID number that refers to a list of CXXCtorInitializers in an AST file.
Definition at line 178 of file ASTBitCodes.h.
using clang::serialization::DeclID = typedef DeclIDBase::DeclID |
An ID number that refers to a declaration in an AST file.
See the comments in DeclIDBase for details.
Definition at line 70 of file ASTBitCodes.h.
using clang::serialization::GlobalMacroID = typedef uint32_t |
A global ID number that refers to a macro in an AST file.
Definition at line 157 of file ASTBitCodes.h.
using clang::serialization::IdentifierID = typedef uint64_t |
An ID number that refers to an identifier in an AST file.
The ID numbers of identifiers are consecutive (in order of discovery) and start at 1. 0 is reserved for NULL.
Definition at line 63 of file ASTBitCodes.h.
using clang::serialization::LocalMacroID = typedef uint32_t |
A local to a module ID number that refers to a macro in an AST file.
Definition at line 161 of file ASTBitCodes.h.
using clang::serialization::LocalTypeID = typedef TypeID |
Same with TypeID except that the LocalTypeID is only meaningful with the corresponding ModuleFile.
FIXME: Make TypeID and LocalTypeID a class to improve the type safety.
Definition at line 94 of file ASTBitCodes.h.
using clang::serialization::MacroID = typedef uint32_t |
An ID number that refers to a macro in an AST file.
Definition at line 154 of file ASTBitCodes.h.
using clang::serialization::PreprocessedEntityID = typedef uint32_t |
An ID number that refers to an entity in the detailed preprocessing record.
Definition at line 182 of file ASTBitCodes.h.
using clang::serialization::SelectorID = typedef uint32_t |
An ID number that refers to an ObjC selector in an AST file.
Definition at line 167 of file ASTBitCodes.h.
using clang::serialization::SubmoduleID = typedef uint32_t |
An ID number that refers to a submodule in a module file.
Definition at line 185 of file ASTBitCodes.h.
using clang::serialization::TypeID = typedef uint64_t |
An ID number that refers to a type in an AST file.
The ID of a type is partitioned into three parts:
The type index values are partitioned into two sets. The values below NUM_PREDEF_TYPE_IDs are predefined type IDs (based on the PREDEF_TYPE_*_ID constants), with 0 as a placeholder for "no type". The module file index for predefined types are always 0 since they don't belong to any modules. Values from NUM_PREDEF_TYPE_IDs are other types that have serialized representations.
Definition at line 88 of file ASTBitCodes.h.
using clang::serialization::unaligned_decl_id_t = typedef llvm::support::detail::packed_endian_specific_integral< serialization::DeclID, llvm::endianness::native, llvm::support::unaligned> |
Definition at line 283 of file ASTBitCodes.h.
Record types that occur within the AST block itself.
Enumerator | |
---|---|
TYPE_OFFSET | Record code for the offsets of each type. The TYPE_OFFSET constant describes the record that occurs within the AST block. The record itself is an array of offsets that point into the declarations and types block (identified by DECLTYPES_BLOCK_ID). The index into the array is based on the ID of a type. For a given type ID |
DECL_OFFSET | Record code for the offsets of each decl. The DECL_OFFSET constant describes the record that occurs within the block identified by DECL_OFFSETS_BLOCK_ID within the AST block. The record itself is an array of offsets that point into the declarations and types block (identified by DECLTYPES_BLOCK_ID). The declaration ID is an index into this record, after subtracting one to account for the use of declaration ID 0 for a NULL declaration pointer. Index 0 is reserved for the translation unit declaration. |
IDENTIFIER_OFFSET | Record code for the table of offsets of each identifier ID. The offset table contains offsets into the blob stored in the IDENTIFIER_TABLE record. Each offset points to the NULL-terminated string that corresponds to that identifier. |
METADATA_OLD_FORMAT | This is so that older clang versions, before the introduction of the control block, can read and reject the newer PCH format. DON'T CHANGE THIS NUMBER. |
IDENTIFIER_TABLE | Record code for the identifier table. The identifier table is a simple blob that contains NULL-terminated strings for all of the identifiers referenced by the AST file. The IDENTIFIER_OFFSET table contains the mapping from identifier IDs to the characters in this blob. Note that the starting offsets of all of the identifiers are odd, so that, when the identifier offset table is loaded in, we can use the low bit to distinguish between offsets (for unresolved identifier IDs) and IdentifierInfo pointers (for already-resolved identifier IDs). |
EAGERLY_DESERIALIZED_DECLS | Record code for the array of eagerly deserialized decls. The AST file contains a list of all of the declarations that should be eagerly deserialized present within the parsed headers, stored as an array of declaration IDs. These declarations will be reported to the AST consumer after the AST file has been read, since their presence can affect the semantics of the program (e.g., for code generation). |
SPECIAL_TYPES | Record code for the set of non-builtin, special types. This record contains the type IDs for the various type nodes that are constructed during semantic analysis (e.g., __builtin_va_list). The SPECIAL_TYPE_* constants provide offsets into this record. |
STATISTICS | Record code for the extra statistics we gather while generating an AST file. |
TENTATIVE_DEFINITIONS | Record code for the array of tentative definitions. |
SELECTOR_OFFSETS | Record code for the table of offsets into the Objective-C method pool. |
METHOD_POOL | Record code for the Objective-C method pool,. |
PP_COUNTER_VALUE | The value of the next COUNTER to dispense. [PP_COUNTER_VALUE, Val] |
SOURCE_LOCATION_OFFSETS | Record code for the table of offsets into the block of source-location information. |
EXT_VECTOR_DECLS | Record code for the set of ext_vector type names. |
UNUSED_FILESCOPED_DECLS | Record code for the array of unused file scoped decls. |
PPD_ENTITIES_OFFSETS | Record code for the table of offsets to entries in the preprocessing record. |
VTABLE_USES | Record code for the array of VTable uses. |
REFERENCED_SELECTOR_POOL | Record code for referenced selector pool. |
TU_UPDATE_LEXICAL | Record code for an update to the TU's lexically contained declarations. |
SEMA_DECL_REFS | Record code for declarations that Sema keeps references of. |
WEAK_UNDECLARED_IDENTIFIERS | Record code for weak undeclared identifiers. |
PENDING_IMPLICIT_INSTANTIATIONS | Record code for pending implicit instantiations. |
UPDATE_VISIBLE | Record code for an update to a decl context's lookup table. In practice, this should only be used for the TU and namespaces. |
DECL_UPDATE_OFFSETS | Record for offsets of DECL_UPDATES records for declarations that were modified after being deserialized and need updates. |
CUDA_SPECIAL_DECL_REFS | Record code for special CUDA declarations. |
HEADER_SEARCH_TABLE | Record code for header search information. |
FP_PRAGMA_OPTIONS | Record code for floating point #pragma options. |
OPENCL_EXTENSIONS | Record code for enabled OpenCL extensions. |
DELEGATING_CTORS | The list of delegating constructor declarations. |
KNOWN_NAMESPACES | Record code for the set of known namespaces, which are used for typo correction. |
MODULE_OFFSET_MAP | Record code for the remapping information used to relate loaded modules to the various offsets and IDs(e.g., source location offests, declaration and type IDs) that are used in that module to refer to other modules. |
SOURCE_MANAGER_LINE_TABLE | Record code for the source manager line table information, which stores information about #line directives. |
OBJC_CATEGORIES_MAP | Record code for map of Objective-C class definition IDs to the ObjC categories in a module that are attached to that class. |
FILE_SORTED_DECLS | Record code for a file sorted array of DeclIDs in a module. |
IMPORTED_MODULES | Record code for an array of all of the (sub)modules that were imported by the AST file. |
OBJC_CATEGORIES | Record code for the array of Objective-C categories (including extensions). This array can only be interpreted properly using the Objective-C categories map. |
MACRO_OFFSET | Record code for the table of offsets of each macro ID. The offset table contains offsets into the blob stored in the preprocessor block. Each offset points to the corresponding macro definition. |
INTERESTING_IDENTIFIERS | A list of "interesting" identifiers. Only used in C++ (where we don't normally do lookups into the serialized identifier table). These are eagerly deserialized. |
UNDEFINED_BUT_USED | Record code for undefined but used functions and variables that need a definition in this TU. |
LATE_PARSED_TEMPLATE | Record code for late parsed template functions. |
OPTIMIZE_PRAGMA_OPTIONS | Record code for #pragma optimize options. |
UNUSED_LOCAL_TYPEDEF_NAME_CANDIDATES | Record code for potentially unused local typedef names. |
DELETE_EXPRS_TO_ANALYZE | Delete expressions that will be analyzed later. |
MSSTRUCT_PRAGMA_OPTIONS | Record code for #pragma ms_struct options. |
POINTERS_TO_MEMBERS_PRAGMA_OPTIONS | Record code for #pragma ms_struct options. |
CUDA_PRAGMA_FORCE_HOST_DEVICE_DEPTH | Number of unmatched #pragma clang cuda_force_host_device begin directives we've seen. |
OPENCL_EXTENSION_TYPES | Record code for types associated with OpenCL extensions. |
OPENCL_EXTENSION_DECLS | Record code for declarations associated with OpenCL extensions. |
MODULAR_CODEGEN_DECLS | |
ALIGN_PACK_PRAGMA_OPTIONS | Record code for #pragma align/pack options. |
PP_CONDITIONAL_STACK | The stack of open #ifs/#ifdefs recorded in a preamble. |
PPD_SKIPPED_RANGES | A table of skipped ranges within the preprocessing record. |
DECLS_TO_CHECK_FOR_DEFERRED_DIAGS | Record code for the Decls to be checked for deferred diags. |
FLOAT_CONTROL_PRAGMA_OPTIONS | Record code for #pragma float_control options. |
PP_ASSUME_NONNULL_LOC | ID 66 used to be the list of included files. Record code for an unterminated #pragma clang assume_nonnull begin recorded in a preamble. |
DELAYED_NAMESPACE_LEXICAL_VISIBLE_RECORD | Record code for lexical and visible block for delayed namespace in reduced BMI. |
PP_UNSAFE_BUFFER_USAGE | Record code for #pragma clang unsafe_buffer_usage begin/end. |
VTABLES_TO_EMIT | Record code for vtables to emit. |
Definition at line 449 of file ASTBitCodes.h.
Describes the various kinds of blocks that occur within an AST file.
Enumerator | |
---|---|
AST_BLOCK_ID | The AST block, which acts as a container around the full AST block. |
SOURCE_MANAGER_BLOCK_ID | The block containing information about the source manager. |
PREPROCESSOR_BLOCK_ID | The block containing information about the preprocessor. |
DECLTYPES_BLOCK_ID | The block containing the definitions of all of the types and decls used within the AST file. |
PREPROCESSOR_DETAIL_BLOCK_ID | The block containing the detailed preprocessing record. |
SUBMODULE_BLOCK_ID | The block containing the submodule structure. |
COMMENTS_BLOCK_ID | The block containing comments. |
CONTROL_BLOCK_ID | The control block, which contains all of the information that needs to be validated prior to committing to loading the AST file. |
INPUT_FILES_BLOCK_ID | The block of input files, which were used as inputs to create this AST file. This block is part of the control block. |
OPTIONS_BLOCK_ID | The block of configuration options, used to check that a module is being used in a configuration compatible with the configuration in which it was built. This block is part of the control block. |
EXTENSION_BLOCK_ID | A block containing a module file extension. |
UNHASHED_CONTROL_BLOCK_ID | A block with unhashed content. These records should not change the ASTFileSignature. See UnhashedControlBlockRecordTypes for the list of records. |
Definition at line 293 of file ASTBitCodes.h.
Record types used within a comments block.
Enumerator | |
---|---|
COMMENTS_RAW_COMMENT |
Definition at line 863 of file ASTBitCodes.h.
Record types that occur within the control block.
Definition at line 348 of file ASTBitCodes.h.
Definition at line 24 of file ASTCommon.h.
Record code for extension blocks.
Enumerator | |
---|---|
EXTENSION_METADATA | Metadata describing this particular extension. |
FIRST_EXTENSION_RECORD_ID | The first record ID allocated to the extensions themselves. |
Definition at line 430 of file ASTBitCodes.h.
Record types that occur within the input-files block inside the control block.
Enumerator | |
---|---|
INPUT_FILE | An input file. |
INPUT_FILE_HASH | The input file content hash. |
Definition at line 440 of file ASTBitCodes.h.
Specifies the kind of module that has been loaded.
Definition at line 42 of file ModuleFile.h.
Record types that occur within the options block inside the control block.
Enumerator | |
---|---|
LANGUAGE_OPTIONS | Record code for the language options table. The record with this code contains the contents of the LangOptions structure. We serialize the entire contents of the structure, and let the reader decide which options are actually important to check. |
TARGET_OPTIONS | Record code for the target options table. |
FILE_SYSTEM_OPTIONS | Record code for the filesystem options table. |
HEADER_SEARCH_OPTIONS | Record code for the headers search options table. |
PREPROCESSOR_OPTIONS | Record code for the preprocessor options table. |
Definition at line 383 of file ASTBitCodes.h.
Record types used within a preprocessor detail block.
Definition at line 781 of file ASTBitCodes.h.
Record types used within a preprocessor block.
Definition at line 755 of file ASTBitCodes.h.
Record types used within a source manager block.
Definition at line 730 of file ASTBitCodes.h.
Record types used within a submodule description block.
Definition at line 794 of file ASTBitCodes.h.
Record codes for the unhashed control block.
Definition at line 406 of file ASTBitCodes.h.
Definition at line 294 of file ASTCommon.cpp.
References clang::Selector::getIdentifierInfoForSlot(), and clang::Selector::getNumArgs().
Referenced by clang::serialization::reader::ASTSelectorLookupTrait::ComputeHash(), and clang::serialization::DeclarationNameKey::getHash().
const DeclContext * clang::serialization::getDefinitiveDeclContext | ( | const DeclContext * | DC | ) |
Retrieve the "definitive" declaration that provides all of the visible entries for the given declaration context, if there is one.
The "definitive" declaration is the only place where we need to look to find information about the declarations within the given declaration context. For example, C++ and Objective-C classes, C structs/unions, and Objective-C protocols, categories, and extensions are all defined in a single place in the source code, so they have definitive declarations associated with them. C++ namespaces, on the other hand, can have multiple definitions.
Definition at line 306 of file ASTCommon.cpp.
References clang::DeclContext::getDeclKind(), and getDefinition().
Determine whether the given declaration will be included in the per-module initializer if it needs to be eagerly handed to the AST consumer.
If so, we should not hand it to the consumer when deserializing it, nor include it in the list of eagerly deserialized declarations.
Definition at line 92 of file ASTCommon.h.
References D, and clang::isTemplateInstantiation().
Referenced by isRequiredDecl().
Determine whether the given declaration kind is redeclarable.
Definition at line 365 of file ASTCommon.cpp.
Referenced by clang::ASTDeclWriter::VisitRedeclarable().
|
inline |
Definition at line 19 of file AbstractBasicReader.h.
References clang::T.
|
inline |
Definition at line 20 of file AbstractBasicWriter.h.
|
inline |
Definition at line 24 of file AbstractBasicWriter.h.
|
inline |
Definition at line 23 of file AbstractBasicReader.h.
Determine whether the given declaration needs an anonymous declaration number.
Definition at line 469 of file ASTCommon.cpp.
References D, clang::Decl::getFriendObjectKind(), clang::Decl::getLexicalDeclContext(), clang::DeclContext::isDependentContext(), and clang::DeclContext::isFunctionOrMethod().
Referenced by clang::ASTReader::CompleteRedeclChain(), clang::ASTWriter::getAnonymousDeclarationNumber(), numberAnonymousDeclsWithin(), clang::ASTDeclWriter::VisitEnumDecl(), clang::ASTDeclWriter::VisitNamedDecl(), clang::ASTDeclWriter::VisitRecordDecl(), clang::ASTDeclWriter::VisitTypedefDecl(), clang::ASTDeclWriter::VisitUsingShadowDecl(), and clang::ASTDeclWriter::VisitVarDecl().
void clang::serialization::numberAnonymousDeclsWithin | ( | const DeclContext * | DC, |
Fn | Visit | ||
) |
Visit each declaration within DC
that needs an anonymous declaration number and call Visit
with the declaration and its number.
Definition at line 72 of file ASTCommon.h.
References clang::DeclContext::decls(), and needsAnonymousDeclarationNumber().
Referenced by clang::ASTWriter::getAnonymousDeclarationNumber().
serialization::TypeIdx clang::serialization::TypeIdxFromBuiltin | ( | const BuiltinType * | BT | ) |
Definition at line 26 of file ASTCommon.cpp.
References clang::BuiltinType::getKind(), PREDEF_TYPE_ACCUM_ID, PREDEF_TYPE_ARC_UNBRIDGED_CAST, PREDEF_TYPE_ARRAY_SECTION, PREDEF_TYPE_BFLOAT16_ID, PREDEF_TYPE_BOOL_ID, PREDEF_TYPE_BOUND_MEMBER, PREDEF_TYPE_BUILTIN_FN, PREDEF_TYPE_CHAR16_ID, PREDEF_TYPE_CHAR32_ID, PREDEF_TYPE_CHAR8_ID, PREDEF_TYPE_CHAR_S_ID, PREDEF_TYPE_CHAR_U_ID, PREDEF_TYPE_CLK_EVENT_ID, PREDEF_TYPE_DEPENDENT_ID, PREDEF_TYPE_DOUBLE_ID, PREDEF_TYPE_EVENT_ID, PREDEF_TYPE_FLOAT128_ID, PREDEF_TYPE_FLOAT16_ID, PREDEF_TYPE_FLOAT_ID, PREDEF_TYPE_FRACT_ID, PREDEF_TYPE_HALF_ID, PREDEF_TYPE_IBM128_ID, PREDEF_TYPE_INCOMPLETE_MATRIX_IDX, PREDEF_TYPE_INT128_ID, PREDEF_TYPE_INT_ID, PREDEF_TYPE_LONG_ACCUM_ID, PREDEF_TYPE_LONG_FRACT_ID, PREDEF_TYPE_LONG_ID, PREDEF_TYPE_LONGDOUBLE_ID, PREDEF_TYPE_LONGLONG_ID, PREDEF_TYPE_NULLPTR_ID, PREDEF_TYPE_OBJC_CLASS, PREDEF_TYPE_OBJC_ID, PREDEF_TYPE_OBJC_SEL, PREDEF_TYPE_OMP_ARRAY_SHAPING, PREDEF_TYPE_OMP_ITERATOR, PREDEF_TYPE_OVERLOAD_ID, PREDEF_TYPE_PSEUDO_OBJECT, PREDEF_TYPE_QUEUE_ID, PREDEF_TYPE_RESERVE_ID_ID, PREDEF_TYPE_SAMPLER_ID, PREDEF_TYPE_SAT_ACCUM_ID, PREDEF_TYPE_SAT_FRACT_ID, PREDEF_TYPE_SAT_LONG_ACCUM_ID, PREDEF_TYPE_SAT_LONG_FRACT_ID, PREDEF_TYPE_SAT_SHORT_ACCUM_ID, PREDEF_TYPE_SAT_SHORT_FRACT_ID, PREDEF_TYPE_SAT_UACCUM_ID, PREDEF_TYPE_SAT_UFRACT_ID, PREDEF_TYPE_SAT_ULONG_ACCUM_ID, PREDEF_TYPE_SAT_ULONG_FRACT_ID, PREDEF_TYPE_SAT_USHORT_ACCUM_ID, PREDEF_TYPE_SAT_USHORT_FRACT_ID, PREDEF_TYPE_SCHAR_ID, PREDEF_TYPE_SHORT_ACCUM_ID, PREDEF_TYPE_SHORT_FRACT_ID, PREDEF_TYPE_SHORT_ID, PREDEF_TYPE_UACCUM_ID, PREDEF_TYPE_UCHAR_ID, PREDEF_TYPE_UFRACT_ID, PREDEF_TYPE_UINT128_ID, PREDEF_TYPE_UINT_ID, PREDEF_TYPE_ULONG_ACCUM_ID, PREDEF_TYPE_ULONG_FRACT_ID, PREDEF_TYPE_ULONG_ID, PREDEF_TYPE_ULONGLONG_ID, PREDEF_TYPE_UNKNOWN_ANY, PREDEF_TYPE_UNRESOLVED_TEMPLATE, PREDEF_TYPE_USHORT_ACCUM_ID, PREDEF_TYPE_USHORT_FRACT_ID, PREDEF_TYPE_USHORT_ID, PREDEF_TYPE_VOID_ID, and PREDEF_TYPE_WCHAR_ID.
Referenced by MakeTypeID().
The number of predefined identifier IDs.
Definition at line 66 of file ASTBitCodes.h.
Referenced by clang::ASTReader::getGlobalIdentifierID(), and clang::ASTWriter::SetIdentifierOffset().
The number of predefined macro IDs.
Definition at line 164 of file ASTBitCodes.h.
Referenced by clang::ASTReader::getGlobalMacroID(), and clang::ASTReader::getMacro().
The number of predefined preprocessed entity IDs.
Definition at line 289 of file ASTBitCodes.h.
Referenced by clang::ASTReader::getGlobalPreprocessedEntityID().
The number of predefined selector IDs.
Definition at line 170 of file ASTBitCodes.h.
Referenced by clang::ASTReader::DecodeSelector(), and clang::ASTReader::getGlobalSelectorID().
The number of predefined submodule IDs.
Definition at line 188 of file ASTBitCodes.h.
Referenced by clang::ASTReader::getGlobalSubmoduleID(), clang::ASTReader::getModuleFileID(), and clang::ASTReader::getSubmodule().
const unsigned clang::serialization::VERSION_MAJOR = 31 |
AST file major version number supported by this version of Clang.
Whenever the AST file format changes in a way that makes it incompatible with previous versions (such that a reader designed for the previous version could not support reading the new version), this number should be increased.
Version 4 of AST files also requires that the version control branch and revision match exactly, since there is no backward compatibility of AST files at this time.
Definition at line 47 of file ASTBitCodes.h.
Referenced by getModuleContextHash(), clang::CompilerInvocation::getModuleHash(), and clang::ASTReader::readASTFileControlBlock().
const unsigned clang::serialization::VERSION_MINOR = 1 |
AST file minor version number supported by this version of Clang.
Whenever the AST format changes in a way that is still compatible with previous versions (such that a reader designed for the previous version could still support reading the new version by ignoring new kinds of subblocks), this number should be increased.
Definition at line 57 of file ASTBitCodes.h.
Referenced by getModuleContextHash(), and clang::CompilerInvocation::getModuleHash().