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