clang  12.0.0git
ASTBitCodes.h
Go to the documentation of this file.
1 //===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This header defines Bitcode enum values for Clang serialized AST files.
10 //
11 // The enum values defined in this file should be considered permanent. If
12 // new features are added, they should have values added at the end of the
13 // respective lists.
14 //
15 //===----------------------------------------------------------------------===//
16 
17 #ifndef LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
18 #define LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
19 
21 #include "clang/AST/Type.h"
25 #include "llvm/ADT/DenseMapInfo.h"
26 #include "llvm/Bitstream/BitCodes.h"
27 #include <cassert>
28 #include <cstdint>
29 
30 namespace clang {
31 namespace serialization {
32 
33 /// AST file major version number supported by this version of
34 /// Clang.
35 ///
36 /// Whenever the AST file format changes in a way that makes it
37 /// incompatible with previous versions (such that a reader
38 /// designed for the previous version could not support reading
39 /// the new version), this number should be increased.
40 ///
41 /// Version 4 of AST files also requires that the version control branch and
42 /// revision match exactly, since there is no backward compatibility of
43 /// AST files at this time.
44 const unsigned VERSION_MAJOR = 11;
45 
46 /// AST file minor version number supported by this version of
47 /// Clang.
48 ///
49 /// Whenever the AST format changes in a way that is still
50 /// compatible with previous versions (such that a reader designed
51 /// for the previous version could still support reading the new
52 /// version by ignoring new kinds of subblocks), this number
53 /// should be increased.
54 const unsigned VERSION_MINOR = 0;
55 
56 /// An ID number that refers to an identifier in an AST file.
57 ///
58 /// The ID numbers of identifiers are consecutive (in order of discovery)
59 /// and start at 1. 0 is reserved for NULL.
60 using IdentifierID = uint32_t;
61 
62 /// An ID number that refers to a declaration in an AST file.
63 ///
64 /// The ID numbers of declarations are consecutive (in order of
65 /// discovery), with values below NUM_PREDEF_DECL_IDS being reserved.
66 /// At the start of a chain of precompiled headers, declaration ID 1 is
67 /// used for the translation unit declaration.
68 using DeclID = uint32_t;
69 
70 // FIXME: Turn these into classes so we can have some type safety when
71 // we go from local ID to global and vice-versa.
74 
75 /// An ID number that refers to a type in an AST file.
76 ///
77 /// The ID of a type is partitioned into two parts: the lower
78 /// three bits are used to store the const/volatile/restrict
79 /// qualifiers (as with QualType) and the upper bits provide a
80 /// type index. The type index values are partitioned into two
81 /// sets. The values below NUM_PREDEF_TYPE_IDs are predefined type
82 /// IDs (based on the PREDEF_TYPE_*_ID constants), with 0 as a
83 /// placeholder for "no type". Values from NUM_PREDEF_TYPE_IDs are
84 /// other types that have serialized representations.
85 using TypeID = uint32_t;
86 
87 /// A type index; the type ID with the qualifier bits removed.
88 class TypeIdx {
89  uint32_t Idx = 0;
90 
91 public:
92  TypeIdx() = default;
93  explicit TypeIdx(uint32_t index) : Idx(index) {}
94 
95  uint32_t getIndex() const { return Idx; }
96 
97  TypeID asTypeID(unsigned FastQuals) const {
98  if (Idx == uint32_t(-1))
99  return TypeID(-1);
100 
101  return (Idx << Qualifiers::FastWidth) | FastQuals;
102  }
103 
105  if (ID == TypeID(-1))
106  return TypeIdx(-1);
107 
108  return TypeIdx(ID >> Qualifiers::FastWidth);
109  }
110 };
111 
112  /// A structure for putting "fast"-unqualified QualTypes into a
113  /// DenseMap. This uses the standard pointer hash function.
115  static bool isEqual(QualType A, QualType B) { return A == B; }
116 
118  return QualType::getFromOpaquePtr((void*) 1);
119  }
120 
122  return QualType::getFromOpaquePtr((void*) 2);
123  }
124 
125  static unsigned getHashValue(QualType T) {
126  assert(!T.getLocalFastQualifiers() &&
127  "hash invalid for types with fast quals");
128  uintptr_t v = reinterpret_cast<uintptr_t>(T.getAsOpaquePtr());
129  return (unsigned(v) >> 4) ^ (unsigned(v) >> 9);
130  }
131  };
132 
133  /// An ID number that refers to an identifier in an AST file.
134  using IdentID = uint32_t;
135 
136  /// The number of predefined identifier IDs.
137  const unsigned int NUM_PREDEF_IDENT_IDS = 1;
138 
139  /// An ID number that refers to a macro in an AST file.
140  using MacroID = uint32_t;
141 
142  /// A global ID number that refers to a macro in an AST file.
143  using GlobalMacroID = uint32_t;
144 
145  /// A local to a module ID number that refers to a macro in an
146  /// AST file.
147  using LocalMacroID = uint32_t;
148 
149  /// The number of predefined macro IDs.
150  const unsigned int NUM_PREDEF_MACRO_IDS = 1;
151 
152  /// An ID number that refers to an ObjC selector in an AST file.
153  using SelectorID = uint32_t;
154 
155  /// The number of predefined selector IDs.
156  const unsigned int NUM_PREDEF_SELECTOR_IDS = 1;
157 
158  /// An ID number that refers to a set of CXXBaseSpecifiers in an
159  /// AST file.
160  using CXXBaseSpecifiersID = uint32_t;
161 
162  /// An ID number that refers to a list of CXXCtorInitializers in an
163  /// AST file.
164  using CXXCtorInitializersID = uint32_t;
165 
166  /// An ID number that refers to an entity in the detailed
167  /// preprocessing record.
168  using PreprocessedEntityID = uint32_t;
169 
170  /// An ID number that refers to a submodule in a module file.
171  using SubmoduleID = uint32_t;
172 
173  /// The number of predefined submodule IDs.
174  const unsigned int NUM_PREDEF_SUBMODULE_IDS = 1;
175 
176  /// Source range/offset of a preprocessed entity.
177  struct PPEntityOffset {
178  /// Raw source location of beginning of range.
179  unsigned Begin;
180 
181  /// Raw source location of end of range.
182  unsigned End;
183 
184  /// Offset in the AST file relative to ModuleFile::MacroOffsetsBase.
185  uint32_t BitOffset;
186 
187  PPEntityOffset(SourceRange R, uint32_t BitOffset)
188  : Begin(R.getBegin().getRawEncoding()),
189  End(R.getEnd().getRawEncoding()), BitOffset(BitOffset) {}
190 
193  }
194 
197  }
198  };
199 
200  /// Source range of a skipped preprocessor region
201  struct PPSkippedRange {
202  /// Raw source location of beginning of range.
203  unsigned Begin;
204  /// Raw source location of end of range.
205  unsigned End;
206 
208  : Begin(R.getBegin().getRawEncoding()),
209  End(R.getEnd().getRawEncoding()) { }
210 
213  }
216  }
217  };
218 
219  /// Offset in the AST file. Use splitted 64-bit integer into low/high
220  /// parts to keep structure alignment 32-bit (it is important because
221  /// blobs in bitstream are 32-bit aligned). This structure is serialized
222  /// "as is" to the AST file.
224  uint32_t BitOffsetLow = 0;
225  uint32_t BitOffsetHigh = 0;
226 
227  UnderalignedInt64() = default;
228  UnderalignedInt64(uint64_t BitOffset) { setBitOffset(BitOffset); }
229 
230  void setBitOffset(uint64_t Offset) {
231  BitOffsetLow = Offset;
232  BitOffsetHigh = Offset >> 32;
233  }
234 
235  uint64_t getBitOffset() const {
236  return BitOffsetLow | (uint64_t(BitOffsetHigh) << 32);
237  }
238  };
239 
240  /// Source location and bit offset of a declaration.
241  struct DeclOffset {
242  /// Raw source location.
243  unsigned Loc = 0;
244 
245  /// Offset relative to the start of the DECLTYPES_BLOCK block. Keep
246  /// structure alignment 32-bit and avoid padding gap because undefined
247  /// value in the padding affects AST hash.
249 
250  DeclOffset() = default;
251  DeclOffset(SourceLocation Loc, uint64_t BitOffset,
252  uint64_t DeclTypesBlockStartOffset) {
253  setLocation(Loc);
254  setBitOffset(BitOffset, DeclTypesBlockStartOffset);
255  }
256 
258  Loc = L.getRawEncoding();
259  }
260 
263  }
264 
265  void setBitOffset(uint64_t Offset,
266  const uint64_t DeclTypesBlockStartOffset) {
267  BitOffset.setBitOffset(Offset - DeclTypesBlockStartOffset);
268  }
269 
270  uint64_t getBitOffset(const uint64_t DeclTypesBlockStartOffset) const {
271  return BitOffset.getBitOffset() + DeclTypesBlockStartOffset;
272  }
273  };
274 
275  /// The number of predefined preprocessed entity IDs.
276  const unsigned int NUM_PREDEF_PP_ENTITY_IDS = 1;
277 
278  /// Describes the various kinds of blocks that occur within
279  /// an AST file.
280  enum BlockIDs {
281  /// The AST block, which acts as a container around the
282  /// full AST block.
283  AST_BLOCK_ID = llvm::bitc::FIRST_APPLICATION_BLOCKID,
284 
285  /// The block containing information about the source
286  /// manager.
288 
289  /// The block containing information about the
290  /// preprocessor.
292 
293  /// The block containing the definitions of all of the
294  /// types and decls used within the AST file.
296 
297  /// The block containing the detailed preprocessing record.
299 
300  /// The block containing the submodule structure.
302 
303  /// The block containing comments.
305 
306  /// The control block, which contains all of the
307  /// information that needs to be validated prior to committing
308  /// to loading the AST file.
310 
311  /// The block of input files, which were used as inputs
312  /// to create this AST file.
313  ///
314  /// This block is part of the control block.
316 
317  /// The block of configuration options, used to check that
318  /// a module is being used in a configuration compatible with the
319  /// configuration in which it was built.
320  ///
321  /// This block is part of the control block.
323 
324  /// A block containing a module file extension.
326 
327  /// A block with unhashed content.
328  ///
329  /// These records should not change the \a ASTFileSignature. See \a
330  /// UnhashedControlBlockRecordTypes for the list of records.
332  };
333 
334  /// Record types that occur within the control block.
336  /// AST file metadata, including the AST file version number
337  /// and information about the compiler used to build this AST file.
338  METADATA = 1,
339 
340  /// Record code for the list of other AST files imported by
341  /// this AST file.
343 
344  /// Record code for the original file that was used to
345  /// generate the AST file, including both its file ID and its
346  /// name.
348 
349  /// The directory that the PCH was originally created in.
351 
352  /// Record code for file ID of the file or buffer that was used to
353  /// generate the AST file.
355 
356  /// Offsets into the input-files block where input files
357  /// reside.
359 
360  /// Record code for the module name.
362 
363  /// Record code for the module map file that was used to build this
364  /// AST file.
366 
367  /// Record code for the module build directory.
369  };
370 
371  /// Record types that occur within the options block inside
372  /// the control block.
374  /// Record code for the language options table.
375  ///
376  /// The record with this code contains the contents of the
377  /// LangOptions structure. We serialize the entire contents of
378  /// the structure, and let the reader decide which options are
379  /// actually important to check.
381 
382  /// Record code for the target options table.
384 
385  /// Record code for the filesystem options table.
387 
388  /// Record code for the headers search options table.
390 
391  /// Record code for the preprocessor options table.
393  };
394 
395  /// Record codes for the unhashed control block.
397  /// Record code for the signature that identifiers this AST file.
399 
400  /// Record code for the content hash of the AST block.
402 
403  /// Record code for the diagnostic options table.
405 
406  /// Record code for \#pragma diagnostic mappings.
408  };
409 
410  /// Record code for extension blocks.
412  /// Metadata describing this particular extension.
414 
415  /// The first record ID allocated to the extensions themselves.
417  };
418 
419  /// Record types that occur within the input-files block
420  /// inside the control block.
422  /// An input file.
424 
425  /// The input file content hash
427  };
428 
429  /// Record types that occur within the AST block itself.
431  /// Record code for the offsets of each type.
432  ///
433  /// The TYPE_OFFSET constant describes the record that occurs
434  /// within the AST block. The record itself is an array of offsets that
435  /// point into the declarations and types block (identified by
436  /// DECLTYPES_BLOCK_ID). The index into the array is based on the ID
437  /// of a type. For a given type ID @c T, the lower three bits of
438  /// @c T are its qualifiers (const, volatile, restrict), as in
439  /// the QualType class. The upper bits, after being shifted and
440  /// subtracting NUM_PREDEF_TYPE_IDS, are used to index into the
441  /// TYPE_OFFSET block to determine the offset of that type's
442  /// corresponding record within the DECLTYPES_BLOCK_ID block.
444 
445  /// Record code for the offsets of each decl.
446  ///
447  /// The DECL_OFFSET constant describes the record that occurs
448  /// within the block identified by DECL_OFFSETS_BLOCK_ID within
449  /// the AST block. The record itself is an array of offsets that
450  /// point into the declarations and types block (identified by
451  /// DECLTYPES_BLOCK_ID). The declaration ID is an index into this
452  /// record, after subtracting one to account for the use of
453  /// declaration ID 0 for a NULL declaration pointer. Index 0 is
454  /// reserved for the translation unit declaration.
456 
457  /// Record code for the table of offsets of each
458  /// identifier ID.
459  ///
460  /// The offset table contains offsets into the blob stored in
461  /// the IDENTIFIER_TABLE record. Each offset points to the
462  /// NULL-terminated string that corresponds to that identifier.
464 
465  /// This is so that older clang versions, before the introduction
466  /// of the control block, can read and reject the newer PCH format.
467  /// *DON'T CHANGE THIS NUMBER*.
469 
470  /// Record code for the identifier table.
471  ///
472  /// The identifier table is a simple blob that contains
473  /// NULL-terminated strings for all of the identifiers
474  /// referenced by the AST file. The IDENTIFIER_OFFSET table
475  /// contains the mapping from identifier IDs to the characters
476  /// in this blob. Note that the starting offsets of all of the
477  /// identifiers are odd, so that, when the identifier offset
478  /// table is loaded in, we can use the low bit to distinguish
479  /// between offsets (for unresolved identifier IDs) and
480  /// IdentifierInfo pointers (for already-resolved identifier
481  /// IDs).
483 
484  /// Record code for the array of eagerly deserialized decls.
485  ///
486  /// The AST file contains a list of all of the declarations that should be
487  /// eagerly deserialized present within the parsed headers, stored as an
488  /// array of declaration IDs. These declarations will be
489  /// reported to the AST consumer after the AST file has been
490  /// read, since their presence can affect the semantics of the
491  /// program (e.g., for code generation).
493 
494  /// Record code for the set of non-builtin, special
495  /// types.
496  ///
497  /// This record contains the type IDs for the various type nodes
498  /// that are constructed during semantic analysis (e.g.,
499  /// __builtin_va_list). The SPECIAL_TYPE_* constants provide
500  /// offsets into this record.
502 
503  /// Record code for the extra statistics we gather while
504  /// generating an AST file.
506 
507  /// Record code for the array of tentative definitions.
509 
510  // ID 10 used to be for a list of extern "C" declarations.
511 
512  /// Record code for the table of offsets into the
513  /// Objective-C method pool.
515 
516  /// Record code for the Objective-C method pool,
518 
519  /// The value of the next __COUNTER__ to dispense.
520  /// [PP_COUNTER_VALUE, Val]
522 
523  /// Record code for the table of offsets into the block
524  /// of source-location information.
526 
527  /// Record code for the set of source location entries
528  /// that need to be preloaded by the AST reader.
529  ///
530  /// This set contains the source location entry for the
531  /// predefines buffer and for any file entries that need to be
532  /// preloaded.
534 
535  /// Record code for the set of ext_vector type names.
537 
538  /// Record code for the array of unused file scoped decls.
540 
541  /// Record code for the table of offsets to entries in the
542  /// preprocessing record.
544 
545  /// Record code for the array of VTable uses.
547 
548  // ID 20 used to be for a list of dynamic classes.
549 
550  /// Record code for referenced selector pool.
552 
553  /// Record code for an update to the TU's lexically contained
554  /// declarations.
556 
557  // ID 23 used to be for a list of local redeclarations.
558 
559  /// Record code for declarations that Sema keeps references of.
561 
562  /// Record code for weak undeclared identifiers.
564 
565  /// Record code for pending implicit instantiations.
567 
568  // ID 27 used to be for a list of replacement decls.
569 
570  /// Record code for an update to a decl context's lookup table.
571  ///
572  /// In practice, this should only be used for the TU and namespaces.
574 
575  /// Record for offsets of DECL_UPDATES records for declarations
576  /// that were modified after being deserialized and need updates.
578 
579  // ID 30 used to be a decl update record. These are now in the DECLTYPES
580  // block.
581 
582  // ID 31 used to be a list of offsets to DECL_CXX_BASE_SPECIFIERS records.
583 
584  // ID 32 used to be the code for \#pragma diagnostic mappings.
585 
586  /// Record code for special CUDA declarations.
588 
589  /// Record code for header search information.
591 
592  /// Record code for floating point \#pragma options.
594 
595  /// Record code for enabled OpenCL extensions.
597 
598  /// The list of delegating constructor declarations.
600 
601  /// Record code for the set of known namespaces, which are used
602  /// for typo correction.
604 
605  /// Record code for the remapping information used to relate
606  /// loaded modules to the various offsets and IDs(e.g., source location
607  /// offests, declaration and type IDs) that are used in that module to
608  /// refer to other modules.
610 
611  /// Record code for the source manager line table information,
612  /// which stores information about \#line directives.
614 
615  /// Record code for map of Objective-C class definition IDs to the
616  /// ObjC categories in a module that are attached to that class.
618 
619  /// Record code for a file sorted array of DeclIDs in a module.
621 
622  /// Record code for an array of all of the (sub)modules that were
623  /// imported by the AST file.
625 
626  // ID 44 used to be a table of merged canonical declarations.
627  // ID 45 used to be a list of declaration IDs of local redeclarations.
628 
629  /// Record code for the array of Objective-C categories (including
630  /// extensions).
631  ///
632  /// This array can only be interpreted properly using the Objective-C
633  /// categories map.
635 
636  /// Record code for the table of offsets of each macro ID.
637  ///
638  /// The offset table contains offsets into the blob stored in
639  /// the preprocessor block. Each offset points to the corresponding
640  /// macro definition.
642 
643  /// A list of "interesting" identifiers. Only used in C++ (where we
644  /// don't normally do lookups into the serialized identifier table). These
645  /// are eagerly deserialized.
647 
648  /// Record code for undefined but used functions and variables that
649  /// need a definition in this TU.
651 
652  /// Record code for late parsed template functions.
654 
655  /// Record code for \#pragma optimize options.
657 
658  /// Record code for potentially unused local typedef names.
660 
661  // ID 53 used to be a table of constructor initializer records.
662 
663  /// Delete expressions that will be analyzed later.
665 
666  /// Record code for \#pragma ms_struct options.
668 
669  /// Record code for \#pragma ms_struct options.
671 
672  /// Number of unmatched #pragma clang cuda_force_host_device begin
673  /// directives we've seen.
675 
676  /// Record code for types associated with OpenCL extensions.
678 
679  /// Record code for declarations associated with OpenCL extensions.
681 
683 
684  /// Record code for \#pragma pack options.
686 
687  /// The stack of open #ifs/#ifdefs recorded in a preamble.
689 
690  /// A table of skipped ranges within the preprocessing record.
692 
693  /// Record code for the Decls to be checked for deferred diags.
695 
696  /// Record code for \#pragma float_control options.
698  };
699 
700  /// Record types used within a source manager block.
702  /// Describes a source location entry (SLocEntry) for a
703  /// file.
705 
706  /// Describes a source location entry (SLocEntry) for a
707  /// buffer.
709 
710  /// Describes a blob that contains the data for a buffer
711  /// entry. This kind of record always directly follows a
712  /// SM_SLOC_BUFFER_ENTRY record or a SM_SLOC_FILE_ENTRY with an
713  /// overridden buffer.
715 
716  /// Describes a zlib-compressed blob that contains the data for
717  /// a buffer entry.
719 
720  /// Describes a source location entry (SLocEntry) for a
721  /// macro expansion.
723  };
724 
725  /// Record types used within a preprocessor block.
727  // The macros in the PP section are a PP_MACRO_* instance followed by a
728  // list of PP_TOKEN instances for each token in the definition.
729 
730  /// An object-like macro definition.
731  /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
733 
734  /// A function-like macro definition.
735  /// [PP_MACRO_FUNCTION_LIKE, <ObjectLikeStuff>, IsC99Varargs,
736  /// IsGNUVarars, NumArgs, ArgIdentInfoID* ]
738 
739  /// Describes one token.
740  /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags]
741  PP_TOKEN = 3,
742 
743  /// The macro directives history for a particular identifier.
745 
746  /// A macro directive exported by a module.
747  /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*]
749  };
750 
751  /// Record types used within a preprocessor detail block.
753  /// Describes a macro expansion within the preprocessing record.
755 
756  /// Describes a macro definition within the preprocessing record.
758 
759  /// Describes an inclusion directive within the preprocessing
760  /// record.
762  };
763 
764  /// Record types used within a submodule description block.
766  /// Metadata for submodules as a whole.
768 
769  /// Defines the major attributes of a submodule, including its
770  /// name and parent.
772 
773  /// Specifies the umbrella header used to create this module,
774  /// if any.
776 
777  /// Specifies a header that falls into this (sub)module.
779 
780  /// Specifies a top-level header that falls into this (sub)module.
782 
783  /// Specifies an umbrella directory.
785 
786  /// Specifies the submodules that are imported by this
787  /// submodule.
789 
790  /// Specifies the submodules that are re-exported from this
791  /// submodule.
793 
794  /// Specifies a required feature.
796 
797  /// Specifies a header that has been explicitly excluded
798  /// from this submodule.
800 
801  /// Specifies a library or framework to link against.
803 
804  /// Specifies a configuration macro for this module.
806 
807  /// Specifies a conflict with another module.
809 
810  /// Specifies a header that is private to this submodule.
812 
813  /// Specifies a header that is part of the module but must be
814  /// textually included.
816 
817  /// Specifies a header that is private to this submodule but
818  /// must be textually included.
820 
821  /// Specifies some declarations with initializers that must be
822  /// emitted to initialize the module.
824 
825  /// Specifies the name of the module that will eventually
826  /// re-export the entities in this module.
828  };
829 
830  /// Record types used within a comments block.
833  };
834 
835  /// \defgroup ASTAST AST file AST constants
836  ///
837  /// The constants in this group describe various components of the
838  /// abstract syntax tree within an AST file.
839  ///
840  /// @{
841 
842  /// Predefined type IDs.
843  ///
844  /// These type IDs correspond to predefined types in the AST
845  /// context, such as built-in types (int) and special place-holder
846  /// types (the <overload> and <dependent> type markers). Such
847  /// types are never actually serialized, since they will be built
848  /// by the AST context when it is created.
850  /// The NULL type.
852 
853  /// The void type.
855 
856  /// The 'bool' or '_Bool' type.
858 
859  /// The 'char' type, when it is unsigned.
861 
862  /// The 'unsigned char' type.
864 
865  /// The 'unsigned short' type.
867 
868  /// The 'unsigned int' type.
870 
871  /// The 'unsigned long' type.
873 
874  /// The 'unsigned long long' type.
876 
877  /// The 'char' type, when it is signed.
879 
880  /// The 'signed char' type.
882 
883  /// The C++ 'wchar_t' type.
885 
886  /// The (signed) 'short' type.
888 
889  /// The (signed) 'int' type.
891 
892  /// The (signed) 'long' type.
894 
895  /// The (signed) 'long long' type.
897 
898  /// The 'float' type.
900 
901  /// The 'double' type.
903 
904  /// The 'long double' type.
906 
907  /// The placeholder type for overloaded function sets.
909 
910  /// The placeholder type for dependent types.
912 
913  /// The '__uint128_t' type.
915 
916  /// The '__int128_t' type.
918 
919  /// The type of 'nullptr'.
921 
922  /// The C++ 'char16_t' type.
924 
925  /// The C++ 'char32_t' type.
927 
928  /// The ObjC 'id' type.
930 
931  /// The ObjC 'Class' type.
933 
934  /// The ObjC 'SEL' type.
936 
937  /// The 'unknown any' placeholder type.
939 
940  /// The placeholder type for bound member functions.
942 
943  /// The "auto" deduction type.
945 
946  /// The "auto &&" deduction type.
948 
949  /// The OpenCL 'half' / ARM NEON __fp16 type.
951 
952  /// ARC's unbridged-cast placeholder type.
954 
955  /// The pseudo-object placeholder type.
957 
958  /// The placeholder type for builtin functions.
960 
961  /// OpenCL event type.
963 
964  /// OpenCL clk event type.
966 
967  /// OpenCL sampler type.
969 
970  /// OpenCL queue type.
972 
973  /// OpenCL reserve_id type.
975 
976  /// The placeholder type for OpenMP array section.
978 
979  /// The '__float128' type
981 
982  /// The '_Float16' type
984 
985  /// The C++ 'char8_t' type.
987 
988  /// \brief The 'short _Accum' type
990 
991  /// \brief The '_Accum' type
993 
994  /// \brief The 'long _Accum' type
996 
997  /// \brief The 'unsigned short _Accum' type
999 
1000  /// \brief The 'unsigned _Accum' type
1002 
1003  /// \brief The 'unsigned long _Accum' type
1005 
1006  /// \brief The 'short _Fract' type
1008 
1009  /// \brief The '_Fract' type
1011 
1012  /// \brief The 'long _Fract' type
1014 
1015  /// \brief The 'unsigned short _Fract' type
1017 
1018  /// \brief The 'unsigned _Fract' type
1020 
1021  /// \brief The 'unsigned long _Fract' type
1023 
1024  /// \brief The '_Sat short _Accum' type
1026 
1027  /// \brief The '_Sat _Accum' type
1029 
1030  /// \brief The '_Sat long _Accum' type
1032 
1033  /// \brief The '_Sat unsigned short _Accum' type
1035 
1036  /// \brief The '_Sat unsigned _Accum' type
1038 
1039  /// \brief The '_Sat unsigned long _Accum' type
1041 
1042  /// \brief The '_Sat short _Fract' type
1044 
1045  /// \brief The '_Sat _Fract' type
1047 
1048  /// \brief The '_Sat long _Fract' type
1050 
1051  /// \brief The '_Sat unsigned short _Fract' type
1053 
1054  /// \brief The '_Sat unsigned _Fract' type
1056 
1057  /// \brief The '_Sat unsigned long _Fract' type
1059 
1060  /// The placeholder type for OpenMP array shaping operation.
1062 
1063  /// The placeholder type for OpenMP iterator expression.
1065 
1066  /// A placeholder type for incomplete matrix index operations.
1068 
1069  /// \brief The '__bf16' type
1071 
1072  /// OpenCL image types with auto numeration
1073 #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
1074  PREDEF_TYPE_##Id##_ID,
1075 #include "clang/Basic/OpenCLImageTypes.def"
1076  /// \brief OpenCL extension types with auto numeration
1077 #define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \
1078  PREDEF_TYPE_##Id##_ID,
1079 #include "clang/Basic/OpenCLExtensionTypes.def"
1080  // \brief SVE types with auto numeration
1081 #define SVE_TYPE(Name, Id, SingletonId) PREDEF_TYPE_##Id##_ID,
1082 #include "clang/Basic/AArch64SVEACLETypes.def"
1083  };
1084 
1085  /// The number of predefined type IDs that are reserved for
1086  /// the PREDEF_TYPE_* constants.
1087  ///
1088  /// Type IDs for non-predefined types will start at
1089  /// NUM_PREDEF_TYPE_IDs.
1090  const unsigned NUM_PREDEF_TYPE_IDS = 200;
1091 
1092  /// Record codes for each kind of type.
1093  ///
1094  /// These constants describe the type records that can occur within a
1095  /// block identified by DECLTYPES_BLOCK_ID in the AST file. Each
1096  /// constant describes a record for a specific type class in the
1097  /// AST. Note that DeclCode values share this code space.
1098  enum TypeCode {
1099 #define TYPE_BIT_CODE(CLASS_ID, CODE_ID, CODE_VALUE) \
1100  TYPE_##CODE_ID = CODE_VALUE,
1101 #include "clang/Serialization/TypeBitCodes.def"
1102 
1103  /// An ExtQualType record.
1105  };
1106 
1107  /// The type IDs for special types constructed by semantic
1108  /// analysis.
1109  ///
1110  /// The constants in this enumeration are indices into the
1111  /// SPECIAL_TYPES record.
1113  /// CFConstantString type
1115 
1116  /// C FILE typedef type
1118 
1119  /// C jmp_buf typedef type
1121 
1122  /// C sigjmp_buf typedef type
1124 
1125  /// Objective-C "id" redefinition type
1127 
1128  /// Objective-C "Class" redefinition type
1130 
1131  /// Objective-C "SEL" redefinition type
1133 
1134  /// C ucontext_t typedef type
1136  };
1137 
1138  /// The number of special type IDs.
1139  const unsigned NumSpecialTypeIDs = 8;
1140 
1141  /// Predefined declaration IDs.
1142  ///
1143  /// These declaration IDs correspond to predefined declarations in the AST
1144  /// context, such as the NULL declaration ID. Such declarations are never
1145  /// actually serialized, since they will be built by the AST context when
1146  /// it is created.
1148  /// The NULL declaration.
1150 
1151  /// The translation unit.
1153 
1154  /// The Objective-C 'id' type.
1156 
1157  /// The Objective-C 'SEL' type.
1159 
1160  /// The Objective-C 'Class' type.
1162 
1163  /// The Objective-C 'Protocol' type.
1165 
1166  /// The signed 128-bit integer type.
1168 
1169  /// The unsigned 128-bit integer type.
1171 
1172  /// The internal 'instancetype' typedef.
1174 
1175  /// The internal '__builtin_va_list' typedef.
1177 
1178  /// The internal '__va_list_tag' struct, if any.
1180 
1181  /// The internal '__builtin_ms_va_list' typedef.
1183 
1184  /// The predeclared '_GUID' struct.
1186 
1187  /// The extern "C" context.
1189 
1190  /// The internal '__make_integer_seq' template.
1192 
1193  /// The internal '__NSConstantString' typedef.
1195 
1196  /// The internal '__NSConstantString' tag type.
1198 
1199  /// The internal '__type_pack_element' template.
1201  };
1202 
1203  /// The number of declaration IDs that are predefined.
1204  ///
1205  /// For more information about predefined declarations, see the
1206  /// \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants.
1207  const unsigned int NUM_PREDEF_DECL_IDS = 18;
1208 
1209  /// Record of updates for a declaration that was modified after
1210  /// being deserialized. This can occur within DECLTYPES_BLOCK_ID.
1211  const unsigned int DECL_UPDATES = 49;
1212 
1213  /// Record code for a list of local redeclarations of a declaration.
1214  /// This can occur within DECLTYPES_BLOCK_ID.
1215  const unsigned int LOCAL_REDECLARATIONS = 50;
1216 
1217  /// Record codes for each kind of declaration.
1218  ///
1219  /// These constants describe the declaration records that can occur within
1220  /// a declarations block (identified by DECLTYPES_BLOCK_ID). Each
1221  /// constant describes a record for a specific declaration class
1222  /// in the AST. Note that TypeCode values share this code space.
1223  enum DeclCode {
1224  /// A TypedefDecl record.
1226  /// A TypeAliasDecl record.
1227 
1229 
1230  /// An EnumDecl record.
1232 
1233  /// A RecordDecl record.
1235 
1236  /// An EnumConstantDecl record.
1238 
1239  /// A FunctionDecl record.
1241 
1242  /// A ObjCMethodDecl record.
1244 
1245  /// A ObjCInterfaceDecl record.
1247 
1248  /// A ObjCProtocolDecl record.
1250 
1251  /// A ObjCIvarDecl record.
1253 
1254  /// A ObjCAtDefsFieldDecl record.
1256 
1257  /// A ObjCCategoryDecl record.
1259 
1260  /// A ObjCCategoryImplDecl record.
1262 
1263  /// A ObjCImplementationDecl record.
1265 
1266  /// A ObjCCompatibleAliasDecl record.
1268 
1269  /// A ObjCPropertyDecl record.
1271 
1272  /// A ObjCPropertyImplDecl record.
1274 
1275  /// A FieldDecl record.
1277 
1278  /// A MSPropertyDecl record.
1280 
1281  /// A MSGuidDecl record.
1283 
1284  /// A VarDecl record.
1286 
1287  /// An ImplicitParamDecl record.
1289 
1290  /// A ParmVarDecl record.
1292 
1293  /// A DecompositionDecl record.
1295 
1296  /// A BindingDecl record.
1298 
1299  /// A FileScopeAsmDecl record.
1301 
1302  /// A BlockDecl record.
1304 
1305  /// A CapturedDecl record.
1307 
1308  /// A record that stores the set of declarations that are
1309  /// lexically stored within a given DeclContext.
1310  ///
1311  /// The record itself is a blob that is an array of declaration IDs,
1312  /// in the order in which those declarations were added to the
1313  /// declaration context. This data is used when iterating over
1314  /// the contents of a DeclContext, e.g., via
1315  /// DeclContext::decls_begin() and DeclContext::decls_end().
1317 
1318  /// A record that stores the set of declarations that are
1319  /// visible from a given DeclContext.
1320  ///
1321  /// The record itself stores a set of mappings, each of which
1322  /// associates a declaration name with one or more declaration
1323  /// IDs. This data is used when performing qualified name lookup
1324  /// into a DeclContext via DeclContext::lookup.
1326 
1327  /// A LabelDecl record.
1329 
1330  /// A NamespaceDecl record.
1332 
1333  /// A NamespaceAliasDecl record.
1335 
1336  /// A UsingDecl record.
1338 
1339  /// A UsingPackDecl record.
1341 
1342  /// A UsingShadowDecl record.
1344 
1345  /// A ConstructorUsingShadowDecl record.
1347 
1348  /// A UsingDirecitveDecl record.
1350 
1351  /// An UnresolvedUsingValueDecl record.
1353 
1354  /// An UnresolvedUsingTypenameDecl record.
1356 
1357  /// A LinkageSpecDecl record.
1359 
1360  /// An ExportDecl record.
1362 
1363  /// A CXXRecordDecl record.
1365 
1366  /// A CXXDeductionGuideDecl record.
1368 
1369  /// A CXXMethodDecl record.
1371 
1372  /// A CXXConstructorDecl record.
1374 
1375  /// A CXXDestructorDecl record.
1377 
1378  /// A CXXConversionDecl record.
1380 
1381  /// An AccessSpecDecl record.
1383 
1384  /// A FriendDecl record.
1386 
1387  /// A FriendTemplateDecl record.
1389 
1390  /// A ClassTemplateDecl record.
1392 
1393  /// A ClassTemplateSpecializationDecl record.
1395 
1396  /// A ClassTemplatePartialSpecializationDecl record.
1398 
1399  /// A VarTemplateDecl record.
1401 
1402  /// A VarTemplateSpecializationDecl record.
1404 
1405  /// A VarTemplatePartialSpecializationDecl record.
1407 
1408  /// A FunctionTemplateDecl record.
1410 
1411  /// A TemplateTypeParmDecl record.
1413 
1414  /// A NonTypeTemplateParmDecl record.
1416 
1417  /// A TemplateTemplateParmDecl record.
1419 
1420  /// A TypeAliasTemplateDecl record.
1422 
1423  /// \brief A ConceptDecl record.
1425 
1426  /// \brief A StaticAssertDecl record.
1428 
1429  /// A record containing CXXBaseSpecifiers.
1431 
1432  /// A record containing CXXCtorInitializers.
1434 
1435  /// A IndirectFieldDecl record.
1437 
1438  /// A NonTypeTemplateParmDecl record that stores an expanded
1439  /// non-type template parameter pack.
1441 
1442  /// A TemplateTemplateParmDecl record that stores an expanded
1443  /// template template parameter pack.
1445 
1446  /// A ClassScopeFunctionSpecializationDecl record a class scope
1447  /// function specialization. (Microsoft extension).
1449 
1450  /// An ImportDecl recording a module import.
1452 
1453  /// An OMPThreadPrivateDecl record.
1455 
1456  /// An OMPRequiresDecl record.
1458 
1459  /// An OMPAllocateDcl record.
1461 
1462  /// An EmptyDecl record.
1464 
1465  /// An LifetimeExtendedTemporaryDecl record.
1467 
1468  /// A RequiresExprBodyDecl record.
1470 
1471  /// An ObjCTypeParamDecl record.
1473 
1474  /// An OMPCapturedExprDecl record.
1476 
1477  /// A PragmaCommentDecl record.
1479 
1480  /// A PragmaDetectMismatchDecl record.
1482 
1483  /// An OMPDeclareMapperDecl record.
1485 
1486  /// An OMPDeclareReductionDecl record.
1488 
1490  };
1491 
1492  /// Record codes for each kind of statement or expression.
1493  ///
1494  /// These constants describe the records that describe statements
1495  /// or expressions. These records occur within type and declarations
1496  /// block, so they begin with record values of 128. Each constant
1497  /// describes a record for a specific statement or expression class in the
1498  /// AST.
1499  enum StmtCode {
1500  /// A marker record that indicates that we are at the end
1501  /// of an expression.
1503 
1504  /// A NULL expression.
1506 
1507  /// A reference to a previously [de]serialized Stmt record.
1509 
1510  /// A NullStmt record.
1512 
1513  /// A CompoundStmt record.
1515 
1516  /// A CaseStmt record.
1518 
1519  /// A DefaultStmt record.
1521 
1522  /// A LabelStmt record.
1524 
1525  /// An AttributedStmt record.
1527 
1528  /// An IfStmt record.
1530 
1531  /// A SwitchStmt record.
1533 
1534  /// A WhileStmt record.
1536 
1537  /// A DoStmt record.
1539 
1540  /// A ForStmt record.
1542 
1543  /// A GotoStmt record.
1545 
1546  /// An IndirectGotoStmt record.
1548 
1549  /// A ContinueStmt record.
1551 
1552  /// A BreakStmt record.
1554 
1555  /// A ReturnStmt record.
1557 
1558  /// A DeclStmt record.
1560 
1561  /// A CapturedStmt record.
1563 
1564  /// A GCC-style AsmStmt record.
1566 
1567  /// A MS-style AsmStmt record.
1569 
1570  /// A constant expression context.
1572 
1573  /// A PredefinedExpr record.
1575 
1576  /// A DeclRefExpr record.
1578 
1579  /// An IntegerLiteral record.
1581 
1582  /// A FloatingLiteral record.
1584 
1585  /// An ImaginaryLiteral record.
1587 
1588  /// A StringLiteral record.
1590 
1591  /// A CharacterLiteral record.
1593 
1594  /// A ParenExpr record.
1596 
1597  /// A ParenListExpr record.
1599 
1600  /// A UnaryOperator record.
1602 
1603  /// An OffsetOfExpr record.
1605 
1606  /// A SizefAlignOfExpr record.
1608 
1609  /// An ArraySubscriptExpr record.
1611 
1612  /// An MatrixSubscriptExpr record.
1614 
1615  /// A CallExpr record.
1617 
1618  /// A MemberExpr record.
1620 
1621  /// A BinaryOperator record.
1623 
1624  /// A CompoundAssignOperator record.
1626 
1627  /// A ConditionOperator record.
1629 
1630  /// An ImplicitCastExpr record.
1632 
1633  /// A CStyleCastExpr record.
1635 
1636  /// A CompoundLiteralExpr record.
1638 
1639  /// An ExtVectorElementExpr record.
1641 
1642  /// An InitListExpr record.
1644 
1645  /// A DesignatedInitExpr record.
1647 
1648  /// A DesignatedInitUpdateExpr record.
1650 
1651  /// An NoInitExpr record.
1653 
1654  /// An ArrayInitLoopExpr record.
1656 
1657  /// An ArrayInitIndexExpr record.
1659 
1660  /// An ImplicitValueInitExpr record.
1662 
1663  /// A VAArgExpr record.
1665 
1666  /// An AddrLabelExpr record.
1668 
1669  /// A StmtExpr record.
1671 
1672  /// A ChooseExpr record.
1674 
1675  /// A GNUNullExpr record.
1677 
1678  /// A SourceLocExpr record.
1680 
1681  /// A ShuffleVectorExpr record.
1683 
1684  /// A ConvertVectorExpr record.
1686 
1687  /// BlockExpr
1689 
1690  /// A GenericSelectionExpr record.
1692 
1693  /// A PseudoObjectExpr record.
1695 
1696  /// An AtomicExpr record.
1698 
1699  /// A RecoveryExpr record.
1701 
1702  // Objective-C
1703 
1704  /// An ObjCStringLiteral record.
1706 
1710 
1711  /// An ObjCEncodeExpr record.
1713 
1714  /// An ObjCSelectorExpr record.
1716 
1717  /// An ObjCProtocolExpr record.
1719 
1720  /// An ObjCIvarRefExpr record.
1722 
1723  /// An ObjCPropertyRefExpr record.
1725 
1726  /// An ObjCSubscriptRefExpr record.
1728 
1729  /// UNUSED
1731 
1732  /// An ObjCMessageExpr record.
1734 
1735  /// An ObjCIsa Expr record.
1737 
1738  /// An ObjCIndirectCopyRestoreExpr record.
1740 
1741  /// An ObjCForCollectionStmt record.
1743 
1744  /// An ObjCAtCatchStmt record.
1746 
1747  /// An ObjCAtFinallyStmt record.
1749 
1750  /// An ObjCAtTryStmt record.
1752 
1753  /// An ObjCAtSynchronizedStmt record.
1755 
1756  /// An ObjCAtThrowStmt record.
1758 
1759  /// An ObjCAutoreleasePoolStmt record.
1761 
1762  /// An ObjCBoolLiteralExpr record.
1764 
1765  /// An ObjCAvailabilityCheckExpr record.
1767 
1768  // C++
1769 
1770  /// A CXXCatchStmt record.
1772 
1773  /// A CXXTryStmt record.
1775  /// A CXXForRangeStmt record.
1776 
1778 
1779  /// A CXXOperatorCallExpr record.
1781 
1782  /// A CXXMemberCallExpr record.
1784 
1785  /// A CXXRewrittenBinaryOperator record.
1787 
1788  /// A CXXConstructExpr record.
1790 
1791  /// A CXXInheritedCtorInitExpr record.
1793 
1794  /// A CXXTemporaryObjectExpr record.
1796 
1797  /// A CXXStaticCastExpr record.
1799 
1800  /// A CXXDynamicCastExpr record.
1802 
1803  /// A CXXReinterpretCastExpr record.
1805 
1806  /// A CXXConstCastExpr record.
1808 
1809  /// A CXXAddrspaceCastExpr record.
1811 
1812  /// A CXXFunctionalCastExpr record.
1814 
1815  /// A BuiltinBitCastExpr record.
1817 
1818  /// A UserDefinedLiteral record.
1820 
1821  /// A CXXStdInitializerListExpr record.
1823 
1824  /// A CXXBoolLiteralExpr record.
1826 
1827  EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr
1828  EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr).
1829  EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type).
1830  EXPR_CXX_THIS, // CXXThisExpr
1831  EXPR_CXX_THROW, // CXXThrowExpr
1832  EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr
1833  EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr
1834  EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr
1835 
1836  EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr
1837  EXPR_CXX_NEW, // CXXNewExpr
1838  EXPR_CXX_DELETE, // CXXDeleteExpr
1839  EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr
1840 
1841  EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups
1842 
1843  EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr
1844  EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr
1845  EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr
1846  EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr
1847  EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr
1848 
1849  EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr
1850  EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr
1851 
1852  EXPR_OPAQUE_VALUE, // OpaqueValueExpr
1853  EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator
1854  EXPR_TYPE_TRAIT, // TypeTraitExpr
1855  EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr
1856 
1857  EXPR_PACK_EXPANSION, // PackExpansionExpr
1858  EXPR_SIZEOF_PACK, // SizeOfPackExpr
1859  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr
1860  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK,// SubstNonTypeTemplateParmPackExpr
1861  EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr
1862  EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr
1863  EXPR_CXX_FOLD, // CXXFoldExpr
1864  EXPR_CONCEPT_SPECIALIZATION,// ConceptSpecializationExpr
1865  EXPR_REQUIRES, // RequiresExpr
1866 
1867  // CUDA
1868  EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr
1869 
1870  // OpenCL
1871  EXPR_ASTYPE, // AsTypeExpr
1872 
1873  // Microsoft
1874  EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr
1875  EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr
1876  EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr).
1877  EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type).
1878  STMT_SEH_LEAVE, // SEHLeaveStmt
1879  STMT_SEH_EXCEPT, // SEHExceptStmt
1880  STMT_SEH_FINALLY, // SEHFinallyStmt
1881  STMT_SEH_TRY, // SEHTryStmt
1882 
1883  // OpenMP directives
1941 
1942  // ARC
1943  EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr
1944 
1945  STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt
1946  EXPR_LAMBDA, // LambdaExpr
1952 
1953  // FixedPointLiteral
1955  };
1956 
1957  /// The kinds of designators that can occur in a
1958  /// DesignatedInitExpr.
1960  /// Field designator where only the field name is known.
1962 
1963  /// Field designator where the field has been resolved to
1964  /// a declaration.
1966 
1967  /// Array designator.
1969 
1970  /// GNU array range designator.
1972  };
1973 
1974  /// The different kinds of data that can occur in a
1975  /// CtorInitializer.
1981  };
1982 
1983  /// Kinds of cleanup objects owned by ExprWithCleanups.
1985 
1986  /// Describes the redeclarations of a declaration.
1988  // The ID of the first declaration
1990 
1991  // Offset into the array of redeclaration chains.
1992  unsigned Offset;
1993 
1995  const LocalRedeclarationsInfo &Y) {
1996  return X.FirstID < Y.FirstID;
1997  }
1998 
2000  const LocalRedeclarationsInfo &Y) {
2001  return X.FirstID > Y.FirstID;
2002  }
2003 
2005  const LocalRedeclarationsInfo &Y) {
2006  return X.FirstID <= Y.FirstID;
2007  }
2008 
2010  const LocalRedeclarationsInfo &Y) {
2011  return X.FirstID >= Y.FirstID;
2012  }
2013  };
2014 
2015  /// Describes the categories of an Objective-C class.
2017  // The ID of the definition
2019 
2020  // Offset into the array of category lists.
2021  unsigned Offset;
2022 
2023  friend bool operator<(const ObjCCategoriesInfo &X,
2024  const ObjCCategoriesInfo &Y) {
2025  return X.DefinitionID < Y.DefinitionID;
2026  }
2027 
2028  friend bool operator>(const ObjCCategoriesInfo &X,
2029  const ObjCCategoriesInfo &Y) {
2030  return X.DefinitionID > Y.DefinitionID;
2031  }
2032 
2033  friend bool operator<=(const ObjCCategoriesInfo &X,
2034  const ObjCCategoriesInfo &Y) {
2035  return X.DefinitionID <= Y.DefinitionID;
2036  }
2037 
2038  friend bool operator>=(const ObjCCategoriesInfo &X,
2039  const ObjCCategoriesInfo &Y) {
2040  return X.DefinitionID >= Y.DefinitionID;
2041  }
2042  };
2043 
2044  /// A key used when looking up entities by \ref DeclarationName.
2045  ///
2046  /// Different \ref DeclarationNames are mapped to different keys, but the
2047  /// same key can occasionally represent multiple names (for names that
2048  /// contain types, in particular).
2050  using NameKind = unsigned;
2051 
2052  NameKind Kind = 0;
2053  uint64_t Data = 0;
2054 
2055  public:
2056  DeclarationNameKey() = default;
2058  DeclarationNameKey(NameKind Kind, uint64_t Data)
2059  : Kind(Kind), Data(Data) {}
2060 
2061  NameKind getKind() const { return Kind; }
2062 
2064  assert(Kind == DeclarationName::Identifier ||
2067  return (IdentifierInfo *)Data;
2068  }
2069 
2071  assert(Kind == DeclarationName::ObjCZeroArgSelector ||
2074  return Selector(Data);
2075  }
2076 
2078  assert(Kind == DeclarationName::CXXOperatorName);
2079  return (OverloadedOperatorKind)Data;
2080  }
2081 
2082  /// Compute a fingerprint of this key for use in on-disk hash table.
2083  unsigned getHash() const;
2084 
2085  friend bool operator==(const DeclarationNameKey &A,
2086  const DeclarationNameKey &B) {
2087  return A.Kind == B.Kind && A.Data == B.Data;
2088  }
2089  };
2090 
2091  /// @}
2092 
2093 } // namespace serialization
2094 } // namespace clang
2095 
2096 namespace llvm {
2097 
2098  template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> {
2101  }
2102 
2105  }
2106 
2107  static unsigned
2109  return Key.getHash();
2110  }
2111 
2114  return L == R;
2115  }
2116  };
2117 
2118 } // namespace llvm
2119 
2120 #endif // LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
A PredefinedExpr record.
Definition: ASTBitCodes.h:1574
A FriendTemplateDecl record.
Definition: ASTBitCodes.h:1388
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1637
A NonTypeTemplateParmDecl record.
Definition: ASTBitCodes.h:1415
The ObjC &#39;SEL&#39; type.
Definition: ASTBitCodes.h:935
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
Definition: ASTBitCodes.h:1959
Record code for the preprocessor options table.
Definition: ASTBitCodes.h:392
The &#39;unsigned _Accum&#39; type.
Definition: ASTBitCodes.h:1001
BlockIDs
Describes the various kinds of blocks that occur within an AST file.
Definition: ASTBitCodes.h:280
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:177
The &#39;unsigned short _Fract&#39; type.
Definition: ASTBitCodes.h:1016
Record code for potentially unused local typedef names.
Definition: ASTBitCodes.h:659
Smart pointer class that efficiently represents Objective-C method names.
Record code for map of Objective-C class definition IDs to the ObjC categories in a module that are a...
Definition: ASTBitCodes.h:617
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1547
unsigned getRawEncoding() const
When a SourceLocation itself cannot be used, this returns an (opaque) 32-bit integer encoding for it...
A (possibly-)qualified type.
Definition: Type.h:655
CtorInitializerType
The different kinds of data that can occur in a CtorInitializer.
Definition: ASTBitCodes.h:1976
The &#39;_Float16&#39; type.
Definition: ASTBitCodes.h:983
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1667
The macro directives history for a particular identifier.
Definition: ASTBitCodes.h:744
The &#39;unsigned int&#39; type.
Definition: ASTBitCodes.h:869
The (signed) &#39;long long&#39; type.
Definition: ASTBitCodes.h:896
A CXXStaticCastExpr record.
Definition: ASTBitCodes.h:1798
ExtensionBlockRecordTypes
Record code for extension blocks.
Definition: ASTBitCodes.h:411
Record code for the source manager line table information, which stores information about #line direc...
Definition: ASTBitCodes.h:613
An AttributedStmt record.
Definition: ASTBitCodes.h:1526
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1804
The &#39;bool&#39; or &#39;_Bool&#39; type.
Definition: ASTBitCodes.h:857
An OMPThreadPrivateDecl record.
Definition: ASTBitCodes.h:1454
Specialize PointerLikeTypeTraits to allow LazyGenerationalUpdatePtr to be placed into a PointerUnion...
Definition: Dominators.h:30
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1763
UnderalignedInt64 BitOffset
Offset relative to the start of the DECLTYPES_BLOCK block.
Definition: ASTBitCodes.h:248
A structure for putting "fast"-unqualified QualTypes into a DenseMap.
Definition: ASTBitCodes.h:114
const unsigned NUM_PREDEF_TYPE_IDS
The number of predefined type IDs that are reserved for the PREDEF_TYPE_* constants.
Definition: ASTBitCodes.h:1090
friend bool operator>(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1999
uint32_t GlobalMacroID
A global ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:143
ControlRecordTypes
Record types that occur within the control block.
Definition: ASTBitCodes.h:335
C Language Family Type Representation.
The &#39;unknown any&#39; placeholder type.
Definition: ASTBitCodes.h:938
Source range of a skipped preprocessor region.
Definition: ASTBitCodes.h:201
An OMPDeclareReductionDecl record.
Definition: ASTBitCodes.h:1487
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1661
SourceManagerRecordTypes
Record types used within a source manager block.
Definition: ASTBitCodes.h:701
const unsigned int NUM_PREDEF_SELECTOR_IDS
The number of predefined selector IDs.
Definition: ASTBitCodes.h:156
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1631
A VarTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1406
unsigned Begin
Raw source location of beginning of range.
Definition: ASTBitCodes.h:179
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1816
Describes a source location entry (SLocEntry) for a macro expansion.
Definition: ASTBitCodes.h:722
An MatrixSubscriptExpr record.
Definition: ASTBitCodes.h:1613
The placeholder type for builtin functions.
Definition: ASTBitCodes.h:959
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1780
Specifies the submodules that are imported by this submodule.
Definition: ASTBitCodes.h:788
A record that stores the set of declarations that are lexically stored within a given DeclContext...
Definition: ASTBitCodes.h:1316
Specifies an umbrella directory.
Definition: ASTBitCodes.h:784
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1795
A ObjCPropertyDecl record.
Definition: ASTBitCodes.h:1270
A constant expression context.
Definition: ASTBitCodes.h:1571
Record code for enabled OpenCL extensions.
Definition: ASTBitCodes.h:596
Record code for the module build directory.
Definition: ASTBitCodes.h:368
The &#39;short _Fract&#39; type.
Definition: ASTBitCodes.h:1007
An OMPRequiresDecl record.
Definition: ASTBitCodes.h:1457
static clang::serialization::DeclarationNameKey getTombstoneKey()
Definition: ASTBitCodes.h:2103
The internal &#39;__type_pack_element&#39; template.
Definition: ASTBitCodes.h:1200
Specifies a header that is part of the module but must be textually included.
Definition: ASTBitCodes.h:815
ARC&#39;s unbridged-cast placeholder type.
Definition: ASTBitCodes.h:953
unsigned Begin
Raw source location of beginning of range.
Definition: ASTBitCodes.h:203
The &#39;__int128_t&#39; type.
Definition: ASTBitCodes.h:917
A ClassTemplateDecl record.
Definition: ASTBitCodes.h:1391
A PragmaDetectMismatchDecl record.
Definition: ASTBitCodes.h:1481
The C++ &#39;char32_t&#39; type.
Definition: ASTBitCodes.h:926
An UnresolvedUsingTypenameDecl record.
Definition: ASTBitCodes.h:1355
The internal &#39;__builtin_va_list&#39; typedef.
Definition: ASTBitCodes.h:1176
The stack of open #ifs/#ifdefs recorded in a preamble.
Definition: ASTBitCodes.h:688
Record code for #pragma pack options.
Definition: ASTBitCodes.h:685
A block with unhashed content.
Definition: ASTBitCodes.h:331
friend bool operator<(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2023
An OMPCapturedExprDecl record.
Definition: ASTBitCodes.h:1475
Record code for declarations associated with OpenCL extensions.
Definition: ASTBitCodes.h:680
A UsingShadowDecl record.
Definition: ASTBitCodes.h:1343
const unsigned int NUM_PREDEF_DECL_IDS
The number of declaration IDs that are predefined.
Definition: ASTBitCodes.h:1207
The value of the next COUNTER to dispense.
Definition: ASTBitCodes.h:521
A TemplateTemplateParmDecl record that stores an expanded template template parameter pack...
Definition: ASTBitCodes.h:1444
Specifies the umbrella header used to create this module, if any.
Definition: ASTBitCodes.h:775
Record code for header search information.
Definition: ASTBitCodes.h:590
Describes a source location entry (SLocEntry) for a buffer.
Definition: ASTBitCodes.h:708
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1789
Record code for the target options table.
Definition: ASTBitCodes.h:383
A TemplateTemplateParmDecl record.
Definition: ASTBitCodes.h:1418
Record code for the array of eagerly deserialized decls.
Definition: ASTBitCodes.h:492
A ObjCInterfaceDecl record.
Definition: ASTBitCodes.h:1246
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1682
const unsigned VERSION_MAJOR
AST file major version number supported by this version of Clang.
Definition: ASTBitCodes.h:44
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1604
One of these records is kept for each identifier that is lexed.
A macro directive exported by a module.
Definition: ASTBitCodes.h:748
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1757
Specifies a top-level header that falls into this (sub)module.
Definition: ASTBitCodes.h:781
The block containing comments.
Definition: ASTBitCodes.h:304
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1646
The Objective-C &#39;SEL&#39; type.
Definition: ASTBitCodes.h:1158
static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R)
Definition: ASTBitCodes.h:2112
The &#39;char&#39; type, when it is signed.
Definition: ASTBitCodes.h:878
The &#39;unsigned long&#39; type.
Definition: ASTBitCodes.h:872
Specifies a header that has been explicitly excluded from this submodule.
Definition: ASTBitCodes.h:799
static SourceLocation getFromRawEncoding(unsigned Encoding)
Turn a raw encoding of a SourceLocation object into a real SourceLocation.
SourceLocation getBegin() const
Definition: ASTBitCodes.h:191
SpecialTypeIDs
The type IDs for special types constructed by semantic analysis.
Definition: ASTBitCodes.h:1112
friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2033
The &#39;_Sat unsigned _Accum&#39; type.
Definition: ASTBitCodes.h:1037
Record code for the module map file that was used to build this AST file.
Definition: ASTBitCodes.h:365
Delete expressions that will be analyzed later.
Definition: ASTBitCodes.h:664
friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B)
Definition: ASTBitCodes.h:2085
The &#39;unsigned long _Fract&#39; type.
Definition: ASTBitCodes.h:1022
The &#39;long _Fract&#39; type.
Definition: ASTBitCodes.h:1013
uint32_t MacroID
An ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:140
An object-like macro definition.
Definition: ASTBitCodes.h:732
Describes one token.
Definition: ASTBitCodes.h:741
The &#39;short _Accum&#39; type.
Definition: ASTBitCodes.h:989
A IndirectFieldDecl record.
Definition: ASTBitCodes.h:1436
Record code for the set of ext_vector type names.
Definition: ASTBitCodes.h:536
The &#39;long _Accum&#39; type.
Definition: ASTBitCodes.h:995
uint32_t LocalMacroID
A local to a module ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:147
A RequiresExprBodyDecl record.
Definition: ASTBitCodes.h:1469
Specifies the submodules that are re-exported from this submodule.
Definition: ASTBitCodes.h:792
The Objective-C &#39;id&#39; type.
Definition: ASTBitCodes.h:1155
An AccessSpecDecl record.
Definition: ASTBitCodes.h:1382
const unsigned NumSpecialTypeIDs
The number of special type IDs.
Definition: ASTBitCodes.h:1139
Describes a blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:714
Record code for the language options table.
Definition: ASTBitCodes.h:380
The &#39;unsigned short _Accum&#39; type.
Definition: ASTBitCodes.h:998
Specifies a conflict with another module.
Definition: ASTBitCodes.h:808
unsigned getHash() const
Compute a fingerprint of this key for use in on-disk hash table.
Definition: ASTReader.cpp:1057
The signed 128-bit integer type.
Definition: ASTBitCodes.h:1167
A ConstructorUsingShadowDecl record.
Definition: ASTBitCodes.h:1346
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1508
A UsingDirecitveDecl record.
Definition: ASTBitCodes.h:1349
Record code for #pragma optimize options.
Definition: ASTBitCodes.h:656
uint32_t BitOffset
Offset in the AST file relative to ModuleFile::MacroOffsetsBase.
Definition: ASTBitCodes.h:185
A DecompositionDecl record.
Definition: ASTBitCodes.h:1294
Specifies a header that is private to this submodule but must be textually included.
Definition: ASTBitCodes.h:819
Record code for pending implicit instantiations.
Definition: ASTBitCodes.h:566
The internal &#39;__make_integer_seq&#39; template.
Definition: ASTBitCodes.h:1191
Record code for floating point #pragma options.
Definition: ASTBitCodes.h:593
CommentRecordTypes
Record types used within a comments block.
Definition: ASTBitCodes.h:831
The predeclared &#39;_GUID&#39; struct.
Definition: ASTBitCodes.h:1185
Record code for the set of known namespaces, which are used for typo correction.
Definition: ASTBitCodes.h:603
uint64_t getBitOffset(const uint64_t DeclTypesBlockStartOffset) const
Definition: ASTBitCodes.h:270
Record code for an array of all of the (sub)modules that were imported by the AST file...
Definition: ASTBitCodes.h:624
The first record ID allocated to the extensions themselves.
Definition: ASTBitCodes.h:416
The &#39;unsigned short&#39; type.
Definition: ASTBitCodes.h:866
CleanupObjectKind
Kinds of cleanup objects owned by ExprWithCleanups.
Definition: ASTBitCodes.h:1984
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1502
A ClassTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1394
uint32_t getIndex() const
Definition: ASTBitCodes.h:95
void * getAsOpaquePtr() const
Definition: Type.h:700
The &#39;_Sat short _Fract&#39; type.
Definition: ASTBitCodes.h:1043
The &#39;unsigned long _Accum&#39; type.
Definition: ASTBitCodes.h:1004
The type of &#39;nullptr&#39;.
Definition: ASTBitCodes.h:920
The &#39;_Sat unsigned long _Fract&#39; type.
Definition: ASTBitCodes.h:1058
Record code for the table of offsets into the block of source-location information.
Definition: ASTBitCodes.h:525
TypeCode
Record codes for each kind of type.
Definition: ASTBitCodes.h:1098
PPEntityOffset(SourceRange R, uint32_t BitOffset)
Definition: ASTBitCodes.h:187
The block containing information about the source manager.
Definition: ASTBitCodes.h:287
The placeholder type for OpenMP array section.
Definition: ASTBitCodes.h:977
unsigned getLocalFastQualifiers() const
Definition: Type.h:682
const unsigned int NUM_PREDEF_PP_ENTITY_IDS
The number of predefined preprocessed entity IDs.
Definition: ASTBitCodes.h:276
ASTRecordTypes
Record types that occur within the AST block itself.
Definition: ASTBitCodes.h:430
Defines the major attributes of a submodule, including its name and parent.
Definition: ASTBitCodes.h:771
The &#39;__uint128_t&#39; type.
Definition: ASTBitCodes.h:914
OverloadedOperatorKind getOperatorKind() const
Definition: ASTBitCodes.h:2077
A CXXDeductionGuideDecl record.
Definition: ASTBitCodes.h:1367
A table of skipped ranges within the preprocessing record.
Definition: ASTBitCodes.h:691
friend bool operator>(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2028
A StaticAssertDecl record.
Definition: ASTBitCodes.h:1427
A VarTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1403
Record code for the table of offsets of each macro ID.
Definition: ASTBitCodes.h:641
Record code for #pragma float_control options.
Definition: ASTBitCodes.h:697
unsigned Offset
Definition: Format.cpp:2020
An ObjCTypeParamDecl record.
Definition: ASTBitCodes.h:1472
A record containing CXXBaseSpecifiers.
Definition: ASTBitCodes.h:1430
Specifies some declarations with initializers that must be emitted to initialize the module...
Definition: ASTBitCodes.h:823
The placeholder type for OpenMP array shaping operation.
Definition: ASTBitCodes.h:1061
Describes a zlib-compressed blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:718
A ObjCCategoryImplDecl record.
Definition: ASTBitCodes.h:1261
SourceLocation getEnd() const
Definition: ASTBitCodes.h:195
Record code for the array of VTable uses.
Definition: ASTBitCodes.h:546
The &#39;char&#39; type, when it is unsigned.
Definition: ASTBitCodes.h:860
The directory that the PCH was originally created in.
Definition: ASTBitCodes.h:350
A ObjCPropertyImplDecl record.
Definition: ASTBitCodes.h:1273
The &#39;_Sat long _Fract&#39; type.
Definition: ASTBitCodes.h:1049
unsigned End
Raw source location of end of range.
Definition: ASTBitCodes.h:205
The placeholder type for overloaded function sets.
Definition: ASTBitCodes.h:908
Record code for the Decls to be checked for deferred diags.
Definition: ASTBitCodes.h:694
Record code for the table of offsets to entries in the preprocessing record.
Definition: ASTBitCodes.h:543
__UINTPTR_TYPE__ uintptr_t
An unsigned integer type with the property that any valid pointer to void can be converted to this ty...
Definition: opencl-c-base.h:62
Field designator where only the field name is known.
Definition: ASTBitCodes.h:1961
A CXXConstructorDecl record.
Definition: ASTBitCodes.h:1373
The OpenCL &#39;half&#39; / ARM NEON __fp16 type.
Definition: ASTBitCodes.h:950
Defines an enumeration for C++ overloaded operators.
The block containing the detailed preprocessing record.
Definition: ASTBitCodes.h:298
Record code for #pragma diagnostic mappings.
Definition: ASTBitCodes.h:407
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1810
A CXXStdInitializerListExpr record.
Definition: ASTBitCodes.h:1822
A record containing CXXCtorInitializers.
Definition: ASTBitCodes.h:1433
A VarTemplateDecl record.
Definition: ASTBitCodes.h:1400
Record code for the original file that was used to generate the AST file, including both its file ID ...
Definition: ASTBitCodes.h:347
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1610
The &#39;long double&#39; type.
Definition: ASTBitCodes.h:905
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1655
Record code for the diagnostic options table.
Definition: ASTBitCodes.h:404
uint32_t IdentifierID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:60
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1694
A CXXDestructorDecl record.
Definition: ASTBitCodes.h:1376
A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack...
Definition: ASTBitCodes.h:1440
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
Describes a source location entry (SLocEntry) for a file.
Definition: ASTBitCodes.h:704
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1739
A block containing a module file extension.
Definition: ASTBitCodes.h:325
static bool isEqual(QualType A, QualType B)
Definition: ASTBitCodes.h:115
A NamespaceAliasDecl record.
Definition: ASTBitCodes.h:1334
Record code for an update to a decl context&#39;s lookup table.
Definition: ASTBitCodes.h:573
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:667
const unsigned VERSION_MINOR
AST file minor version number supported by this version of Clang.
Definition: ASTBitCodes.h:54
friend bool operator>=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:2009
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1649
friend bool operator<(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1994
An ImplicitParamDecl record.
Definition: ASTBitCodes.h:1288
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1766
An EnumConstantDecl record.
Definition: ASTBitCodes.h:1237
Record code for the table of offsets of each identifier ID.
Definition: ASTBitCodes.h:463
Record code for undefined but used functions and variables that need a definition in this TU...
Definition: ASTBitCodes.h:650
do v
Definition: arm_acle.h:76
An ImportDecl recording a module import.
Definition: ASTBitCodes.h:1451
A ObjCCategoryDecl record.
Definition: ASTBitCodes.h:1258
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1742
Record code for the identifier table.
Definition: ASTBitCodes.h:482
The &#39;_Sat unsigned long _Accum&#39; type.
Definition: ASTBitCodes.h:1040
A ObjCCompatibleAliasDecl record.
Definition: ASTBitCodes.h:1267
The placeholder type for bound member functions.
Definition: ASTBitCodes.h:941
An LifetimeExtendedTemporaryDecl record.
Definition: ASTBitCodes.h:1466
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1568
friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2038
const unsigned int NUM_PREDEF_IDENT_IDS
The number of predefined identifier IDs.
Definition: ASTBitCodes.h:137
The Objective-C &#39;Class&#39; type.
Definition: ASTBitCodes.h:1161
uint32_t SubmoduleID
An ID number that refers to a submodule in a module file.
Definition: ASTBitCodes.h:171
The &#39;_Sat short _Accum&#39; type.
Definition: ASTBitCodes.h:1025
The &#39;unsigned long long&#39; type.
Definition: ASTBitCodes.h:875
Record code for the set of source location entries that need to be preloaded by the AST reader...
Definition: ASTBitCodes.h:533
The list of delegating constructor declarations.
Definition: ASTBitCodes.h:599
The C++ &#39;char8_t&#39; type.
Definition: ASTBitCodes.h:986
Record code for types associated with OpenCL extensions.
Definition: ASTBitCodes.h:677
An UnresolvedUsingValueDecl record.
Definition: ASTBitCodes.h:1352
Kind
The &#39;_Sat unsigned _Fract&#39; type.
Definition: ASTBitCodes.h:1055
Encodes a location in the source.
A record that stores the set of declarations that are visible from a given DeclContext.
Definition: ASTBitCodes.h:1325
Specifies a library or framework to link against.
Definition: ASTBitCodes.h:802
Record code for file ID of the file or buffer that was used to generate the AST file.
Definition: ASTBitCodes.h:354
Specifies a header that falls into this (sub)module.
Definition: ASTBitCodes.h:778
Record code for special CUDA declarations.
Definition: ASTBitCodes.h:587
A list of "interesting" identifiers.
Definition: ASTBitCodes.h:646
The block of configuration options, used to check that a module is being used in a configuration comp...
Definition: ASTBitCodes.h:322
PredefinedTypeIDs
Predefined type IDs.
Definition: ASTBitCodes.h:849
This is so that older clang versions, before the introduction of the control block, can read and reject the newer PCH format.
Definition: ASTBitCodes.h:468
The &#39;unsigned char&#39; type.
Definition: ASTBitCodes.h:863
Metadata describing this particular extension.
Definition: ASTBitCodes.h:413
The (signed) &#39;long&#39; type.
Definition: ASTBitCodes.h:893
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1813
Record code for the offsets of each decl.
Definition: ASTBitCodes.h:455
Metadata for submodules as a whole.
Definition: ASTBitCodes.h:767
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1712
Record code for late parsed template functions.
Definition: ASTBitCodes.h:653
The (signed) &#39;short&#39; type.
Definition: ASTBitCodes.h:887
A TemplateTypeParmDecl record.
Definition: ASTBitCodes.h:1412
The &#39;_Sat _Accum&#39; type.
Definition: ASTBitCodes.h:1028
The internal &#39;instancetype&#39; typedef.
Definition: ASTBitCodes.h:1173
OptionsRecordTypes
Record types that occur within the options block inside the control block.
Definition: ASTBitCodes.h:373
SourceLocation getLocation() const
Definition: ASTBitCodes.h:261
IdentifierInfo * getIdentifier() const
Definition: ASTBitCodes.h:2063
Describes the categories of an Objective-C class.
Definition: ASTBitCodes.h:2016
The AST block, which acts as a container around the full AST block.
Definition: ASTBitCodes.h:283
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1736
SubmoduleRecordTypes
Record types used within a submodule description block.
Definition: ASTBitCodes.h:765
uint32_t TypeID
An ID number that refers to a type in an AST file.
Definition: ASTBitCodes.h:85
const unsigned int DECL_UPDATES
Record of updates for a declaration that was modified after being deserialized.
Definition: ASTBitCodes.h:1211
UnhashedControlBlockRecordTypes
Record codes for the unhashed control block.
Definition: ASTBitCodes.h:396
Record code for the extra statistics we gather while generating an AST file.
Definition: ASTBitCodes.h:505
An OMPDeclareMapperDecl record.
Definition: ASTBitCodes.h:1484
A NamespaceDecl record.
Definition: ASTBitCodes.h:1331
An AtomicExpr record.
Definition: ASTBitCodes.h:1697
uint32_t PreprocessedEntityID
An ID number that refers to an entity in the detailed preprocessing record.
Definition: ASTBitCodes.h:168
static QualType getFromOpaquePtr(const void *Ptr)
Definition: Type.h:702
An OMPAllocateDcl record.
Definition: ASTBitCodes.h:1460
The &#39;signed char&#39; type.
Definition: ASTBitCodes.h:881
Record code for the signature that identifiers this AST file.
Definition: ASTBitCodes.h:398
Record code for referenced selector pool.
Definition: ASTBitCodes.h:551
Record code for the set of non-builtin, special types.
Definition: ASTBitCodes.h:501
A ObjCProtocolDecl record.
Definition: ASTBitCodes.h:1249
SourceLocation getBegin() const
Definition: ASTBitCodes.h:211
friend bool operator<=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:2004
The ObjC &#39;id&#39; type.
Definition: ASTBitCodes.h:929
Record code for the content hash of the AST block.
Definition: ASTBitCodes.h:401
Record code for the list of other AST files imported by this AST file.
Definition: ASTBitCodes.h:342
A CXXConversionDecl record.
Definition: ASTBitCodes.h:1379
The input file content hash.
Definition: ASTBitCodes.h:426
Describes a macro definition within the preprocessing record.
Definition: ASTBitCodes.h:757
The internal &#39;__NSConstantString&#39; typedef.
Definition: ASTBitCodes.h:1194
Record code for the module name.
Definition: ASTBitCodes.h:361
uint32_t SelectorID
An ID number that refers to an ObjC selector in an AST file.
Definition: ASTBitCodes.h:153
Dataflow Directional Tag Classes.
A placeholder type for incomplete matrix index operations.
Definition: ASTBitCodes.h:1067
An InitListExpr record.
Definition: ASTBitCodes.h:1643
Describes an inclusion directive within the preprocessing record.
Definition: ASTBitCodes.h:761
The internal &#39;__builtin_ms_va_list&#39; typedef.
Definition: ASTBitCodes.h:1182
void setBitOffset(uint64_t Offset, const uint64_t DeclTypesBlockStartOffset)
Definition: ASTBitCodes.h:265
The placeholder type for OpenMP iterator expression.
Definition: ASTBitCodes.h:1064
Record code for a file sorted array of DeclIDs in a module.
Definition: ASTBitCodes.h:620
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1825
Record code for the array of Objective-C categories (including extensions).
Definition: ASTBitCodes.h:634
Specifies a configuration macro for this module.
Definition: ASTBitCodes.h:805
PreprocessorDetailRecordTypes
Record types used within a preprocessor detail block.
Definition: ASTBitCodes.h:752
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.
Definition: OperatorKinds.h:21
TypeID asTypeID(unsigned FastQuals) const
Definition: ASTBitCodes.h:97
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1640
Record code for the array of unused file scoped decls.
Definition: ASTBitCodes.h:539
The &#39;_Sat unsigned short _Accum&#39; type.
Definition: ASTBitCodes.h:1034
A ClassTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1397
static clang::serialization::DeclarationNameKey getEmptyKey()
Definition: ASTBitCodes.h:2099
DeclCode
Record codes for each kind of declaration.
Definition: ASTBitCodes.h:1223
The &#39;_Sat long _Accum&#39; type.
Definition: ASTBitCodes.h:1031
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1760
The name of a declaration.
A ClassScopeFunctionSpecializationDecl record a class scope function specialization.
Definition: ASTBitCodes.h:1448
Record code for the Objective-C method pool,.
Definition: ASTBitCodes.h:517
Specifies a header that is private to this submodule.
Definition: ASTBitCodes.h:811
A LinkageSpecDecl record.
Definition: ASTBitCodes.h:1358
Describes a macro expansion within the preprocessing record.
Definition: ASTBitCodes.h:754
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1801
The width of the "fast" qualifier mask.
Definition: Type.h:187
DeclarationNameKey(NameKind Kind, uint64_t Data)
Definition: ASTBitCodes.h:2058
uint32_t DeclID
An ID number that refers to a declaration in an AST file.
Definition: ASTBitCodes.h:68
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1748
The placeholder type for dependent types.
Definition: ASTBitCodes.h:911
Number of unmatched #pragma clang cuda_force_host_device begin directives we&#39;ve seen.
Definition: ASTBitCodes.h:674
A PragmaCommentDecl record.
Definition: ASTBitCodes.h:1478
The &#39;unsigned _Fract&#39; type.
Definition: ASTBitCodes.h:1019
Record code for the table of offsets into the Objective-C method pool.
Definition: ASTBitCodes.h:514
Record code for the remapping information used to relate loaded modules to the various offsets and ID...
Definition: ASTBitCodes.h:609
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1754
uint32_t IdentID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:134
A key used when looking up entities by DeclarationName.
Definition: ASTBitCodes.h:2049
Record code for declarations that Sema keeps references of.
Definition: ASTBitCodes.h:560
const unsigned int NUM_PREDEF_MACRO_IDS
The number of predefined macro IDs.
Definition: ASTBitCodes.h:150
Offsets into the input-files block where input files reside.
Definition: ASTBitCodes.h:358
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1783
PreprocessorRecordTypes
Record types used within a preprocessor block.
Definition: ASTBitCodes.h:726
SourceLocation getEnd() const
Definition: ASTBitCodes.h:214
The block containing the submodule structure.
Definition: ASTBitCodes.h:301
void setLocation(SourceLocation L)
Definition: ASTBitCodes.h:257
uint32_t CXXBaseSpecifiersID
An ID number that refers to a set of CXXBaseSpecifiers in an AST file.
Definition: ASTBitCodes.h:160
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1685
unsigned End
Raw source location of end of range.
Definition: ASTBitCodes.h:182
X
Add a minimal nested name specifier fixit hint to allow lookup of a tag name from an outer enclosing ...
Definition: SemaDecl.cpp:15148
GNU array range designator.
Definition: ASTBitCodes.h:1971
The C++ &#39;char16_t&#39; type.
Definition: ASTBitCodes.h:923
Defines the clang::SourceLocation class and associated facilities.
An ArrayInitIndexExpr record.
Definition: ASTBitCodes.h:1658
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1565
Record code for the filesystem options table.
Definition: ASTBitCodes.h:386
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1745
A ObjCImplementationDecl record.
Definition: ASTBitCodes.h:1264
uint32_t CXXCtorInitializersID
An ID number that refers to a list of CXXCtorInitializers in an AST file.
Definition: ASTBitCodes.h:164
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:1965
DeclOffset(SourceLocation Loc, uint64_t BitOffset, uint64_t DeclTypesBlockStartOffset)
Definition: ASTBitCodes.h:251
static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key)
Definition: ASTBitCodes.h:2108
A ObjCAtDefsFieldDecl record.
Definition: ASTBitCodes.h:1255
Record code for the offsets of each type.
Definition: ASTBitCodes.h:443
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1792
The block containing the definitions of all of the types and decls used within the AST file...
Definition: ASTBitCodes.h:295
The internal &#39;__va_list_tag&#39; struct, if any.
Definition: ASTBitCodes.h:1179
const unsigned int LOCAL_REDECLARATIONS
Record code for a list of local redeclarations of a declaration.
Definition: ASTBitCodes.h:1215
A TypeAliasDecl record.
Definition: ASTBitCodes.h:1228
Specifies the name of the module that will eventually re-export the entities in this module...
Definition: ASTBitCodes.h:827
Describes the redeclarations of a declaration.
Definition: ASTBitCodes.h:1987
The (signed) &#39;int&#39; type.
Definition: ASTBitCodes.h:890
Specifies a required feature.
Definition: ASTBitCodes.h:795
An ExportDecl record.
Definition: ASTBitCodes.h:1361
Record for offsets of DECL_UPDATES records for declarations that were modified after being deserializ...
Definition: ASTBitCodes.h:577
The C++ &#39;wchar_t&#39; type.
Definition: ASTBitCodes.h:884
The ObjC &#39;Class&#39; type.
Definition: ASTBitCodes.h:932
A FunctionTemplateDecl record.
Definition: ASTBitCodes.h:1409
A TypeAliasTemplateDecl record.
Definition: ASTBitCodes.h:1421
Record code for weak undeclared identifiers.
Definition: ASTBitCodes.h:563
The block containing information about the preprocessor.
Definition: ASTBitCodes.h:291
Record code for the headers search options table.
Definition: ASTBitCodes.h:389
A trivial tuple used to represent a source range.
AST file metadata, including the AST file version number and information about the compiler used to b...
Definition: ASTBitCodes.h:338
The block of input files, which were used as inputs to create this AST file.
Definition: ASTBitCodes.h:315
The internal &#39;__NSConstantString&#39; tag type.
Definition: ASTBitCodes.h:1197
static TypeIdx fromTypeID(TypeID ID)
Definition: ASTBitCodes.h:104
InputFileRecordTypes
Record types that occur within the input-files block inside the control block.
Definition: ASTBitCodes.h:421
A function-like macro definition.
Definition: ASTBitCodes.h:737
The Objective-C &#39;Protocol&#39; type.
Definition: ASTBitCodes.h:1164
The control block, which contains all of the information that needs to be validated prior to committi...
Definition: ASTBitCodes.h:309
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1499
The &#39;_Sat unsigned short _Fract&#39; type.
Definition: ASTBitCodes.h:1052
PredefinedDeclIDs
Predefined declaration IDs.
Definition: ASTBitCodes.h:1147
Record code for an update to the TU&#39;s lexically contained declarations.
Definition: ASTBitCodes.h:555
The &#39;_Sat _Fract&#39; type.
Definition: ASTBitCodes.h:1046
Source location and bit offset of a declaration.
Definition: ASTBitCodes.h:241
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1691
A type index; the type ID with the qualifier bits removed.
Definition: ASTBitCodes.h:88
Objective-C "Class" redefinition type.
Definition: ASTBitCodes.h:1129
The pseudo-object placeholder type.
Definition: ASTBitCodes.h:956
const unsigned int NUM_PREDEF_SUBMODULE_IDS
The number of predefined submodule IDs.
Definition: ASTBitCodes.h:174
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:670
Record code for the array of tentative definitions.
Definition: ASTBitCodes.h:508
The &#39;__float128&#39; type.
Definition: ASTBitCodes.h:980