clang 20.0.0git
ASTBitCodes.h
Go to the documentation of this file.
1//===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This header defines Bitcode enum values for Clang serialized AST files.
10//
11// The enum values defined in this file should be considered permanent. If
12// new features are added, they should have values added at the end of the
13// respective lists.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
18#define LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
19
20#include "clang/AST/DeclID.h"
22#include "clang/AST/Type.h"
27#include "llvm/ADT/DenseMapInfo.h"
28#include "llvm/Bitstream/BitCodes.h"
29#include "llvm/Support/MathExtras.h"
30#include <cassert>
31#include <cstdint>
32
33namespace clang {
34namespace serialization {
35
36/// AST file major version number supported by this version of
37/// Clang.
38///
39/// Whenever the AST file format changes in a way that makes it
40/// incompatible with previous versions (such that a reader
41/// designed for the previous version could not support reading
42/// the new version), this number should be increased.
43///
44/// Version 4 of AST files also requires that the version control branch and
45/// revision match exactly, since there is no backward compatibility of
46/// AST files at this time.
47const unsigned VERSION_MAJOR = 34;
48
49/// AST file minor version number supported by this version of
50/// Clang.
51///
52/// Whenever the AST format changes in a way that is still
53/// compatible with previous versions (such that a reader designed
54/// for the previous version could still support reading the new
55/// version by ignoring new kinds of subblocks), this number
56/// should be increased.
57const unsigned VERSION_MINOR = 0;
58
59/// An ID number that refers to an identifier in an AST file.
60///
61/// The ID numbers of identifiers are consecutive (in order of discovery)
62/// and start at 1. 0 is reserved for NULL.
63using IdentifierID = uint64_t;
64
65/// The number of predefined identifier IDs.
66const unsigned int NUM_PREDEF_IDENT_IDS = 1;
67
68/// An ID number that refers to a declaration in an AST file. See the comments
69/// in DeclIDBase for details.
71
72/// An ID number that refers to a type in an AST file.
73///
74/// The ID of a type is partitioned into three parts:
75/// - the lower three bits are used to store the const/volatile/restrict
76/// qualifiers (as with QualType).
77/// - the next 29 bits provide a type index in the corresponding
78/// module file.
79/// - the upper 32 bits provide a module file index.
80///
81/// The type index values are partitioned into two
82/// sets. The values below NUM_PREDEF_TYPE_IDs are predefined type
83/// IDs (based on the PREDEF_TYPE_*_ID constants), with 0 as a
84/// placeholder for "no type". The module file index for predefined
85/// types are always 0 since they don't belong to any modules.
86/// Values from NUM_PREDEF_TYPE_IDs are other types that have
87/// serialized representations.
88using TypeID = uint64_t;
89/// Same with TypeID except that the LocalTypeID is only meaningful
90/// with the corresponding ModuleFile.
91///
92/// FIXME: Make TypeID and LocalTypeID a class to improve the type
93/// safety.
95
96/// A type index; the type ID with the qualifier bits removed.
97/// Keep structure alignment 32-bit since the blob is assumed as 32-bit
98/// aligned.
99class TypeIdx {
100 uint32_t ModuleFileIndex = 0;
101 uint32_t Idx = 0;
102
103public:
104 TypeIdx() = default;
105
106 explicit TypeIdx(uint32_t ModuleFileIdx, uint32_t Idx)
107 : ModuleFileIndex(ModuleFileIdx), Idx(Idx) {}
108
109 uint32_t getModuleFileIndex() const { return ModuleFileIndex; }
110
111 uint64_t getValue() const { return ((uint64_t)ModuleFileIndex << 32) | Idx; }
112
113 TypeID asTypeID(unsigned FastQuals) const {
114 if (Idx == uint32_t(-1))
115 return TypeID(-1);
116
117 unsigned Index = (Idx << Qualifiers::FastWidth) | FastQuals;
118 return ((uint64_t)ModuleFileIndex << 32) | Index;
119 }
120
122 if (ID == TypeID(-1))
123 return TypeIdx(0, -1);
124
125 return TypeIdx(ID >> 32, (ID & llvm::maskTrailingOnes<TypeID>(32)) >>
127 }
128};
129
130static_assert(alignof(TypeIdx) == 4);
131
132/// A structure for putting "fast"-unqualified QualTypes into a
133/// DenseMap. This uses the standard pointer hash function.
135 static bool isEqual(QualType A, QualType B) { return A == B; }
136
138 return QualType::getFromOpaquePtr((void *)1);
139 }
140
142 return QualType::getFromOpaquePtr((void *)2);
143 }
144
145 static unsigned getHashValue(QualType T) {
146 assert(!T.getLocalFastQualifiers() &&
147 "hash invalid for types with fast quals");
148 uintptr_t v = reinterpret_cast<uintptr_t>(T.getAsOpaquePtr());
149 return (unsigned(v) >> 4) ^ (unsigned(v) >> 9);
150 }
151};
152
153/// An ID number that refers to a macro in an AST file.
154using MacroID = uint32_t;
155
156/// A global ID number that refers to a macro in an AST file.
157using GlobalMacroID = uint32_t;
158
159/// A local to a module ID number that refers to a macro in an
160/// AST file.
161using LocalMacroID = uint32_t;
162
163/// The number of predefined macro IDs.
164const unsigned int NUM_PREDEF_MACRO_IDS = 1;
165
166/// An ID number that refers to an ObjC selector in an AST file.
167using SelectorID = uint32_t;
168
169/// The number of predefined selector IDs.
170const unsigned int NUM_PREDEF_SELECTOR_IDS = 1;
171
172/// An ID number that refers to a set of CXXBaseSpecifiers in an
173/// AST file.
174using CXXBaseSpecifiersID = uint32_t;
175
176/// An ID number that refers to a list of CXXCtorInitializers in an
177/// AST file.
178using CXXCtorInitializersID = uint32_t;
179
180/// An ID number that refers to an entity in the detailed
181/// preprocessing record.
182using PreprocessedEntityID = uint32_t;
183
184/// An ID number that refers to a submodule in a module file.
185using SubmoduleID = uint32_t;
186
187/// The number of predefined submodule IDs.
188const unsigned int NUM_PREDEF_SUBMODULE_IDS = 1;
189
190/// 32 aligned uint64_t in the AST file. Use splitted 64-bit integer into
191/// low/high parts to keep structure alignment 32-bit (it is important
192/// because blobs in bitstream are 32-bit aligned). This structure is
193/// serialized "as is" to the AST file.
195 uint32_t BitLow = 0;
196 uint32_t BitHigh = 0;
197
198public:
199 UnalignedUInt64() = default;
200 UnalignedUInt64(uint64_t BitOffset) { set(BitOffset); }
201
202 void set(uint64_t Offset) {
203 BitLow = Offset;
204 BitHigh = Offset >> 32;
205 }
206
207 uint64_t get() const { return BitLow | (uint64_t(BitHigh) << 32); }
208};
209
210/// Source range/offset of a preprocessed entity.
212 using RawLocEncoding = SourceLocationEncoding::RawLocEncoding;
213
214 /// Raw source location of beginning of range.
215 UnalignedUInt64 Begin;
216
217 /// Raw source location of end of range.
218 UnalignedUInt64 End;
219
220 /// Offset in the AST file relative to ModuleFile::MacroOffsetsBase.
221 uint32_t BitOffset;
222
223public:
224 PPEntityOffset(RawLocEncoding Begin, RawLocEncoding End, uint32_t BitOffset)
225 : Begin(Begin), End(End), BitOffset(BitOffset) {}
226
227 RawLocEncoding getBegin() const { return Begin.get(); }
228 RawLocEncoding getEnd() const { return End.get(); }
229
230 uint32_t getOffset() const { return BitOffset; }
231};
232
233/// Source range of a skipped preprocessor region
235 using RawLocEncoding = SourceLocationEncoding::RawLocEncoding;
236
237 /// Raw source location of beginning of range.
238 UnalignedUInt64 Begin;
239 /// Raw source location of end of range.
240 UnalignedUInt64 End;
241
242public:
243 PPSkippedRange(RawLocEncoding Begin, RawLocEncoding End)
244 : Begin(Begin), End(End) {}
245
246 RawLocEncoding getBegin() const { return Begin.get(); }
247 RawLocEncoding getEnd() const { return End.get(); }
248};
249
250/// Source location and bit offset of a declaration. Keep
251/// structure alignment 32-bit since the blob is assumed as 32-bit aligned.
253 using RawLocEncoding = SourceLocationEncoding::RawLocEncoding;
254
255 /// Raw source location.
256 UnalignedUInt64 RawLoc;
257
258 /// Offset relative to the start of the DECLTYPES_BLOCK block.
259 UnalignedUInt64 BitOffset;
260
261public:
262 DeclOffset() = default;
263 DeclOffset(RawLocEncoding RawLoc, uint64_t BitOffset,
264 uint64_t DeclTypesBlockStartOffset)
265 : RawLoc(RawLoc) {
266 setBitOffset(BitOffset, DeclTypesBlockStartOffset);
267 }
268
269 void setRawLoc(RawLocEncoding Loc) { RawLoc = Loc; }
270
271 RawLocEncoding getRawLoc() const { return RawLoc.get(); }
272
273 void setBitOffset(uint64_t Offset, const uint64_t DeclTypesBlockStartOffset) {
274 BitOffset.set(Offset - DeclTypesBlockStartOffset);
275 }
276
277 uint64_t getBitOffset(const uint64_t DeclTypesBlockStartOffset) const {
278 return BitOffset.get() + DeclTypesBlockStartOffset;
279 }
280};
281
282// The unaligned decl ID used in the Blobs of bistreams.
284 llvm::support::detail::packed_endian_specific_integral<
285 serialization::DeclID, llvm::endianness::native,
286 llvm::support::unaligned>;
287
288/// The number of predefined preprocessed entity IDs.
289const unsigned int NUM_PREDEF_PP_ENTITY_IDS = 1;
290
291/// Describes the various kinds of blocks that occur within
292/// an AST file.
294 /// The AST block, which acts as a container around the
295 /// full AST block.
296 AST_BLOCK_ID = llvm::bitc::FIRST_APPLICATION_BLOCKID,
297
298 /// The block containing information about the source
299 /// manager.
301
302 /// The block containing information about the
303 /// preprocessor.
305
306 /// The block containing the definitions of all of the
307 /// types and decls used within the AST file.
309
310 /// The block containing the detailed preprocessing record.
312
313 /// The block containing the submodule structure.
315
316 /// The block containing comments.
318
319 /// The control block, which contains all of the
320 /// information that needs to be validated prior to committing
321 /// to loading the AST file.
323
324 /// The block of input files, which were used as inputs
325 /// to create this AST file.
326 ///
327 /// This block is part of the control block.
329
330 /// The block of configuration options, used to check that
331 /// a module is being used in a configuration compatible with the
332 /// configuration in which it was built.
333 ///
334 /// This block is part of the control block.
336
337 /// A block containing a module file extension.
339
340 /// A block with unhashed content.
341 ///
342 /// These records should not change the \a ASTFileSignature. See \a
343 /// UnhashedControlBlockRecordTypes for the list of records.
345};
346
347/// Record types that occur within the control block.
349 /// AST file metadata, including the AST file version number
350 /// and information about the compiler used to build this AST file.
352
353 /// Record code for another AST file imported by this AST file.
355
356 /// Record code for the original file that was used to
357 /// generate the AST file, including both its file ID and its
358 /// name.
360
361 /// Record code for file ID of the file or buffer that was used to
362 /// generate the AST file.
364
365 /// Offsets into the input-files block where input files
366 /// reside.
368
369 /// Record code for the module name.
371
372 /// Record code for the module map file that was used to build this
373 /// AST file.
375
376 /// Record code for the module build directory.
378};
379
380/// Record types that occur within the options block inside
381/// the control block.
383 /// Record code for the language options table.
384 ///
385 /// The record with this code contains the contents of the
386 /// LangOptions structure. We serialize the entire contents of
387 /// the structure, and let the reader decide which options are
388 /// actually important to check.
390
391 /// Record code for the target options table.
393
394 /// Record code for the filesystem options table.
396
397 /// Record code for the headers search options table.
399
400 /// Record code for the preprocessor options table.
402};
403
404/// Record codes for the unhashed control block.
406 /// Record code for the signature that identifiers this AST file.
408
409 /// Record code for the content hash of the AST block.
411
412 /// Record code for the diagnostic options table.
414
415 /// Record code for the headers search paths.
417
418 /// Record code for \#pragma diagnostic mappings.
420
421 /// Record code for the indices of used header search entries.
423
424 /// Record code for the indices of used VFSs.
426};
427
428/// Record code for extension blocks.
430 /// Metadata describing this particular extension.
432
433 /// The first record ID allocated to the extensions themselves.
436
437/// Record types that occur within the input-files block
438/// inside the control block.
440 /// An input file.
442
443 /// The input file content hash
446
447/// Record types that occur within the AST block itself.
449 /// Record code for the offsets of each type.
450 ///
451 /// The TYPE_OFFSET constant describes the record that occurs
452 /// within the AST block. The record itself is an array of offsets that
453 /// point into the declarations and types block (identified by
454 /// DECLTYPES_BLOCK_ID). The index into the array is based on the ID
455 /// of a type. For a given type ID @c T, the lower three bits of
456 /// @c T are its qualifiers (const, volatile, restrict), as in
457 /// the QualType class. The upper bits, after being shifted and
458 /// subtracting NUM_PREDEF_TYPE_IDS, are used to index into the
459 /// TYPE_OFFSET block to determine the offset of that type's
460 /// corresponding record within the DECLTYPES_BLOCK_ID block.
462
463 /// Record code for the offsets of each decl.
464 ///
465 /// The DECL_OFFSET constant describes the record that occurs
466 /// within the block identified by DECL_OFFSETS_BLOCK_ID within
467 /// the AST block. The record itself is an array of offsets that
468 /// point into the declarations and types block (identified by
469 /// DECLTYPES_BLOCK_ID). The declaration ID is an index into this
470 /// record, after subtracting one to account for the use of
471 /// declaration ID 0 for a NULL declaration pointer. Index 0 is
472 /// reserved for the translation unit declaration.
474
475 /// Record code for the table of offsets of each
476 /// identifier ID.
477 ///
478 /// The offset table contains offsets into the blob stored in
479 /// the IDENTIFIER_TABLE record. Each offset points to the
480 /// NULL-terminated string that corresponds to that identifier.
482
483 /// This is so that older clang versions, before the introduction
484 /// of the control block, can read and reject the newer PCH format.
485 /// *DON'T CHANGE THIS NUMBER*.
487
488 /// Record code for the identifier table.
489 ///
490 /// The identifier table is a simple blob that contains
491 /// NULL-terminated strings for all of the identifiers
492 /// referenced by the AST file. The IDENTIFIER_OFFSET table
493 /// contains the mapping from identifier IDs to the characters
494 /// in this blob. Note that the starting offsets of all of the
495 /// identifiers are odd, so that, when the identifier offset
496 /// table is loaded in, we can use the low bit to distinguish
497 /// between offsets (for unresolved identifier IDs) and
498 /// IdentifierInfo pointers (for already-resolved identifier
499 /// IDs).
501
502 /// Record code for the array of eagerly deserialized decls.
503 ///
504 /// The AST file contains a list of all of the declarations that should be
505 /// eagerly deserialized present within the parsed headers, stored as an
506 /// array of declaration IDs. These declarations will be
507 /// reported to the AST consumer after the AST file has been
508 /// read, since their presence can affect the semantics of the
509 /// program (e.g., for code generation).
511
512 /// Record code for the set of non-builtin, special
513 /// types.
514 ///
515 /// This record contains the type IDs for the various type nodes
516 /// that are constructed during semantic analysis (e.g.,
517 /// __builtin_va_list). The SPECIAL_TYPE_* constants provide
518 /// offsets into this record.
520
521 /// Record code for the extra statistics we gather while
522 /// generating an AST file.
524
525 /// Record code for the array of tentative definitions.
527
528 // ID 10 used to be for a list of extern "C" declarations.
529
530 /// Record code for the table of offsets into the
531 /// Objective-C method pool.
533
534 /// Record code for the Objective-C method pool,
536
537 /// The value of the next __COUNTER__ to dispense.
538 /// [PP_COUNTER_VALUE, Val]
540
541 /// Record code for the table of offsets into the block
542 /// of source-location information.
544
545 // ID 15 used to be for source location entry preloads.
546
547 /// Record code for the set of ext_vector type names.
549
550 /// Record code for the array of unused file scoped decls.
552
553 /// Record code for the table of offsets to entries in the
554 /// preprocessing record.
556
557 /// Record code for the array of VTable uses.
559
560 // ID 20 used to be for a list of dynamic classes.
561
562 /// Record code for referenced selector pool.
564
565 /// Record code for an update to the TU's lexically contained
566 /// declarations.
568
569 // ID 23 used to be for a list of local redeclarations.
570
571 /// Record code for declarations that Sema keeps references of.
573
574 /// Record code for weak undeclared identifiers.
576
577 /// Record code for pending implicit instantiations.
579
580 // ID 27 used to be for a list of replacement decls.
581
582 /// Record code for an update to a decl context's lookup table.
583 ///
584 /// In practice, this should only be used for the TU and namespaces.
586
587 /// Record for offsets of DECL_UPDATES records for declarations
588 /// that were modified after being deserialized and need updates.
590
591 // ID 30 used to be a decl update record. These are now in the DECLTYPES
592 // block.
593
594 // ID 31 used to be a list of offsets to DECL_CXX_BASE_SPECIFIERS records.
595
596 // ID 32 used to be the code for \#pragma diagnostic mappings.
597
598 /// Record code for special CUDA declarations.
600
601 /// Record code for header search information.
603
604 /// Record code for floating point \#pragma options.
606
607 /// Record code for enabled OpenCL extensions.
609
610 /// The list of delegating constructor declarations.
612
613 /// Record code for the set of known namespaces, which are used
614 /// for typo correction.
616
617 /// Record code for the remapping information used to relate
618 /// loaded modules to the various offsets and IDs(e.g., source location
619 /// offests, declaration and type IDs) that are used in that module to
620 /// refer to other modules.
622
623 /// Record code for the source manager line table information,
624 /// which stores information about \#line directives.
626
627 /// Record code for map of Objective-C class definition IDs to the
628 /// ObjC categories in a module that are attached to that class.
630
631 /// Record code for a file sorted array of DeclIDs in a module.
633
634 /// Record code for an array of all of the (sub)modules that were
635 /// imported by the AST file.
637
638 // ID 44 used to be a table of merged canonical declarations.
639 // ID 45 used to be a list of declaration IDs of local redeclarations.
640
641 /// Record code for the array of Objective-C categories (including
642 /// extensions).
643 ///
644 /// This array can only be interpreted properly using the Objective-C
645 /// categories map.
647
648 /// Record code for the table of offsets of each macro ID.
649 ///
650 /// The offset table contains offsets into the blob stored in
651 /// the preprocessor block. Each offset points to the corresponding
652 /// macro definition.
654
655 /// A list of "interesting" identifiers. Only used in C++ (where we
656 /// don't normally do lookups into the serialized identifier table). These
657 /// are eagerly deserialized.
659
660 /// Record code for undefined but used functions and variables that
661 /// need a definition in this TU.
663
664 /// Record code for late parsed template functions.
666
667 /// Record code for \#pragma optimize options.
669
670 /// Record code for potentially unused local typedef names.
672
673 // ID 53 used to be a table of constructor initializer records.
674
675 /// Delete expressions that will be analyzed later.
677
678 /// Record code for \#pragma ms_struct options.
680
681 /// Record code for \#pragma ms_struct options.
683
684 /// Number of unmatched #pragma clang cuda_force_host_device begin
685 /// directives we've seen.
687
688 /// Record code for types associated with OpenCL extensions.
690
691 /// Record code for declarations associated with OpenCL extensions.
693
695
696 /// Record code for \#pragma align/pack options.
698
699 /// The stack of open #ifs/#ifdefs recorded in a preamble.
701
702 /// A table of skipped ranges within the preprocessing record.
704
705 /// Record code for the Decls to be checked for deferred diags.
707
708 /// Record code for \#pragma float_control options.
710
711 /// ID 66 used to be the list of included files.
712
713 /// Record code for an unterminated \#pragma clang assume_nonnull begin
714 /// recorded in a preamble.
716
717 /// Record code for lexical and visible block for delayed namespace in
718 /// reduced BMI.
720
721 /// Record code for \#pragma clang unsafe_buffer_usage begin/end
723
724 /// Record code for vtables to emit.
726
727 /// Record code for related declarations that have to be deserialized together
728 /// from the same module.
730
731 /// Record code for Sema's vector of functions/blocks with effects to
732 /// be verified.
734
735 /// Record code for updated specialization
737
739
741
743};
744
745/// Record types used within a source manager block.
747 /// Describes a source location entry (SLocEntry) for a
748 /// file.
750
751 /// Describes a source location entry (SLocEntry) for a
752 /// buffer.
754
755 /// Describes a blob that contains the data for a buffer
756 /// entry. This kind of record always directly follows a
757 /// SM_SLOC_BUFFER_ENTRY record or a SM_SLOC_FILE_ENTRY with an
758 /// overridden buffer.
760
761 /// Describes a zlib-compressed blob that contains the data for
762 /// a buffer entry.
764
765 /// Describes a source location entry (SLocEntry) for a
766 /// macro expansion.
769
770/// Record types used within a preprocessor block.
772 // The macros in the PP section are a PP_MACRO_* instance followed by a
773 // list of PP_TOKEN instances for each token in the definition.
774
775 /// An object-like macro definition.
776 /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
778
779 /// A function-like macro definition.
780 /// [PP_MACRO_FUNCTION_LIKE, <ObjectLikeStuff>, IsC99Varargs,
781 /// IsGNUVarars, NumArgs, ArgIdentInfoID* ]
783
784 /// Describes one token.
785 /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags]
787
788 /// The macro directives history for a particular identifier.
790
791 /// A macro directive exported by a module.
792 /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*]
794};
795
796/// Record types used within a preprocessor detail block.
798 /// Describes a macro expansion within the preprocessing record.
800
801 /// Describes a macro definition within the preprocessing record.
803
804 /// Describes an inclusion directive within the preprocessing
805 /// record.
808
809/// Record types used within a submodule description block.
811 /// Metadata for submodules as a whole.
813
814 /// Defines the major attributes of a submodule, including its
815 /// name and parent.
817
818 /// Specifies the umbrella header used to create this module,
819 /// if any.
821
822 /// Specifies a header that falls into this (sub)module.
824
825 /// Specifies a top-level header that falls into this (sub)module.
827
828 /// Specifies an umbrella directory.
830
831 /// Specifies the submodules that are imported by this
832 /// submodule.
834
835 /// Specifies the submodules that are re-exported from this
836 /// submodule.
838
839 /// Specifies a required feature.
841
842 /// Specifies a header that has been explicitly excluded
843 /// from this submodule.
845
846 /// Specifies a library or framework to link against.
848
849 /// Specifies a configuration macro for this module.
851
852 /// Specifies a conflict with another module.
854
855 /// Specifies a header that is private to this submodule.
857
858 /// Specifies a header that is part of the module but must be
859 /// textually included.
861
862 /// Specifies a header that is private to this submodule but
863 /// must be textually included.
865
866 /// Specifies some declarations with initializers that must be
867 /// emitted to initialize the module.
869
870 /// Specifies the name of the module that will eventually
871 /// re-export the entities in this module.
873
874 /// Specifies affecting modules that were not imported.
876};
877
878/// Record types used within a comments block.
880
881/// \defgroup ASTAST AST file AST constants
882///
883/// The constants in this group describe various components of the
884/// abstract syntax tree within an AST file.
885///
886/// @{
887
888/// Predefined type IDs.
889///
890/// These type IDs correspond to predefined types in the AST
891/// context, such as built-in types (int) and special place-holder
892/// types (the <overload> and <dependent> type markers). Such
893/// types are never actually serialized, since they will be built
894/// by the AST context when it is created.
896 /// The NULL type.
898
899 /// The void type.
901
902 /// The 'bool' or '_Bool' type.
904
905 /// The 'char' type, when it is unsigned.
907
908 /// The 'unsigned char' type.
910
911 /// The 'unsigned short' type.
913
914 /// The 'unsigned int' type.
916
917 /// The 'unsigned long' type.
919
920 /// The 'unsigned long long' type.
922
923 /// The 'char' type, when it is signed.
925
926 /// The 'signed char' type.
928
929 /// The C++ 'wchar_t' type.
931
932 /// The (signed) 'short' type.
934
935 /// The (signed) 'int' type.
937
938 /// The (signed) 'long' type.
940
941 /// The (signed) 'long long' type.
943
944 /// The 'float' type.
946
947 /// The 'double' type.
949
950 /// The 'long double' type.
952
953 /// The placeholder type for overloaded function sets.
955
956 /// The placeholder type for dependent types.
958
959 /// The '__uint128_t' type.
961
962 /// The '__int128_t' type.
964
965 /// The type of 'nullptr'.
967
968 /// The C++ 'char16_t' type.
970
971 /// The C++ 'char32_t' type.
973
974 /// The ObjC 'id' type.
976
977 /// The ObjC 'Class' type.
979
980 /// The ObjC 'SEL' type.
982
983 /// The 'unknown any' placeholder type.
985
986 /// The placeholder type for bound member functions.
988
989 /// The "auto" deduction type.
991
992 /// The "auto &&" deduction type.
994
995 /// The OpenCL 'half' / ARM NEON __fp16 type.
997
998 /// ARC's unbridged-cast placeholder type.
1000
1001 /// The pseudo-object placeholder type.
1003
1004 /// The placeholder type for builtin functions.
1006
1007 /// OpenCL event type.
1009
1010 /// OpenCL clk event type.
1012
1013 /// OpenCL sampler type.
1015
1016 /// OpenCL queue type.
1018
1019 /// OpenCL reserve_id type.
1021
1022 /// The placeholder type for an array section.
1024
1025 /// The '__float128' type
1027
1028 /// The '_Float16' type
1030
1031 /// The C++ 'char8_t' type.
1033
1034 /// \brief The 'short _Accum' type
1036
1037 /// \brief The '_Accum' type
1039
1040 /// \brief The 'long _Accum' type
1042
1043 /// \brief The 'unsigned short _Accum' type
1045
1046 /// \brief The 'unsigned _Accum' type
1048
1049 /// \brief The 'unsigned long _Accum' type
1051
1052 /// \brief The 'short _Fract' type
1054
1055 /// \brief The '_Fract' type
1057
1058 /// \brief The 'long _Fract' type
1060
1061 /// \brief The 'unsigned short _Fract' type
1063
1064 /// \brief The 'unsigned _Fract' type
1066
1067 /// \brief The 'unsigned long _Fract' type
1069
1070 /// \brief The '_Sat short _Accum' type
1072
1073 /// \brief The '_Sat _Accum' type
1075
1076 /// \brief The '_Sat long _Accum' type
1078
1079 /// \brief The '_Sat unsigned short _Accum' type
1081
1082 /// \brief The '_Sat unsigned _Accum' type
1084
1085 /// \brief The '_Sat unsigned long _Accum' type
1087
1088 /// \brief The '_Sat short _Fract' type
1090
1091 /// \brief The '_Sat _Fract' type
1093
1094 /// \brief The '_Sat long _Fract' type
1096
1097 /// \brief The '_Sat unsigned short _Fract' type
1099
1100 /// \brief The '_Sat unsigned _Fract' type
1102
1103 /// \brief The '_Sat unsigned long _Fract' type
1105
1106 /// The placeholder type for OpenMP array shaping operation.
1108
1109 /// The placeholder type for OpenMP iterator expression.
1111
1112 /// A placeholder type for incomplete matrix index operations.
1114
1115 /// \brief The '__bf16' type
1117
1118 /// \brief The '__ibm128' type
1120
1121/// OpenCL image types with auto numeration
1122#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
1123 PREDEF_TYPE_##Id##_ID,
1124#include "clang/Basic/OpenCLImageTypes.def"
1125/// \brief OpenCL extension types with auto numeration
1126#define EXT_OPAQUE_TYPE(ExtType, Id, Ext) PREDEF_TYPE_##Id##_ID,
1127#include "clang/Basic/OpenCLExtensionTypes.def"
1128// \brief SVE types with auto numeration
1129#define SVE_TYPE(Name, Id, SingletonId) PREDEF_TYPE_##Id##_ID,
1130#include "clang/Basic/AArch64SVEACLETypes.def"
1131// \brief PowerPC MMA types with auto numeration
1132#define PPC_VECTOR_TYPE(Name, Id, Size) PREDEF_TYPE_##Id##_ID,
1133#include "clang/Basic/PPCTypes.def"
1134// \brief RISC-V V types with auto numeration
1135#define RVV_TYPE(Name, Id, SingletonId) PREDEF_TYPE_##Id##_ID,
1136#include "clang/Basic/RISCVVTypes.def"
1137// \brief WebAssembly reference types with auto numeration
1138#define WASM_TYPE(Name, Id, SingletonId) PREDEF_TYPE_##Id##_ID,
1139#include "clang/Basic/WebAssemblyReferenceTypes.def"
1140// \brief AMDGPU types with auto numeration
1141#define AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) PREDEF_TYPE_##Id##_ID,
1142#include "clang/Basic/AMDGPUTypes.def"
1143// \brief HLSL intangible types with auto numeration
1144#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) PREDEF_TYPE_##Id##_ID,
1145#include "clang/Basic/HLSLIntangibleTypes.def"
1146
1147 /// The placeholder type for unresolved templates.
1149 // Sentinel value. Considered a predefined type but not useable as one.
1152
1153/// The number of predefined type IDs that are reserved for
1154/// the PREDEF_TYPE_* constants.
1155///
1156/// Type IDs for non-predefined types will start at
1157/// NUM_PREDEF_TYPE_IDs.
1158const unsigned NUM_PREDEF_TYPE_IDS = 513;
1159
1160// Ensure we do not overrun the predefined types we reserved
1161// in the enum PredefinedTypeIDs above.
1163 "Too many enumerators in PredefinedTypeIDs. Review the value of "
1164 "NUM_PREDEF_TYPE_IDS");
1165
1166/// Record codes for each kind of type.
1167///
1168/// These constants describe the type records that can occur within a
1169/// block identified by DECLTYPES_BLOCK_ID in the AST file. Each
1170/// constant describes a record for a specific type class in the
1171/// AST. Note that DeclCode values share this code space.
1173#define TYPE_BIT_CODE(CLASS_ID, CODE_ID, CODE_VALUE) \
1174 TYPE_##CODE_ID = CODE_VALUE,
1175#include "clang/Serialization/TypeBitCodes.def"
1176
1177 /// An ExtQualType record.
1178 TYPE_EXT_QUAL = 1
1180
1181/// The type IDs for special types constructed by semantic
1182/// analysis.
1183///
1184/// The constants in this enumeration are indices into the
1185/// SPECIAL_TYPES record.
1187 /// CFConstantString type
1189
1190 /// C FILE typedef type
1192
1193 /// C jmp_buf typedef type
1195
1196 /// C sigjmp_buf typedef type
1198
1199 /// Objective-C "id" redefinition type
1201
1202 /// Objective-C "Class" redefinition type
1204
1205 /// Objective-C "SEL" redefinition type
1207
1208 /// C ucontext_t typedef type
1211
1212/// The number of special type IDs.
1213const unsigned NumSpecialTypeIDs = 8;
1214
1215/// Record of updates for a declaration that was modified after
1216/// being deserialized. This can occur within DECLTYPES_BLOCK_ID.
1217const unsigned int DECL_UPDATES = 49;
1218
1219/// Record code for a list of local redeclarations of a declaration.
1220/// This can occur within DECLTYPES_BLOCK_ID.
1221const unsigned int LOCAL_REDECLARATIONS = 50;
1222
1223/// Record codes for each kind of declaration.
1224///
1225/// These constants describe the declaration records that can occur within
1226/// a declarations block (identified by DECLTYPES_BLOCK_ID). Each
1227/// constant describes a record for a specific declaration class
1228/// in the AST. Note that TypeCode values share this code space.
1230 /// A TypedefDecl record.
1232 /// A TypeAliasDecl record.
1233
1235
1236 /// An EnumDecl record.
1238
1239 /// A RecordDecl record.
1241
1242 /// An EnumConstantDecl record.
1244
1245 /// A FunctionDecl record.
1247
1248 /// A ObjCMethodDecl record.
1250
1251 /// A ObjCInterfaceDecl record.
1253
1254 /// A ObjCProtocolDecl record.
1256
1257 /// A ObjCIvarDecl record.
1259
1260 /// A ObjCAtDefsFieldDecl record.
1262
1263 /// A ObjCCategoryDecl record.
1265
1266 /// A ObjCCategoryImplDecl record.
1268
1269 /// A ObjCImplementationDecl record.
1271
1272 /// A ObjCCompatibleAliasDecl record.
1274
1275 /// A ObjCPropertyDecl record.
1277
1278 /// A ObjCPropertyImplDecl record.
1280
1281 /// A FieldDecl record.
1283
1284 /// A MSPropertyDecl record.
1286
1287 /// A MSGuidDecl record.
1289
1290 /// A TemplateParamObjectDecl record.
1292
1293 /// A VarDecl record.
1295
1296 /// An ImplicitParamDecl record.
1298
1299 /// A ParmVarDecl record.
1301
1302 /// A DecompositionDecl record.
1304
1305 /// A BindingDecl record.
1307
1308 /// A FileScopeAsmDecl record.
1310
1311 /// A TopLevelStmtDecl record.
1313
1314 /// A BlockDecl record.
1316
1317 /// A CapturedDecl record.
1319
1320 /// A record that stores the set of declarations that are
1321 /// lexically stored within a given DeclContext.
1322 ///
1323 /// The record itself is a blob that is an array of declaration IDs,
1324 /// in the order in which those declarations were added to the
1325 /// declaration context. This data is used when iterating over
1326 /// the contents of a DeclContext, e.g., via
1327 /// DeclContext::decls_begin() and DeclContext::decls_end().
1329
1330 /// A record that stores the set of declarations that are
1331 /// visible from a given DeclContext.
1332 ///
1333 /// The record itself stores a set of mappings, each of which
1334 /// associates a declaration name with one or more declaration
1335 /// IDs. This data is used when performing qualified name lookup
1336 /// into a DeclContext via DeclContext::lookup.
1338
1339 /// A record containing the set of declarations that are
1340 /// only visible from DeclContext in the same module.
1342
1343 /// A LabelDecl record.
1345
1346 /// A NamespaceDecl record.
1348
1349 /// A NamespaceAliasDecl record.
1351
1352 /// A UsingDecl record.
1354
1355 /// A UsingEnumDecl record.
1357
1358 /// A UsingPackDecl record.
1360
1361 /// A UsingShadowDecl record.
1363
1364 /// A ConstructorUsingShadowDecl record.
1366
1367 /// A UsingDirecitveDecl record.
1369
1370 /// An UnresolvedUsingValueDecl record.
1372
1373 /// An UnresolvedUsingTypenameDecl record.
1375
1376 /// A LinkageSpecDecl record.
1378
1379 /// An ExportDecl record.
1381
1382 /// A CXXRecordDecl record.
1384
1385 /// A CXXDeductionGuideDecl record.
1387
1388 /// A CXXMethodDecl record.
1390
1391 /// A CXXConstructorDecl record.
1393
1394 /// A CXXDestructorDecl record.
1396
1397 /// A CXXConversionDecl record.
1399
1400 /// An AccessSpecDecl record.
1402
1403 /// A FriendDecl record.
1405
1406 /// A FriendTemplateDecl record.
1408
1409 /// A ClassTemplateDecl record.
1411
1412 /// A ClassTemplateSpecializationDecl record.
1414
1415 /// A ClassTemplatePartialSpecializationDecl record.
1417
1418 /// A VarTemplateDecl record.
1420
1421 /// A VarTemplateSpecializationDecl record.
1423
1424 /// A VarTemplatePartialSpecializationDecl record.
1426
1427 /// A FunctionTemplateDecl record.
1429
1430 /// A TemplateTypeParmDecl record.
1432
1433 /// A NonTypeTemplateParmDecl record.
1435
1436 /// A TemplateTemplateParmDecl record.
1438
1439 /// A TypeAliasTemplateDecl record.
1441
1442 /// \brief A ConceptDecl record.
1444
1445 /// An UnresolvedUsingIfExistsDecl record.
1447
1448 /// \brief A StaticAssertDecl record.
1450
1451 /// A record containing CXXBaseSpecifiers.
1453
1454 /// A record containing CXXCtorInitializers.
1456
1457 /// A IndirectFieldDecl record.
1459
1460 /// A NonTypeTemplateParmDecl record that stores an expanded
1461 /// non-type template parameter pack.
1463
1464 /// A TemplateTemplateParmDecl record that stores an expanded
1465 /// template template parameter pack.
1467
1468 /// An ImportDecl recording a module import.
1470
1471 /// An OMPThreadPrivateDecl record.
1473
1474 /// An OMPRequiresDecl record.
1476
1477 /// An OMPAllocateDcl record.
1479
1480 /// An EmptyDecl record.
1482
1483 /// An LifetimeExtendedTemporaryDecl record.
1485
1486 /// A RequiresExprBodyDecl record.
1488
1489 /// An ObjCTypeParamDecl record.
1491
1492 /// An OMPCapturedExprDecl record.
1494
1495 /// A PragmaCommentDecl record.
1497
1498 /// A PragmaDetectMismatchDecl record.
1500
1501 /// An OMPDeclareMapperDecl record.
1503
1504 /// An OMPDeclareReductionDecl record.
1506
1507 /// A UnnamedGlobalConstantDecl record.
1509
1510 /// A HLSLBufferDecl record.
1512
1513 /// An ImplicitConceptSpecializationDecl record.
1515
1516 // A decls specilization record.
1518
1519 // A decls specilization record.
1521
1524
1525/// Record codes for each kind of statement or expression.
1526///
1527/// These constants describe the records that describe statements
1528/// or expressions. These records occur within type and declarations
1529/// block, so they begin with record values of 128. Each constant
1530/// describes a record for a specific statement or expression class in the
1531/// AST.
1533 /// A marker record that indicates that we are at the end
1534 /// of an expression.
1536
1537 /// A NULL expression.
1539
1540 /// A reference to a previously [de]serialized Stmt record.
1542
1543 /// A NullStmt record.
1545
1546 /// A CompoundStmt record.
1548
1549 /// A CaseStmt record.
1551
1552 /// A DefaultStmt record.
1554
1555 /// A LabelStmt record.
1557
1558 /// An AttributedStmt record.
1560
1561 /// An IfStmt record.
1563
1564 /// A SwitchStmt record.
1566
1567 /// A WhileStmt record.
1569
1570 /// A DoStmt record.
1572
1573 /// A ForStmt record.
1575
1576 /// A GotoStmt record.
1578
1579 /// An IndirectGotoStmt record.
1581
1582 /// A ContinueStmt record.
1584
1585 /// A BreakStmt record.
1587
1588 /// A ReturnStmt record.
1590
1591 /// A DeclStmt record.
1593
1594 /// A CapturedStmt record.
1596
1597 /// A GCC-style AsmStmt record.
1599
1600 /// A MS-style AsmStmt record.
1602
1603 /// A constant expression context.
1605
1606 /// A PredefinedExpr record.
1608
1609 /// A DeclRefExpr record.
1611
1612 /// An IntegerLiteral record.
1614
1615 /// A FloatingLiteral record.
1617
1618 /// An ImaginaryLiteral record.
1620
1621 /// A StringLiteral record.
1623
1624 /// A CharacterLiteral record.
1626
1627 /// A ParenExpr record.
1629
1630 /// A ParenListExpr record.
1632
1633 /// A UnaryOperator record.
1635
1636 /// An OffsetOfExpr record.
1638
1639 /// A SizefAlignOfExpr record.
1641
1642 /// An ArraySubscriptExpr record.
1644
1645 /// An MatrixSubscriptExpr record.
1647
1648 /// A CallExpr record.
1650
1651 /// A MemberExpr record.
1653
1654 /// A BinaryOperator record.
1656
1657 /// A CompoundAssignOperator record.
1659
1660 /// A ConditionOperator record.
1662
1663 /// An ImplicitCastExpr record.
1665
1666 /// A CStyleCastExpr record.
1668
1669 /// A CompoundLiteralExpr record.
1671
1672 /// An ExtVectorElementExpr record.
1674
1675 /// An InitListExpr record.
1677
1678 /// A DesignatedInitExpr record.
1680
1681 /// A DesignatedInitUpdateExpr record.
1683
1684 /// An NoInitExpr record.
1686
1687 /// An ArrayInitLoopExpr record.
1689
1690 /// An ArrayInitIndexExpr record.
1692
1693 /// An ImplicitValueInitExpr record.
1695
1696 /// A VAArgExpr record.
1698
1699 /// An AddrLabelExpr record.
1701
1702 /// A StmtExpr record.
1704
1705 /// A ChooseExpr record.
1707
1708 /// A GNUNullExpr record.
1710
1711 /// A SourceLocExpr record.
1713
1714 /// A EmbedExpr record.
1716
1717 /// A ShuffleVectorExpr record.
1719
1720 /// A ConvertVectorExpr record.
1722
1723 /// BlockExpr
1725
1726 /// A GenericSelectionExpr record.
1728
1729 /// A PseudoObjectExpr record.
1731
1732 /// An AtomicExpr record.
1734
1735 /// A RecoveryExpr record.
1737
1738 // Objective-C
1739
1740 /// An ObjCStringLiteral record.
1742
1746
1747 /// An ObjCEncodeExpr record.
1749
1750 /// An ObjCSelectorExpr record.
1752
1753 /// An ObjCProtocolExpr record.
1755
1756 /// An ObjCIvarRefExpr record.
1758
1759 /// An ObjCPropertyRefExpr record.
1761
1762 /// An ObjCSubscriptRefExpr record.
1764
1765 /// UNUSED
1767
1768 /// An ObjCMessageExpr record.
1770
1771 /// An ObjCIsa Expr record.
1773
1774 /// An ObjCIndirectCopyRestoreExpr record.
1776
1777 /// An ObjCForCollectionStmt record.
1779
1780 /// An ObjCAtCatchStmt record.
1782
1783 /// An ObjCAtFinallyStmt record.
1785
1786 /// An ObjCAtTryStmt record.
1788
1789 /// An ObjCAtSynchronizedStmt record.
1791
1792 /// An ObjCAtThrowStmt record.
1794
1795 /// An ObjCAutoreleasePoolStmt record.
1797
1798 /// An ObjCBoolLiteralExpr record.
1800
1801 /// An ObjCAvailabilityCheckExpr record.
1803
1804 // C++
1805
1806 /// A CXXCatchStmt record.
1808
1809 /// A CXXTryStmt record.
1811 /// A CXXForRangeStmt record.
1812
1814
1815 /// A CXXOperatorCallExpr record.
1817
1818 /// A CXXMemberCallExpr record.
1820
1821 /// A CXXRewrittenBinaryOperator record.
1823
1824 /// A CXXConstructExpr record.
1826
1827 /// A CXXInheritedCtorInitExpr record.
1829
1830 /// A CXXTemporaryObjectExpr record.
1832
1833 /// A CXXStaticCastExpr record.
1835
1836 /// A CXXDynamicCastExpr record.
1838
1839 /// A CXXReinterpretCastExpr record.
1841
1842 /// A CXXConstCastExpr record.
1844
1845 /// A CXXAddrspaceCastExpr record.
1847
1848 /// A CXXFunctionalCastExpr record.
1850
1851 /// A BuiltinBitCastExpr record.
1853
1854 /// A UserDefinedLiteral record.
1856
1857 /// A CXXStdInitializerListExpr record.
1859
1860 /// A CXXBoolLiteralExpr record.
1862
1863 /// A CXXParenListInitExpr record.
1865
1866 EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr
1867 EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr).
1868 EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type).
1869 EXPR_CXX_THIS, // CXXThisExpr
1870 EXPR_CXX_THROW, // CXXThrowExpr
1871 EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr
1872 EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr
1873 EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr
1874
1875 EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr
1876 EXPR_CXX_NEW, // CXXNewExpr
1877 EXPR_CXX_DELETE, // CXXDeleteExpr
1878 EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr
1879
1880 EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups
1881
1882 EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr
1883 EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr
1884 EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr
1885 EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr
1886 EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr
1887
1888 EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr
1889 EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr
1890
1891 EXPR_OPAQUE_VALUE, // OpaqueValueExpr
1892 EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator
1893 EXPR_TYPE_TRAIT, // TypeTraitExpr
1894 EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr
1895
1896 EXPR_PACK_EXPANSION, // PackExpansionExpr
1897 EXPR_PACK_INDEXING, // PackIndexingExpr
1898 EXPR_SIZEOF_PACK, // SizeOfPackExpr
1899 EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr
1900 EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK, // SubstNonTypeTemplateParmPackExpr
1901 EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr
1902 EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr
1903 EXPR_CXX_FOLD, // CXXFoldExpr
1904 EXPR_CONCEPT_SPECIALIZATION, // ConceptSpecializationExpr
1905 EXPR_REQUIRES, // RequiresExpr
1906
1907 // CUDA
1908 EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr
1909
1910 // OpenCL
1911 EXPR_ASTYPE, // AsTypeExpr
1912
1913 // Microsoft
1914 EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr
1915 EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr
1916 EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr).
1917 EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type).
1918 STMT_SEH_LEAVE, // SEHLeaveStmt
1919 STMT_SEH_EXCEPT, // SEHExceptStmt
1920 STMT_SEH_FINALLY, // SEHFinallyStmt
1921 STMT_SEH_TRY, // SEHTryStmt
1922
1923 // OpenMP directives
2003
2004 // ARC
2005 EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr
2006
2007 STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt
2008 EXPR_LAMBDA, // LambdaExpr
2014
2015 // FixedPointLiteral
2017
2018 // SYCLUniqueStableNameExpr
2020
2021 // OpenACC Constructs/Exprs
2035
2036 // HLSL Constructs
2038
2039};
2040
2041/// The kinds of designators that can occur in a
2042/// DesignatedInitExpr.
2044 /// Field designator where only the field name is known.
2046
2047 /// Field designator where the field has been resolved to
2048 /// a declaration.
2050
2051 /// Array designator.
2053
2054 /// GNU array range designator.
2057
2058/// The different kinds of data that can occur in a
2059/// CtorInitializer.
2066
2067/// Kinds of cleanup objects owned by ExprWithCleanups.
2069
2070/// Describes the categories of an Objective-C class.
2072 // The ID of the definition. Use unaligned_decl_id_t to keep
2073 // ObjCCategoriesInfo 32-bit aligned.
2075
2076 // Offset into the array of category lists.
2077 unsigned Offset;
2078
2081 : DefinitionID(ID.getRawValue()), Offset(Offset) {}
2082
2084
2085 friend bool operator<(const ObjCCategoriesInfo &X,
2086 const ObjCCategoriesInfo &Y) {
2087 return X.getDefinitionID() < Y.getDefinitionID();
2088 }
2089
2090 friend bool operator>(const ObjCCategoriesInfo &X,
2091 const ObjCCategoriesInfo &Y) {
2092 return X.getDefinitionID() > Y.getDefinitionID();
2093 }
2094
2095 friend bool operator<=(const ObjCCategoriesInfo &X,
2096 const ObjCCategoriesInfo &Y) {
2097 return X.getDefinitionID() <= Y.getDefinitionID();
2098 }
2099
2100 friend bool operator>=(const ObjCCategoriesInfo &X,
2101 const ObjCCategoriesInfo &Y) {
2102 return X.getDefinitionID() >= Y.getDefinitionID();
2103 }
2104};
2105
2106static_assert(alignof(ObjCCategoriesInfo) <= 4);
2107static_assert(std::is_standard_layout_v<ObjCCategoriesInfo> &&
2108 std::is_trivial_v<ObjCCategoriesInfo>);
2109
2110/// A key used when looking up entities by \ref DeclarationName.
2111///
2112/// Different \ref DeclarationNames are mapped to different keys, but the
2113/// same key can occasionally represent multiple names (for names that
2114/// contain types, in particular).
2116 using NameKind = unsigned;
2117
2118 NameKind Kind = 0;
2119 uint64_t Data = 0;
2120
2121public:
2124 DeclarationNameKey(NameKind Kind, uint64_t Data) : Kind(Kind), Data(Data) {}
2125
2126 NameKind getKind() const { return Kind; }
2127
2129 assert(Kind == DeclarationName::Identifier ||
2132 return (IdentifierInfo *)Data;
2133 }
2134
2136 assert(Kind == DeclarationName::ObjCZeroArgSelector ||
2139 return Selector(Data);
2140 }
2141
2143 assert(Kind == DeclarationName::CXXOperatorName);
2145 }
2146
2147 /// Compute a fingerprint of this key for use in on-disk hash table.
2148 unsigned getHash() const;
2149
2150 friend bool operator==(const DeclarationNameKey &A,
2151 const DeclarationNameKey &B) {
2152 return A.Kind == B.Kind && A.Data == B.Data;
2153 }
2154};
2155
2156/// @}
2157
2158} // namespace serialization
2159} // namespace clang
2160
2161namespace llvm {
2162
2163template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> {
2166 }
2167
2170 }
2171
2172 static unsigned
2174 return Key.getHash();
2175 }
2176
2179 return L == R;
2180 }
2181};
2182
2183} // namespace llvm
2184
2185#endif // LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
static char ID
Definition: Arena.cpp:183
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
#define X(type, name)
Definition: Value.h:144
Defines an enumeration for C++ overloaded operators.
SourceLocation Loc
Definition: SemaObjC.cpp:759
Defines the clang::SourceLocation class and associated facilities.
const char * Data
C Language Family Type Representation.
SourceLocation Begin
do v
Definition: arm_acle.h:91
uint64_t DeclID
An ID number that refers to a declaration in an AST file.
Definition: DeclID.h:111
The name of a declaration.
One of these records is kept for each identifier that is lexed.
A (possibly-)qualified type.
Definition: Type.h:929
static QualType getFromOpaquePtr(const void *Ptr)
Definition: Type.h:978
@ FastWidth
The width of the "fast" qualifier mask.
Definition: Type.h:369
Smart pointer class that efficiently represents Objective-C method names.
Source location and bit offset of a declaration.
Definition: ASTBitCodes.h:252
DeclOffset(RawLocEncoding RawLoc, uint64_t BitOffset, uint64_t DeclTypesBlockStartOffset)
Definition: ASTBitCodes.h:263
RawLocEncoding getRawLoc() const
Definition: ASTBitCodes.h:271
void setBitOffset(uint64_t Offset, const uint64_t DeclTypesBlockStartOffset)
Definition: ASTBitCodes.h:273
uint64_t getBitOffset(const uint64_t DeclTypesBlockStartOffset) const
Definition: ASTBitCodes.h:277
void setRawLoc(RawLocEncoding Loc)
Definition: ASTBitCodes.h:269
A key used when looking up entities by DeclarationName.
Definition: ASTBitCodes.h:2115
unsigned getHash() const
Compute a fingerprint of this key for use in on-disk hash table.
Definition: ASTReader.cpp:1209
friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B)
Definition: ASTBitCodes.h:2150
OverloadedOperatorKind getOperatorKind() const
Definition: ASTBitCodes.h:2142
DeclarationNameKey(NameKind Kind, uint64_t Data)
Definition: ASTBitCodes.h:2124
IdentifierInfo * getIdentifier() const
Definition: ASTBitCodes.h:2128
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:211
RawLocEncoding getBegin() const
Definition: ASTBitCodes.h:227
PPEntityOffset(RawLocEncoding Begin, RawLocEncoding End, uint32_t BitOffset)
Definition: ASTBitCodes.h:224
RawLocEncoding getEnd() const
Definition: ASTBitCodes.h:228
Source range of a skipped preprocessor region.
Definition: ASTBitCodes.h:234
PPSkippedRange(RawLocEncoding Begin, RawLocEncoding End)
Definition: ASTBitCodes.h:243
RawLocEncoding getBegin() const
Definition: ASTBitCodes.h:246
RawLocEncoding getEnd() const
Definition: ASTBitCodes.h:247
A type index; the type ID with the qualifier bits removed.
Definition: ASTBitCodes.h:99
uint32_t getModuleFileIndex() const
Definition: ASTBitCodes.h:109
TypeIdx(uint32_t ModuleFileIdx, uint32_t Idx)
Definition: ASTBitCodes.h:106
static TypeIdx fromTypeID(TypeID ID)
Definition: ASTBitCodes.h:121
TypeID asTypeID(unsigned FastQuals) const
Definition: ASTBitCodes.h:113
32 aligned uint64_t in the AST file.
Definition: ASTBitCodes.h:194
PredefinedTypeIDs
Predefined type IDs.
Definition: ASTBitCodes.h:895
CtorInitializerType
The different kinds of data that can occur in a CtorInitializer.
Definition: ASTBitCodes.h:2060
const unsigned int LOCAL_REDECLARATIONS
Record code for a list of local redeclarations of a declaration.
Definition: ASTBitCodes.h:1221
CleanupObjectKind
Kinds of cleanup objects owned by ExprWithCleanups.
Definition: ASTBitCodes.h:2068
const unsigned NUM_PREDEF_TYPE_IDS
The number of predefined type IDs that are reserved for the PREDEF_TYPE_* constants.
Definition: ASTBitCodes.h:1158
DeclCode
Record codes for each kind of declaration.
Definition: ASTBitCodes.h:1229
const unsigned NumSpecialTypeIDs
The number of special type IDs.
Definition: ASTBitCodes.h:1213
TypeCode
Record codes for each kind of type.
Definition: ASTBitCodes.h:1172
SpecialTypeIDs
The type IDs for special types constructed by semantic analysis.
Definition: ASTBitCodes.h:1186
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1532
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
Definition: ASTBitCodes.h:2043
const unsigned int DECL_UPDATES
Record of updates for a declaration that was modified after being deserialized.
Definition: ASTBitCodes.h:1217
@ PREDEF_TYPE_LONG_ACCUM_ID
The 'long _Accum' type.
Definition: ASTBitCodes.h:1041
@ PREDEF_TYPE_SAMPLER_ID
OpenCL sampler type.
Definition: ASTBitCodes.h:1014
@ PREDEF_TYPE_INT128_ID
The '__int128_t' type.
Definition: ASTBitCodes.h:963
@ PREDEF_TYPE_CHAR32_ID
The C++ 'char32_t' type.
Definition: ASTBitCodes.h:972
@ PREDEF_TYPE_SAT_SHORT_ACCUM_ID
The '_Sat short _Accum' type.
Definition: ASTBitCodes.h:1071
@ PREDEF_TYPE_IBM128_ID
The '__ibm128' type.
Definition: ASTBitCodes.h:1119
@ PREDEF_TYPE_SHORT_FRACT_ID
The 'short _Fract' type.
Definition: ASTBitCodes.h:1053
@ PREDEF_TYPE_AUTO_RREF_DEDUCT
The "auto &&" deduction type.
Definition: ASTBitCodes.h:993
@ PREDEF_TYPE_BOUND_MEMBER
The placeholder type for bound member functions.
Definition: ASTBitCodes.h:987
@ PREDEF_TYPE_LONGLONG_ID
The (signed) 'long long' type.
Definition: ASTBitCodes.h:942
@ PREDEF_TYPE_FRACT_ID
The '_Fract' type.
Definition: ASTBitCodes.h:1056
@ PREDEF_TYPE_ARC_UNBRIDGED_CAST
ARC's unbridged-cast placeholder type.
Definition: ASTBitCodes.h:999
@ PREDEF_TYPE_USHORT_FRACT_ID
The 'unsigned short _Fract' type.
Definition: ASTBitCodes.h:1062
@ PREDEF_TYPE_SAT_ULONG_FRACT_ID
The '_Sat unsigned long _Fract' type.
Definition: ASTBitCodes.h:1104
@ PREDEF_TYPE_BOOL_ID
The 'bool' or '_Bool' type.
Definition: ASTBitCodes.h:903
@ PREDEF_TYPE_SAT_LONG_ACCUM_ID
The '_Sat long _Accum' type.
Definition: ASTBitCodes.h:1077
@ PREDEF_TYPE_SAT_LONG_FRACT_ID
The '_Sat long _Fract' type.
Definition: ASTBitCodes.h:1095
@ PREDEF_TYPE_SAT_SHORT_FRACT_ID
The '_Sat short _Fract' type.
Definition: ASTBitCodes.h:1089
@ PREDEF_TYPE_CHAR_U_ID
The 'char' type, when it is unsigned.
Definition: ASTBitCodes.h:906
@ PREDEF_TYPE_RESERVE_ID_ID
OpenCL reserve_id type.
Definition: ASTBitCodes.h:1020
@ PREDEF_TYPE_SAT_ACCUM_ID
The '_Sat _Accum' type.
Definition: ASTBitCodes.h:1074
@ PREDEF_TYPE_BUILTIN_FN
The placeholder type for builtin functions.
Definition: ASTBitCodes.h:1005
@ PREDEF_TYPE_SHORT_ACCUM_ID
The 'short _Accum' type.
Definition: ASTBitCodes.h:1035
@ PREDEF_TYPE_FLOAT_ID
The 'float' type.
Definition: ASTBitCodes.h:945
@ PREDEF_TYPE_QUEUE_ID
OpenCL queue type.
Definition: ASTBitCodes.h:1017
@ PREDEF_TYPE_INT_ID
The (signed) 'int' type.
Definition: ASTBitCodes.h:936
@ PREDEF_TYPE_OBJC_SEL
The ObjC 'SEL' type.
Definition: ASTBitCodes.h:981
@ PREDEF_TYPE_BFLOAT16_ID
The '__bf16' type.
Definition: ASTBitCodes.h:1116
@ PREDEF_TYPE_WCHAR_ID
The C++ 'wchar_t' type.
Definition: ASTBitCodes.h:930
@ PREDEF_TYPE_UCHAR_ID
The 'unsigned char' type.
Definition: ASTBitCodes.h:909
@ PREDEF_TYPE_UACCUM_ID
The 'unsigned _Accum' type.
Definition: ASTBitCodes.h:1047
@ PREDEF_TYPE_SCHAR_ID
The 'signed char' type.
Definition: ASTBitCodes.h:927
@ PREDEF_TYPE_CHAR_S_ID
The 'char' type, when it is signed.
Definition: ASTBitCodes.h:924
@ PREDEF_TYPE_NULLPTR_ID
The type of 'nullptr'.
Definition: ASTBitCodes.h:966
@ PREDEF_TYPE_ULONG_FRACT_ID
The 'unsigned long _Fract' type.
Definition: ASTBitCodes.h:1068
@ PREDEF_TYPE_FLOAT16_ID
The '_Float16' type.
Definition: ASTBitCodes.h:1029
@ PREDEF_TYPE_UINT_ID
The 'unsigned int' type.
Definition: ASTBitCodes.h:915
@ PREDEF_TYPE_FLOAT128_ID
The '__float128' type.
Definition: ASTBitCodes.h:1026
@ PREDEF_TYPE_OBJC_ID
The ObjC 'id' type.
Definition: ASTBitCodes.h:975
@ PREDEF_TYPE_CHAR16_ID
The C++ 'char16_t' type.
Definition: ASTBitCodes.h:969
@ PREDEF_TYPE_ARRAY_SECTION
The placeholder type for an array section.
Definition: ASTBitCodes.h:1023
@ PREDEF_TYPE_ULONGLONG_ID
The 'unsigned long long' type.
Definition: ASTBitCodes.h:921
@ PREDEF_TYPE_SAT_UFRACT_ID
The '_Sat unsigned _Fract' type.
Definition: ASTBitCodes.h:1101
@ PREDEF_TYPE_USHORT_ID
The 'unsigned short' type.
Definition: ASTBitCodes.h:912
@ PREDEF_TYPE_SHORT_ID
The (signed) 'short' type.
Definition: ASTBitCodes.h:933
@ PREDEF_TYPE_OMP_ARRAY_SHAPING
The placeholder type for OpenMP array shaping operation.
Definition: ASTBitCodes.h:1107
@ PREDEF_TYPE_DEPENDENT_ID
The placeholder type for dependent types.
Definition: ASTBitCodes.h:957
@ PREDEF_TYPE_LONGDOUBLE_ID
The 'long double' type.
Definition: ASTBitCodes.h:951
@ PREDEF_TYPE_DOUBLE_ID
The 'double' type.
Definition: ASTBitCodes.h:948
@ PREDEF_TYPE_UINT128_ID
The '__uint128_t' type.
Definition: ASTBitCodes.h:960
@ PREDEF_TYPE_HALF_ID
The OpenCL 'half' / ARM NEON __fp16 type.
Definition: ASTBitCodes.h:996
@ PREDEF_TYPE_VOID_ID
The void type.
Definition: ASTBitCodes.h:900
@ PREDEF_TYPE_SAT_USHORT_FRACT_ID
The '_Sat unsigned short _Fract' type.
Definition: ASTBitCodes.h:1098
@ PREDEF_TYPE_ACCUM_ID
The '_Accum' type.
Definition: ASTBitCodes.h:1038
@ PREDEF_TYPE_SAT_FRACT_ID
The '_Sat _Fract' type.
Definition: ASTBitCodes.h:1092
@ PREDEF_TYPE_NULL_ID
The NULL type.
Definition: ASTBitCodes.h:897
@ PREDEF_TYPE_USHORT_ACCUM_ID
The 'unsigned short _Accum' type.
Definition: ASTBitCodes.h:1044
@ PREDEF_TYPE_CHAR8_ID
The C++ 'char8_t' type.
Definition: ASTBitCodes.h:1032
@ PREDEF_TYPE_UFRACT_ID
The 'unsigned _Fract' type.
Definition: ASTBitCodes.h:1065
@ PREDEF_TYPE_OVERLOAD_ID
The placeholder type for overloaded function sets.
Definition: ASTBitCodes.h:954
@ PREDEF_TYPE_INCOMPLETE_MATRIX_IDX
A placeholder type for incomplete matrix index operations.
Definition: ASTBitCodes.h:1113
@ PREDEF_TYPE_UNRESOLVED_TEMPLATE
The placeholder type for unresolved templates.
Definition: ASTBitCodes.h:1148
@ PREDEF_TYPE_SAT_USHORT_ACCUM_ID
The '_Sat unsigned short _Accum' type.
Definition: ASTBitCodes.h:1080
@ PREDEF_TYPE_LONG_ID
The (signed) 'long' type.
Definition: ASTBitCodes.h:939
@ PREDEF_TYPE_SAT_ULONG_ACCUM_ID
The '_Sat unsigned long _Accum' type.
Definition: ASTBitCodes.h:1086
@ PREDEF_TYPE_LONG_FRACT_ID
The 'long _Fract' type.
Definition: ASTBitCodes.h:1059
@ PREDEF_TYPE_UNKNOWN_ANY
The 'unknown any' placeholder type.
Definition: ASTBitCodes.h:984
@ PREDEF_TYPE_OMP_ITERATOR
The placeholder type for OpenMP iterator expression.
Definition: ASTBitCodes.h:1110
@ PREDEF_TYPE_PSEUDO_OBJECT
The pseudo-object placeholder type.
Definition: ASTBitCodes.h:1002
@ PREDEF_TYPE_OBJC_CLASS
The ObjC 'Class' type.
Definition: ASTBitCodes.h:978
@ PREDEF_TYPE_ULONG_ID
The 'unsigned long' type.
Definition: ASTBitCodes.h:918
@ PREDEF_TYPE_SAT_UACCUM_ID
The '_Sat unsigned _Accum' type.
Definition: ASTBitCodes.h:1083
@ PREDEF_TYPE_CLK_EVENT_ID
OpenCL clk event type.
Definition: ASTBitCodes.h:1011
@ PREDEF_TYPE_EVENT_ID
OpenCL event type.
Definition: ASTBitCodes.h:1008
@ PREDEF_TYPE_ULONG_ACCUM_ID
The 'unsigned long _Accum' type.
Definition: ASTBitCodes.h:1050
@ PREDEF_TYPE_AUTO_DEDUCT
The "auto" deduction type.
Definition: ASTBitCodes.h:990
@ DECL_EMPTY
An EmptyDecl record.
Definition: ASTBitCodes.h:1481
@ DECL_CAPTURED
A CapturedDecl record.
Definition: ASTBitCodes.h:1318
@ DECL_CXX_BASE_SPECIFIERS
A record containing CXXBaseSpecifiers.
Definition: ASTBitCodes.h:1452
@ DECL_CXX_RECORD
A CXXRecordDecl record.
Definition: ASTBitCodes.h:1383
@ DECL_VAR_TEMPLATE_PARTIAL_SPECIALIZATION
A VarTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1425
@ DECL_OMP_ALLOCATE
An OMPAllocateDcl record.
Definition: ASTBitCodes.h:1478
@ DECL_MS_PROPERTY
A MSPropertyDecl record.
Definition: ASTBitCodes.h:1285
@ DECL_OMP_DECLARE_MAPPER
An OMPDeclareMapperDecl record.
Definition: ASTBitCodes.h:1502
@ DECL_TOP_LEVEL_STMT_DECL
A TopLevelStmtDecl record.
Definition: ASTBitCodes.h:1312
@ DECL_REQUIRES_EXPR_BODY
A RequiresExprBodyDecl record.
Definition: ASTBitCodes.h:1487
@ DECL_STATIC_ASSERT
A StaticAssertDecl record.
Definition: ASTBitCodes.h:1449
@ DECL_INDIRECTFIELD
A IndirectFieldDecl record.
Definition: ASTBitCodes.h:1458
@ DECL_TEMPLATE_TEMPLATE_PARM
A TemplateTemplateParmDecl record.
Definition: ASTBitCodes.h:1437
@ DECL_IMPORT
An ImportDecl recording a module import.
Definition: ASTBitCodes.h:1469
@ DECL_UNNAMED_GLOBAL_CONSTANT
A UnnamedGlobalConstantDecl record.
Definition: ASTBitCodes.h:1508
@ DECL_ACCESS_SPEC
An AccessSpecDecl record.
Definition: ASTBitCodes.h:1401
@ DECL_OBJC_TYPE_PARAM
An ObjCTypeParamDecl record.
Definition: ASTBitCodes.h:1490
@ DECL_OBJC_CATEGORY_IMPL
A ObjCCategoryImplDecl record.
Definition: ASTBitCodes.h:1267
@ DECL_ENUM_CONSTANT
An EnumConstantDecl record.
Definition: ASTBitCodes.h:1243
@ DECL_PARM_VAR
A ParmVarDecl record.
Definition: ASTBitCodes.h:1300
@ DECL_TYPEDEF
A TypedefDecl record.
Definition: ASTBitCodes.h:1231
@ DECL_EXPANDED_TEMPLATE_TEMPLATE_PARM_PACK
A TemplateTemplateParmDecl record that stores an expanded template template parameter pack.
Definition: ASTBitCodes.h:1466
@ DECL_HLSL_BUFFER
A HLSLBufferDecl record.
Definition: ASTBitCodes.h:1511
@ DECL_NAMESPACE_ALIAS
A NamespaceAliasDecl record.
Definition: ASTBitCodes.h:1350
@ DECL_TYPEALIAS
A TypeAliasDecl record.
Definition: ASTBitCodes.h:1234
@ DECL_FUNCTION_TEMPLATE
A FunctionTemplateDecl record.
Definition: ASTBitCodes.h:1428
@ DECL_MS_GUID
A MSGuidDecl record.
Definition: ASTBitCodes.h:1288
@ DECL_UNRESOLVED_USING_TYPENAME
An UnresolvedUsingTypenameDecl record.
Definition: ASTBitCodes.h:1374
@ DECL_CLASS_TEMPLATE_SPECIALIZATION
A ClassTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1413
@ DECL_FILE_SCOPE_ASM
A FileScopeAsmDecl record.
Definition: ASTBitCodes.h:1309
@ DECL_CXX_CONSTRUCTOR
A CXXConstructorDecl record.
Definition: ASTBitCodes.h:1392
@ DECL_CXX_CONVERSION
A CXXConversionDecl record.
Definition: ASTBitCodes.h:1398
@ DECL_FIELD
A FieldDecl record.
Definition: ASTBitCodes.h:1282
@ DECL_LINKAGE_SPEC
A LinkageSpecDecl record.
Definition: ASTBitCodes.h:1377
@ DECL_NAMESPACE
A NamespaceDecl record.
Definition: ASTBitCodes.h:1347
@ DECL_NON_TYPE_TEMPLATE_PARM
A NonTypeTemplateParmDecl record.
Definition: ASTBitCodes.h:1434
@ DECL_USING_PACK
A UsingPackDecl record.
Definition: ASTBitCodes.h:1359
@ DECL_FUNCTION
A FunctionDecl record.
Definition: ASTBitCodes.h:1246
@ DECL_USING_DIRECTIVE
A UsingDirecitveDecl record.
Definition: ASTBitCodes.h:1368
@ DECL_RECORD
A RecordDecl record.
Definition: ASTBitCodes.h:1240
@ DECL_CONTEXT_LEXICAL
A record that stores the set of declarations that are lexically stored within a given DeclContext.
Definition: ASTBitCodes.h:1328
@ DECL_BLOCK
A BlockDecl record.
Definition: ASTBitCodes.h:1315
@ DECL_UNRESOLVED_USING_VALUE
An UnresolvedUsingValueDecl record.
Definition: ASTBitCodes.h:1371
@ DECL_TYPE_ALIAS_TEMPLATE
A TypeAliasTemplateDecl record.
Definition: ASTBitCodes.h:1440
@ DECL_CXX_CTOR_INITIALIZERS
A record containing CXXCtorInitializers.
Definition: ASTBitCodes.h:1455
@ DECL_OBJC_CATEGORY
A ObjCCategoryDecl record.
Definition: ASTBitCodes.h:1264
@ DECL_VAR
A VarDecl record.
Definition: ASTBitCodes.h:1294
@ DECL_UNRESOLVED_USING_IF_EXISTS
An UnresolvedUsingIfExistsDecl record.
Definition: ASTBitCodes.h:1446
@ DECL_USING
A UsingDecl record.
Definition: ASTBitCodes.h:1353
@ DECL_OBJC_PROTOCOL
A ObjCProtocolDecl record.
Definition: ASTBitCodes.h:1255
@ DECL_TEMPLATE_TYPE_PARM
A TemplateTypeParmDecl record.
Definition: ASTBitCodes.h:1431
@ DECL_VAR_TEMPLATE_SPECIALIZATION
A VarTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1422
@ DECL_OBJC_IMPLEMENTATION
A ObjCImplementationDecl record.
Definition: ASTBitCodes.h:1270
@ DECL_LABEL
A LabelDecl record.
Definition: ASTBitCodes.h:1344
@ DECL_OBJC_COMPATIBLE_ALIAS
A ObjCCompatibleAliasDecl record.
Definition: ASTBitCodes.h:1273
@ DECL_CONSTRUCTOR_USING_SHADOW
A ConstructorUsingShadowDecl record.
Definition: ASTBitCodes.h:1365
@ DECL_USING_ENUM
A UsingEnumDecl record.
Definition: ASTBitCodes.h:1356
@ DECL_FRIEND_TEMPLATE
A FriendTemplateDecl record.
Definition: ASTBitCodes.h:1407
@ DECL_PRAGMA_DETECT_MISMATCH
A PragmaDetectMismatchDecl record.
Definition: ASTBitCodes.h:1499
@ DECL_EXPANDED_NON_TYPE_TEMPLATE_PARM_PACK
A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack.
Definition: ASTBitCodes.h:1462
@ DECL_OBJC_AT_DEFS_FIELD
A ObjCAtDefsFieldDecl record.
Definition: ASTBitCodes.h:1261
@ DECL_IMPLICIT_PARAM
An ImplicitParamDecl record.
Definition: ASTBitCodes.h:1297
@ DECL_FRIEND
A FriendDecl record.
Definition: ASTBitCodes.h:1404
@ DECL_CXX_METHOD
A CXXMethodDecl record.
Definition: ASTBitCodes.h:1389
@ DECL_EXPORT
An ExportDecl record.
Definition: ASTBitCodes.h:1380
@ DECL_BINDING
A BindingDecl record.
Definition: ASTBitCodes.h:1306
@ DECL_PRAGMA_COMMENT
A PragmaCommentDecl record.
Definition: ASTBitCodes.h:1496
@ DECL_ENUM
An EnumDecl record.
Definition: ASTBitCodes.h:1237
@ DECL_CONTEXT_MODULE_LOCAL_VISIBLE
A record containing the set of declarations that are only visible from DeclContext in the same module...
Definition: ASTBitCodes.h:1341
@ DECL_DECOMPOSITION
A DecompositionDecl record.
Definition: ASTBitCodes.h:1303
@ DECL_OMP_DECLARE_REDUCTION
An OMPDeclareReductionDecl record.
Definition: ASTBitCodes.h:1505
@ DECL_OMP_THREADPRIVATE
An OMPThreadPrivateDecl record.
Definition: ASTBitCodes.h:1472
@ DECL_OBJC_METHOD
A ObjCMethodDecl record.
Definition: ASTBitCodes.h:1249
@ DECL_CXX_DESTRUCTOR
A CXXDestructorDecl record.
Definition: ASTBitCodes.h:1395
@ DECL_OMP_CAPTUREDEXPR
An OMPCapturedExprDecl record.
Definition: ASTBitCodes.h:1493
@ DECL_CLASS_TEMPLATE
A ClassTemplateDecl record.
Definition: ASTBitCodes.h:1410
@ DECL_USING_SHADOW
A UsingShadowDecl record.
Definition: ASTBitCodes.h:1362
@ DECL_CONCEPT
A ConceptDecl record.
Definition: ASTBitCodes.h:1443
@ DECL_CXX_DEDUCTION_GUIDE
A CXXDeductionGuideDecl record.
Definition: ASTBitCodes.h:1386
@ DECL_OMP_REQUIRES
An OMPRequiresDecl record.
Definition: ASTBitCodes.h:1475
@ DECL_OBJC_IVAR
A ObjCIvarDecl record.
Definition: ASTBitCodes.h:1258
@ DECL_OBJC_PROPERTY
A ObjCPropertyDecl record.
Definition: ASTBitCodes.h:1276
@ DECL_TEMPLATE_PARAM_OBJECT
A TemplateParamObjectDecl record.
Definition: ASTBitCodes.h:1291
@ DECL_OBJC_INTERFACE
A ObjCInterfaceDecl record.
Definition: ASTBitCodes.h:1252
@ DECL_VAR_TEMPLATE
A VarTemplateDecl record.
Definition: ASTBitCodes.h:1419
@ DECL_LIFETIME_EXTENDED_TEMPORARY
An LifetimeExtendedTemporaryDecl record.
Definition: ASTBitCodes.h:1484
@ DECL_CLASS_TEMPLATE_PARTIAL_SPECIALIZATION
A ClassTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1416
@ DECL_IMPLICIT_CONCEPT_SPECIALIZATION
An ImplicitConceptSpecializationDecl record.
Definition: ASTBitCodes.h:1514
@ DECL_CONTEXT_VISIBLE
A record that stores the set of declarations that are visible from a given DeclContext.
Definition: ASTBitCodes.h:1337
@ DECL_OBJC_PROPERTY_IMPL
A ObjCPropertyImplDecl record.
Definition: ASTBitCodes.h:1279
@ TYPE_EXT_QUAL
An ExtQualType record.
Definition: ASTBitCodes.h:1178
@ SPECIAL_TYPE_OBJC_SEL_REDEFINITION
Objective-C "SEL" redefinition type.
Definition: ASTBitCodes.h:1206
@ SPECIAL_TYPE_UCONTEXT_T
C ucontext_t typedef type.
Definition: ASTBitCodes.h:1209
@ SPECIAL_TYPE_JMP_BUF
C jmp_buf typedef type.
Definition: ASTBitCodes.h:1194
@ SPECIAL_TYPE_FILE
C FILE typedef type.
Definition: ASTBitCodes.h:1191
@ SPECIAL_TYPE_SIGJMP_BUF
C sigjmp_buf typedef type.
Definition: ASTBitCodes.h:1197
@ SPECIAL_TYPE_OBJC_CLASS_REDEFINITION
Objective-C "Class" redefinition type.
Definition: ASTBitCodes.h:1203
@ SPECIAL_TYPE_CF_CONSTANT_STRING
CFConstantString type.
Definition: ASTBitCodes.h:1188
@ SPECIAL_TYPE_OBJC_ID_REDEFINITION
Objective-C "id" redefinition type.
Definition: ASTBitCodes.h:1200
@ EXPR_DESIGNATED_INIT
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1679
@ EXPR_COMPOUND_LITERAL
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1670
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1977
@ EXPR_OBJC_IVAR_REF_EXPR
An ObjCIvarRefExpr record.
Definition: ASTBitCodes.h:1757
@ EXPR_MEMBER
A MemberExpr record.
Definition: ASTBitCodes.h:1652
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1831
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1988
@ EXPR_COMPOUND_ASSIGN_OPERATOR
A CompoundAssignOperator record.
Definition: ASTBitCodes.h:1658
@ EXPR_CXX_STATIC_CAST
A CXXStaticCastExpr record.
Definition: ASTBitCodes.h:1834
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
Definition: ASTBitCodes.h:1741
@ EXPR_VA_ARG
A VAArgExpr record.
Definition: ASTBitCodes.h:1697
@ STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1982
@ EXPR_OBJC_ISA
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1772
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1816
@ STMT_OBJC_AT_TRY
An ObjCAtTryStmt record.
Definition: ASTBitCodes.h:1787
@ STMT_DO
A DoStmt record.
Definition: ASTBitCodes.h:1571
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1781
@ STMT_IF
An IfStmt record.
Definition: ASTBitCodes.h:1562
@ EXPR_STRING_LITERAL
A StringLiteral record.
Definition: ASTBitCodes.h:1622
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1802
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1972
@ EXPR_MATRIX_SUBSCRIPT
An MatrixSubscriptExpr record.
Definition: ASTBitCodes.h:1646
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1730
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1987
@ EXPR_IMPLICIT_CAST
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1664
@ STMT_CAPTURED
A CapturedStmt record.
Definition: ASTBitCodes.h:1595
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1979
@ STMT_GCCASM
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1598
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
Definition: ASTBitCodes.h:1619
@ STMT_WHILE
A WhileStmt record.
Definition: ASTBitCodes.h:1568
@ EXPR_CONVERT_VECTOR
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1721
@ EXPR_OBJC_SUBSCRIPT_REF_EXPR
An ObjCSubscriptRefExpr record.
Definition: ASTBitCodes.h:1763
@ EXPR_STMT
A StmtExpr record.
Definition: ASTBitCodes.h:1703
@ STMT_OMP_PARALLEL_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1997
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1840
@ EXPR_DESIGNATED_INIT_UPDATE
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1682
@ STMT_OBJC_AT_SYNCHRONIZED
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1790
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1976
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1852
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1989
@ EXPR_CHARACTER_LITERAL
A CharacterLiteral record.
Definition: ASTBitCodes.h:1625
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1748
@ EXPR_CSTYLE_CAST
A CStyleCastExpr record.
Definition: ASTBitCodes.h:1667
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1799
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1673
@ EXPR_ATOMIC
An AtomicExpr record.
Definition: ASTBitCodes.h:1733
@ EXPR_OFFSETOF
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1637
@ STMT_RETURN
A ReturnStmt record.
Definition: ASTBitCodes.h:1589
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1778
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1986
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1688
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1968
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1973
@ STMT_CONTINUE
A ContinueStmt record.
Definition: ASTBitCodes.h:1583
@ EXPR_PREDEFINED
A PredefinedExpr record.
Definition: ASTBitCodes.h:1607
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1861
@ EXPR_PAREN_LIST
A ParenListExpr record.
Definition: ASTBitCodes.h:1631
@ EXPR_CXX_PAREN_LIST_INIT
A CXXParenListInitExpr record.
Definition: ASTBitCodes.h:1864
@ STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1967
@ STMT_COMPOUND
A CompoundStmt record.
Definition: ASTBitCodes.h:1547
@ STMT_FOR
A ForStmt record.
Definition: ASTBitCodes.h:1574
@ STMT_ATTRIBUTED
An AttributedStmt record.
Definition: ASTBitCodes.h:1559
@ STMT_OMP_TARGET_TEAMS_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1996
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
Definition: ASTBitCodes.h:1822
@ STMT_GOTO
A GotoStmt record.
Definition: ASTBitCodes.h:1577
@ EXPR_NO_INIT
An NoInitExpr record.
Definition: ASTBitCodes.h:1685
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
Definition: ASTBitCodes.h:1754
@ EXPR_ARRAY_INIT_INDEX
An ArrayInitIndexExpr record.
Definition: ASTBitCodes.h:1691
@ EXPR_CXX_CONSTRUCT
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1825
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1984
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1969
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1983
@ EXPR_CXX_DYNAMIC_CAST
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1837
@ STMT_CXX_TRY
A CXXTryStmt record.
Definition: ASTBitCodes.h:1810
@ EXPR_GENERIC_SELECTION
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1727
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1775
@ EXPR_CXX_INHERITED_CTOR_INIT
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1828
@ EXPR_CALL
A CallExpr record.
Definition: ASTBitCodes.h:1649
@ EXPR_GNU_NULL
A GNUNullExpr record.
Definition: ASTBitCodes.h:1709
@ EXPR_OBJC_PROPERTY_REF_EXPR
An ObjCPropertyRefExpr record.
Definition: ASTBitCodes.h:1760
@ STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1959
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
Definition: ASTBitCodes.h:1843
@ STMT_REF_PTR
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1541
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
Definition: ASTBitCodes.h:1769
@ STMT_CASE
A CaseStmt record.
Definition: ASTBitCodes.h:1550
@ EXPR_CONSTANT
A constant expression context.
Definition: ASTBitCodes.h:1604
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1535
@ STMT_MSASM
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1601
@ EXPR_CONDITIONAL_OPERATOR
A ConditionOperator record.
Definition: ASTBitCodes.h:1661
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
Definition: ASTBitCodes.h:1655
@ EXPR_CXX_STD_INITIALIZER_LIST
A CXXStdInitializerListExpr record.
Definition: ASTBitCodes.h:1858
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1718
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1784
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
Definition: ASTBitCodes.h:1751
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
Definition: ASTBitCodes.h:1616
@ STMT_NULL_PTR
A NULL expression.
Definition: ASTBitCodes.h:1538
@ STMT_DEFAULT
A DefaultStmt record.
Definition: ASTBitCodes.h:1553
@ EXPR_CHOOSE
A ChooseExpr record.
Definition: ASTBitCodes.h:1706
@ STMT_NULL
A NullStmt record.
Definition: ASTBitCodes.h:1544
@ EXPR_BLOCK
BlockExpr.
Definition: ASTBitCodes.h:1724
@ EXPR_DECL_REF
A DeclRefExpr record.
Definition: ASTBitCodes.h:1610
@ EXPR_INIT_LIST
An InitListExpr record.
Definition: ASTBitCodes.h:1676
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1694
@ STMT_OBJC_AUTORELEASE_POOL
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1796
@ EXPR_RECOVERY
A RecoveryExpr record.
Definition: ASTBitCodes.h:1736
@ EXPR_PAREN
A ParenExpr record.
Definition: ASTBitCodes.h:1628
@ STMT_OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1998
@ STMT_LABEL
A LabelStmt record.
Definition: ASTBitCodes.h:1556
@ EXPR_CXX_FUNCTIONAL_CAST
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1849
@ EXPR_USER_DEFINED_LITERAL
A UserDefinedLiteral record.
Definition: ASTBitCodes.h:1855
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
Definition: ASTBitCodes.h:1613
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
Definition: ASTBitCodes.h:1712
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1819
@ STMT_SWITCH
A SwitchStmt record.
Definition: ASTBitCodes.h:1565
@ STMT_DECL
A DeclStmt record.
Definition: ASTBitCodes.h:1592
@ EXPR_OBJC_KVC_REF_EXPR
UNUSED.
Definition: ASTBitCodes.h:1766
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
Definition: ASTBitCodes.h:1900
@ STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1971
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
Definition: ASTBitCodes.h:1640
@ STMT_BREAK
A BreakStmt record.
Definition: ASTBitCodes.h:1586
@ STMT_OBJC_AT_THROW
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1793
@ EXPR_ADDR_LABEL
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1700
@ STMT_CXX_FOR_RANGE
A CXXForRangeStmt record.
Definition: ASTBitCodes.h:1813
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1846
@ EXPR_ARRAY_SUBSCRIPT
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1643
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
Definition: ASTBitCodes.h:1634
@ STMT_CXX_CATCH
A CXXCatchStmt record.
Definition: ASTBitCodes.h:1807
@ EXPR_BUILTIN_PP_EMBED
A EmbedExpr record.
Definition: ASTBitCodes.h:1715
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1580
@ DESIG_ARRAY_RANGE
GNU array range designator.
Definition: ASTBitCodes.h:2055
@ DESIG_FIELD_NAME
Field designator where only the field name is known.
Definition: ASTBitCodes.h:2045
@ DESIG_FIELD_DECL
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:2049
@ DESIG_ARRAY
Array designator.
Definition: ASTBitCodes.h:2052
uint64_t TypeID
An ID number that refers to a type in an AST file.
Definition: ASTBitCodes.h:88
ExtensionBlockRecordTypes
Record code for extension blocks.
Definition: ASTBitCodes.h:429
@ EXTENSION_METADATA
Metadata describing this particular extension.
Definition: ASTBitCodes.h:431
@ FIRST_EXTENSION_RECORD_ID
The first record ID allocated to the extensions themselves.
Definition: ASTBitCodes.h:434
llvm::support::detail::packed_endian_specific_integral< serialization::DeclID, llvm::endianness::native, llvm::support::unaligned > unaligned_decl_id_t
Definition: ASTBitCodes.h:286
SubmoduleRecordTypes
Record types used within a submodule description block.
Definition: ASTBitCodes.h:810
@ SUBMODULE_EXCLUDED_HEADER
Specifies a header that has been explicitly excluded from this submodule.
Definition: ASTBitCodes.h:844
@ SUBMODULE_TOPHEADER
Specifies a top-level header that falls into this (sub)module.
Definition: ASTBitCodes.h:826
@ SUBMODULE_PRIVATE_TEXTUAL_HEADER
Specifies a header that is private to this submodule but must be textually included.
Definition: ASTBitCodes.h:864
@ SUBMODULE_HEADER
Specifies a header that falls into this (sub)module.
Definition: ASTBitCodes.h:823
@ SUBMODULE_EXPORT_AS
Specifies the name of the module that will eventually re-export the entities in this module.
Definition: ASTBitCodes.h:872
@ SUBMODULE_UMBRELLA_DIR
Specifies an umbrella directory.
Definition: ASTBitCodes.h:829
@ SUBMODULE_UMBRELLA_HEADER
Specifies the umbrella header used to create this module, if any.
Definition: ASTBitCodes.h:820
@ SUBMODULE_METADATA
Metadata for submodules as a whole.
Definition: ASTBitCodes.h:812
@ SUBMODULE_REQUIRES
Specifies a required feature.
Definition: ASTBitCodes.h:840
@ SUBMODULE_PRIVATE_HEADER
Specifies a header that is private to this submodule.
Definition: ASTBitCodes.h:856
@ SUBMODULE_IMPORTS
Specifies the submodules that are imported by this submodule.
Definition: ASTBitCodes.h:833
@ SUBMODULE_CONFLICT
Specifies a conflict with another module.
Definition: ASTBitCodes.h:853
@ SUBMODULE_INITIALIZERS
Specifies some declarations with initializers that must be emitted to initialize the module.
Definition: ASTBitCodes.h:868
@ SUBMODULE_DEFINITION
Defines the major attributes of a submodule, including its name and parent.
Definition: ASTBitCodes.h:816
@ SUBMODULE_LINK_LIBRARY
Specifies a library or framework to link against.
Definition: ASTBitCodes.h:847
@ SUBMODULE_CONFIG_MACRO
Specifies a configuration macro for this module.
Definition: ASTBitCodes.h:850
@ SUBMODULE_EXPORTS
Specifies the submodules that are re-exported from this submodule.
Definition: ASTBitCodes.h:837
@ SUBMODULE_TEXTUAL_HEADER
Specifies a header that is part of the module but must be textually included.
Definition: ASTBitCodes.h:860
@ SUBMODULE_AFFECTING_MODULES
Specifies affecting modules that were not imported.
Definition: ASTBitCodes.h:875
TypeID LocalTypeID
Same with TypeID except that the LocalTypeID is only meaningful with the corresponding ModuleFile.
Definition: ASTBitCodes.h:94
const unsigned int NUM_PREDEF_IDENT_IDS
The number of predefined identifier IDs.
Definition: ASTBitCodes.h:66
uint32_t SubmoduleID
An ID number that refers to a submodule in a module file.
Definition: ASTBitCodes.h:185
OptionsRecordTypes
Record types that occur within the options block inside the control block.
Definition: ASTBitCodes.h:382
@ FILE_SYSTEM_OPTIONS
Record code for the filesystem options table.
Definition: ASTBitCodes.h:395
@ TARGET_OPTIONS
Record code for the target options table.
Definition: ASTBitCodes.h:392
@ PREPROCESSOR_OPTIONS
Record code for the preprocessor options table.
Definition: ASTBitCodes.h:401
@ HEADER_SEARCH_OPTIONS
Record code for the headers search options table.
Definition: ASTBitCodes.h:398
@ LANGUAGE_OPTIONS
Record code for the language options table.
Definition: ASTBitCodes.h:389
uint32_t SelectorID
An ID number that refers to an ObjC selector in an AST file.
Definition: ASTBitCodes.h:167
const unsigned int NUM_PREDEF_PP_ENTITY_IDS
The number of predefined preprocessed entity IDs.
Definition: ASTBitCodes.h:289
uint32_t PreprocessedEntityID
An ID number that refers to an entity in the detailed preprocessing record.
Definition: ASTBitCodes.h:182
const unsigned int NUM_PREDEF_SUBMODULE_IDS
The number of predefined submodule IDs.
Definition: ASTBitCodes.h:188
BlockIDs
Describes the various kinds of blocks that occur within an AST file.
Definition: ASTBitCodes.h:293
@ SUBMODULE_BLOCK_ID
The block containing the submodule structure.
Definition: ASTBitCodes.h:314
@ PREPROCESSOR_DETAIL_BLOCK_ID
The block containing the detailed preprocessing record.
Definition: ASTBitCodes.h:311
@ AST_BLOCK_ID
The AST block, which acts as a container around the full AST block.
Definition: ASTBitCodes.h:296
@ SOURCE_MANAGER_BLOCK_ID
The block containing information about the source manager.
Definition: ASTBitCodes.h:300
@ CONTROL_BLOCK_ID
The control block, which contains all of the information that needs to be validated prior to committi...
Definition: ASTBitCodes.h:322
@ DECLTYPES_BLOCK_ID
The block containing the definitions of all of the types and decls used within the AST file.
Definition: ASTBitCodes.h:308
@ PREPROCESSOR_BLOCK_ID
The block containing information about the preprocessor.
Definition: ASTBitCodes.h:304
@ COMMENTS_BLOCK_ID
The block containing comments.
Definition: ASTBitCodes.h:317
@ UNHASHED_CONTROL_BLOCK_ID
A block with unhashed content.
Definition: ASTBitCodes.h:344
@ EXTENSION_BLOCK_ID
A block containing a module file extension.
Definition: ASTBitCodes.h:338
@ OPTIONS_BLOCK_ID
The block of configuration options, used to check that a module is being used in a configuration comp...
Definition: ASTBitCodes.h:335
@ INPUT_FILES_BLOCK_ID
The block of input files, which were used as inputs to create this AST file.
Definition: ASTBitCodes.h:328
CommentRecordTypes
Record types used within a comments block.
Definition: ASTBitCodes.h:879
const unsigned VERSION_MINOR
AST file minor version number supported by this version of Clang.
Definition: ASTBitCodes.h:57
SourceManagerRecordTypes
Record types used within a source manager block.
Definition: ASTBitCodes.h:746
@ SM_SLOC_FILE_ENTRY
Describes a source location entry (SLocEntry) for a file.
Definition: ASTBitCodes.h:749
@ SM_SLOC_BUFFER_BLOB_COMPRESSED
Describes a zlib-compressed blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:763
@ SM_SLOC_BUFFER_ENTRY
Describes a source location entry (SLocEntry) for a buffer.
Definition: ASTBitCodes.h:753
@ SM_SLOC_BUFFER_BLOB
Describes a blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:759
@ SM_SLOC_EXPANSION_ENTRY
Describes a source location entry (SLocEntry) for a macro expansion.
Definition: ASTBitCodes.h:767
const unsigned int NUM_PREDEF_SELECTOR_IDS
The number of predefined selector IDs.
Definition: ASTBitCodes.h:170
uint32_t GlobalMacroID
A global ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:157
const unsigned VERSION_MAJOR
AST file major version number supported by this version of Clang.
Definition: ASTBitCodes.h:47
DeclIDBase::DeclID DeclID
An ID number that refers to a declaration in an AST file.
Definition: ASTBitCodes.h:70
PreprocessorRecordTypes
Record types used within a preprocessor block.
Definition: ASTBitCodes.h:771
@ PP_TOKEN
Describes one token.
Definition: ASTBitCodes.h:786
@ PP_MACRO_FUNCTION_LIKE
A function-like macro definition.
Definition: ASTBitCodes.h:782
@ PP_MACRO_OBJECT_LIKE
An object-like macro definition.
Definition: ASTBitCodes.h:777
@ PP_MACRO_DIRECTIVE_HISTORY
The macro directives history for a particular identifier.
Definition: ASTBitCodes.h:789
@ PP_MODULE_MACRO
A macro directive exported by a module.
Definition: ASTBitCodes.h:793
ControlRecordTypes
Record types that occur within the control block.
Definition: ASTBitCodes.h:348
@ MODULE_MAP_FILE
Record code for the module map file that was used to build this AST file.
Definition: ASTBitCodes.h:374
@ MODULE_DIRECTORY
Record code for the module build directory.
Definition: ASTBitCodes.h:377
@ ORIGINAL_FILE_ID
Record code for file ID of the file or buffer that was used to generate the AST file.
Definition: ASTBitCodes.h:363
@ MODULE_NAME
Record code for the module name.
Definition: ASTBitCodes.h:370
@ ORIGINAL_FILE
Record code for the original file that was used to generate the AST file, including both its file ID ...
Definition: ASTBitCodes.h:359
@ IMPORT
Record code for another AST file imported by this AST file.
Definition: ASTBitCodes.h:354
@ INPUT_FILE_OFFSETS
Offsets into the input-files block where input files reside.
Definition: ASTBitCodes.h:367
@ METADATA
AST file metadata, including the AST file version number and information about the compiler used to b...
Definition: ASTBitCodes.h:351
UnhashedControlBlockRecordTypes
Record codes for the unhashed control block.
Definition: ASTBitCodes.h:405
@ DIAGNOSTIC_OPTIONS
Record code for the diagnostic options table.
Definition: ASTBitCodes.h:413
@ HEADER_SEARCH_ENTRY_USAGE
Record code for the indices of used header search entries.
Definition: ASTBitCodes.h:422
@ AST_BLOCK_HASH
Record code for the content hash of the AST block.
Definition: ASTBitCodes.h:410
@ DIAG_PRAGMA_MAPPINGS
Record code for #pragma diagnostic mappings.
Definition: ASTBitCodes.h:419
@ SIGNATURE
Record code for the signature that identifiers this AST file.
Definition: ASTBitCodes.h:407
@ HEADER_SEARCH_PATHS
Record code for the headers search paths.
Definition: ASTBitCodes.h:416
@ VFS_USAGE
Record code for the indices of used VFSs.
Definition: ASTBitCodes.h:425
InputFileRecordTypes
Record types that occur within the input-files block inside the control block.
Definition: ASTBitCodes.h:439
@ INPUT_FILE_HASH
The input file content hash.
Definition: ASTBitCodes.h:444
@ INPUT_FILE
An input file.
Definition: ASTBitCodes.h:441
uint32_t LocalMacroID
A local to a module ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:161
PreprocessorDetailRecordTypes
Record types used within a preprocessor detail block.
Definition: ASTBitCodes.h:797
@ PPD_INCLUSION_DIRECTIVE
Describes an inclusion directive within the preprocessing record.
Definition: ASTBitCodes.h:806
@ PPD_MACRO_EXPANSION
Describes a macro expansion within the preprocessing record.
Definition: ASTBitCodes.h:799
@ PPD_MACRO_DEFINITION
Describes a macro definition within the preprocessing record.
Definition: ASTBitCodes.h:802
uint64_t IdentifierID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:63
const unsigned int NUM_PREDEF_MACRO_IDS
The number of predefined macro IDs.
Definition: ASTBitCodes.h:164
ASTRecordTypes
Record types that occur within the AST block itself.
Definition: ASTBitCodes.h:448
@ DECL_UPDATE_OFFSETS
Record for offsets of DECL_UPDATES records for declarations that were modified after being deserializ...
Definition: ASTBitCodes.h:589
@ STATISTICS
Record code for the extra statistics we gather while generating an AST file.
Definition: ASTBitCodes.h:523
@ FLOAT_CONTROL_PRAGMA_OPTIONS
Record code for #pragma float_control options.
Definition: ASTBitCodes.h:709
@ KNOWN_NAMESPACES
Record code for the set of known namespaces, which are used for typo correction.
Definition: ASTBitCodes.h:615
@ SPECIAL_TYPES
Record code for the set of non-builtin, special types.
Definition: ASTBitCodes.h:519
@ PENDING_IMPLICIT_INSTANTIATIONS
Record code for pending implicit instantiations.
Definition: ASTBitCodes.h:578
@ TYPE_OFFSET
Record code for the offsets of each type.
Definition: ASTBitCodes.h:461
@ DELEGATING_CTORS
The list of delegating constructor declarations.
Definition: ASTBitCodes.h:611
@ PP_ASSUME_NONNULL_LOC
ID 66 used to be the list of included files.
Definition: ASTBitCodes.h:715
@ EXT_VECTOR_DECLS
Record code for the set of ext_vector type names.
Definition: ASTBitCodes.h:548
@ OPENCL_EXTENSIONS
Record code for enabled OpenCL extensions.
Definition: ASTBitCodes.h:608
@ UPDATE_SPECIALIZATION
Record code for updated specialization.
Definition: ASTBitCodes.h:736
@ FP_PRAGMA_OPTIONS
Record code for floating point #pragma options.
Definition: ASTBitCodes.h:605
@ PP_UNSAFE_BUFFER_USAGE
Record code for #pragma clang unsafe_buffer_usage begin/end.
Definition: ASTBitCodes.h:722
@ CXX_ADDED_TEMPLATE_PARTIAL_SPECIALIZATION
Definition: ASTBitCodes.h:740
@ DECLS_WITH_EFFECTS_TO_VERIFY
Record code for Sema's vector of functions/blocks with effects to be verified.
Definition: ASTBitCodes.h:733
@ VTABLE_USES
Record code for the array of VTable uses.
Definition: ASTBitCodes.h:558
@ LATE_PARSED_TEMPLATE
Record code for late parsed template functions.
Definition: ASTBitCodes.h:665
@ DECLS_TO_CHECK_FOR_DEFERRED_DIAGS
Record code for the Decls to be checked for deferred diags.
Definition: ASTBitCodes.h:706
@ DECL_OFFSET
Record code for the offsets of each decl.
Definition: ASTBitCodes.h:473
@ SOURCE_MANAGER_LINE_TABLE
Record code for the source manager line table information, which stores information about #line direc...
Definition: ASTBitCodes.h:625
@ PP_COUNTER_VALUE
The value of the next COUNTER to dispense.
Definition: ASTBitCodes.h:539
@ DELETE_EXPRS_TO_ANALYZE
Delete expressions that will be analyzed later.
Definition: ASTBitCodes.h:676
@ RELATED_DECLS_MAP
Record code for related declarations that have to be deserialized together from the same module.
Definition: ASTBitCodes.h:729
@ UPDATE_VISIBLE
Record code for an update to a decl context's lookup table.
Definition: ASTBitCodes.h:585
@ CUDA_PRAGMA_FORCE_HOST_DEVICE_DEPTH
Number of unmatched #pragma clang cuda_force_host_device begin directives we've seen.
Definition: ASTBitCodes.h:686
@ MACRO_OFFSET
Record code for the table of offsets of each macro ID.
Definition: ASTBitCodes.h:653
@ PPD_ENTITIES_OFFSETS
Record code for the table of offsets to entries in the preprocessing record.
Definition: ASTBitCodes.h:555
@ OPENCL_EXTENSION_DECLS
Record code for declarations associated with OpenCL extensions.
Definition: ASTBitCodes.h:692
@ VTABLES_TO_EMIT
Record code for vtables to emit.
Definition: ASTBitCodes.h:725
@ IDENTIFIER_OFFSET
Record code for the table of offsets of each identifier ID.
Definition: ASTBitCodes.h:481
@ OBJC_CATEGORIES
Record code for the array of Objective-C categories (including extensions).
Definition: ASTBitCodes.h:646
@ METHOD_POOL
Record code for the Objective-C method pool,.
Definition: ASTBitCodes.h:535
@ DELAYED_NAMESPACE_LEXICAL_VISIBLE_RECORD
Record code for lexical and visible block for delayed namespace in reduced BMI.
Definition: ASTBitCodes.h:719
@ PP_CONDITIONAL_STACK
The stack of open #ifs/#ifdefs recorded in a preamble.
Definition: ASTBitCodes.h:700
@ REFERENCED_SELECTOR_POOL
Record code for referenced selector pool.
Definition: ASTBitCodes.h:563
@ SOURCE_LOCATION_OFFSETS
Record code for the table of offsets into the block of source-location information.
Definition: ASTBitCodes.h:543
@ WEAK_UNDECLARED_IDENTIFIERS
Record code for weak undeclared identifiers.
Definition: ASTBitCodes.h:575
@ UNDEFINED_BUT_USED
Record code for undefined but used functions and variables that need a definition in this TU.
Definition: ASTBitCodes.h:662
@ FILE_SORTED_DECLS
Record code for a file sorted array of DeclIDs in a module.
Definition: ASTBitCodes.h:632
@ MSSTRUCT_PRAGMA_OPTIONS
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:679
@ TENTATIVE_DEFINITIONS
Record code for the array of tentative definitions.
Definition: ASTBitCodes.h:526
@ UNUSED_FILESCOPED_DECLS
Record code for the array of unused file scoped decls.
Definition: ASTBitCodes.h:551
@ ALIGN_PACK_PRAGMA_OPTIONS
Record code for #pragma align/pack options.
Definition: ASTBitCodes.h:697
@ IMPORTED_MODULES
Record code for an array of all of the (sub)modules that were imported by the AST file.
Definition: ASTBitCodes.h:636
@ SELECTOR_OFFSETS
Record code for the table of offsets into the Objective-C method pool.
Definition: ASTBitCodes.h:532
@ UNUSED_LOCAL_TYPEDEF_NAME_CANDIDATES
Record code for potentially unused local typedef names.
Definition: ASTBitCodes.h:671
@ OPENCL_EXTENSION_TYPES
Record code for types associated with OpenCL extensions.
Definition: ASTBitCodes.h:689
@ EAGERLY_DESERIALIZED_DECLS
Record code for the array of eagerly deserialized decls.
Definition: ASTBitCodes.h:510
@ INTERESTING_IDENTIFIERS
A list of "interesting" identifiers.
Definition: ASTBitCodes.h:658
@ HEADER_SEARCH_TABLE
Record code for header search information.
Definition: ASTBitCodes.h:602
@ OBJC_CATEGORIES_MAP
Record code for map of Objective-C class definition IDs to the ObjC categories in a module that are a...
Definition: ASTBitCodes.h:629
@ METADATA_OLD_FORMAT
This is so that older clang versions, before the introduction of the control block,...
Definition: ASTBitCodes.h:486
@ CUDA_SPECIAL_DECL_REFS
Record code for special CUDA declarations.
Definition: ASTBitCodes.h:599
@ TU_UPDATE_LEXICAL
Record code for an update to the TU's lexically contained declarations.
Definition: ASTBitCodes.h:567
@ PPD_SKIPPED_RANGES
A table of skipped ranges within the preprocessing record.
Definition: ASTBitCodes.h:703
@ IDENTIFIER_TABLE
Record code for the identifier table.
Definition: ASTBitCodes.h:500
@ SEMA_DECL_REFS
Record code for declarations that Sema keeps references of.
Definition: ASTBitCodes.h:572
@ OPTIMIZE_PRAGMA_OPTIONS
Record code for #pragma optimize options.
Definition: ASTBitCodes.h:668
@ MODULE_OFFSET_MAP
Record code for the remapping information used to relate loaded modules to the various offsets and ID...
Definition: ASTBitCodes.h:621
@ POINTERS_TO_MEMBERS_PRAGMA_OPTIONS
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:682
uint32_t MacroID
An ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:154
uint32_t CXXCtorInitializersID
An ID number that refers to a list of CXXCtorInitializers in an AST file.
Definition: ASTBitCodes.h:178
uint32_t CXXBaseSpecifiersID
An ID number that refers to a set of CXXBaseSpecifiers in an AST file.
Definition: ASTBitCodes.h:174
The JSON file list parser is used to communicate input to InstallAPI.
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.
Definition: OperatorKinds.h:21
const FunctionProtoType * T
Diagnostic wrappers for TextAPI types for error reporting.
Definition: Dominators.h:30
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
Describes the categories of an Objective-C class.
Definition: ASTBitCodes.h:2071
friend bool operator<(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2085
friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2100
friend bool operator>(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2090
friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2095
ObjCCategoriesInfo(LocalDeclID ID, unsigned Offset)
Definition: ASTBitCodes.h:2080
A structure for putting "fast"-unqualified QualTypes into a DenseMap.
Definition: ASTBitCodes.h:134
static bool isEqual(QualType A, QualType B)
Definition: ASTBitCodes.h:135
static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R)
Definition: ASTBitCodes.h:2177
static clang::serialization::DeclarationNameKey getTombstoneKey()
Definition: ASTBitCodes.h:2168
static clang::serialization::DeclarationNameKey getEmptyKey()
Definition: ASTBitCodes.h:2164
static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key)
Definition: ASTBitCodes.h:2173