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