clang  6.0.0svn
ASTBitCodes.h
Go to the documentation of this file.
1 //===- ASTBitCodes.h - Enum values for the PCH bitcode format ---*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This header defines Bitcode enum values for Clang serialized AST files.
11 //
12 // The enum values defined in this file should be considered permanent. If
13 // new features are added, they should have values added at the end of the
14 // respective lists.
15 //
16 //===----------------------------------------------------------------------===//
17 #ifndef LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
18 #define LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
19 
21 #include "clang/AST/Type.h"
22 #include "llvm/ADT/DenseMap.h"
23 #include "llvm/Bitcode/BitCodes.h"
24 #include "llvm/Support/DataTypes.h"
25 
26 namespace clang {
27  namespace serialization {
28  /// \brief AST file major version number supported by this version of
29  /// Clang.
30  ///
31  /// Whenever the AST file format changes in a way that makes it
32  /// incompatible with previous versions (such that a reader
33  /// designed for the previous version could not support reading
34  /// the new version), this number should be increased.
35  ///
36  /// Version 4 of AST files also requires that the version control branch and
37  /// revision match exactly, since there is no backward compatibility of
38  /// AST files at this time.
39  const unsigned VERSION_MAJOR = 6;
40 
41  /// \brief AST file minor version number supported by this version of
42  /// Clang.
43  ///
44  /// Whenever the AST format changes in a way that is still
45  /// compatible with previous versions (such that a reader designed
46  /// for the previous version could still support reading the new
47  /// version by ignoring new kinds of subblocks), this number
48  /// should be increased.
49  const unsigned VERSION_MINOR = 0;
50 
51  /// \brief An ID number that refers to an identifier in an AST file.
52  ///
53  /// The ID numbers of identifiers are consecutive (in order of discovery)
54  /// and start at 1. 0 is reserved for NULL.
55  typedef uint32_t IdentifierID;
56 
57  /// \brief An ID number that refers to a declaration in an AST file.
58  ///
59  /// The ID numbers of declarations are consecutive (in order of
60  /// discovery), with values below NUM_PREDEF_DECL_IDS being reserved.
61  /// At the start of a chain of precompiled headers, declaration ID 1 is
62  /// used for the translation unit declaration.
63  typedef uint32_t DeclID;
64 
65  // FIXME: Turn these into classes so we can have some type safety when
66  // we go from local ID to global and vice-versa.
67  typedef DeclID LocalDeclID;
68  typedef DeclID GlobalDeclID;
69 
70  /// \brief An ID number that refers to a type in an AST file.
71  ///
72  /// The ID of a type is partitioned into two parts: the lower
73  /// three bits are used to store the const/volatile/restrict
74  /// qualifiers (as with QualType) and the upper bits provide a
75  /// type index. The type index values are partitioned into two
76  /// sets. The values below NUM_PREDEF_TYPE_IDs are predefined type
77  /// IDs (based on the PREDEF_TYPE_*_ID constants), with 0 as a
78  /// placeholder for "no type". Values from NUM_PREDEF_TYPE_IDs are
79  /// other types that have serialized representations.
80  typedef uint32_t TypeID;
81 
82  /// \brief A type index; the type ID with the qualifier bits removed.
83  class TypeIdx {
84  uint32_t Idx;
85  public:
86  TypeIdx() : Idx(0) { }
87  explicit TypeIdx(uint32_t index) : Idx(index) { }
88 
89  uint32_t getIndex() const { return Idx; }
90  TypeID asTypeID(unsigned FastQuals) const {
91  if (Idx == uint32_t(-1))
92  return TypeID(-1);
93 
94  return (Idx << Qualifiers::FastWidth) | FastQuals;
95  }
96  static TypeIdx fromTypeID(TypeID ID) {
97  if (ID == TypeID(-1))
98  return TypeIdx(-1);
99 
100  return TypeIdx(ID >> Qualifiers::FastWidth);
101  }
102  };
103 
104  /// A structure for putting "fast"-unqualified QualTypes into a
105  /// DenseMap. This uses the standard pointer hash function.
107  static inline bool isEqual(QualType A, QualType B) { return A == B; }
108  static inline QualType getEmptyKey() {
109  return QualType::getFromOpaquePtr((void*) 1);
110  }
111  static inline QualType getTombstoneKey() {
112  return QualType::getFromOpaquePtr((void*) 2);
113  }
114  static inline unsigned getHashValue(QualType T) {
115  assert(!T.getLocalFastQualifiers() &&
116  "hash invalid for types with fast quals");
117  uintptr_t v = reinterpret_cast<uintptr_t>(T.getAsOpaquePtr());
118  return (unsigned(v) >> 4) ^ (unsigned(v) >> 9);
119  }
120  };
121 
122  /// \brief An ID number that refers to an identifier in an AST file.
123  typedef uint32_t IdentID;
124 
125  /// \brief The number of predefined identifier IDs.
126  const unsigned int NUM_PREDEF_IDENT_IDS = 1;
127 
128  /// \brief An ID number that refers to a macro in an AST file.
129  typedef uint32_t MacroID;
130 
131  /// \brief A global ID number that refers to a macro in an AST file.
132  typedef uint32_t GlobalMacroID;
133 
134  /// \brief A local to a module ID number that refers to a macro in an
135  /// AST file.
136  typedef uint32_t LocalMacroID;
137 
138  /// \brief The number of predefined macro IDs.
139  const unsigned int NUM_PREDEF_MACRO_IDS = 1;
140 
141  /// \brief An ID number that refers to an ObjC selector in an AST file.
142  typedef uint32_t SelectorID;
143 
144  /// \brief The number of predefined selector IDs.
145  const unsigned int NUM_PREDEF_SELECTOR_IDS = 1;
146 
147  /// \brief An ID number that refers to a set of CXXBaseSpecifiers in an
148  /// AST file.
149  typedef uint32_t CXXBaseSpecifiersID;
150 
151  /// \brief An ID number that refers to a list of CXXCtorInitializers in an
152  /// AST file.
153  typedef uint32_t CXXCtorInitializersID;
154 
155  /// \brief An ID number that refers to an entity in the detailed
156  /// preprocessing record.
157  typedef uint32_t PreprocessedEntityID;
158 
159  /// \brief An ID number that refers to a submodule in a module file.
160  typedef uint32_t SubmoduleID;
161 
162  /// \brief The number of predefined submodule IDs.
163  const unsigned int NUM_PREDEF_SUBMODULE_IDS = 1;
164 
165  /// \brief Source range/offset of a preprocessed entity.
166  struct PPEntityOffset {
167  /// \brief Raw source location of beginning of range.
168  unsigned Begin;
169  /// \brief Raw source location of end of range.
170  unsigned End;
171  /// \brief Offset in the AST file.
172  uint32_t BitOffset;
173 
174  PPEntityOffset(SourceRange R, uint32_t BitOffset)
175  : Begin(R.getBegin().getRawEncoding()),
176  End(R.getEnd().getRawEncoding()),
177  BitOffset(BitOffset) { }
180  }
183  }
184  };
185 
186  /// \brief Source range/offset of a preprocessed entity.
187  struct DeclOffset {
188  /// \brief Raw source location.
189  unsigned Loc;
190  /// \brief Offset in the AST file.
191  uint32_t BitOffset;
192 
193  DeclOffset() : Loc(0), BitOffset(0) { }
194  DeclOffset(SourceLocation Loc, uint32_t BitOffset)
195  : Loc(Loc.getRawEncoding()),
196  BitOffset(BitOffset) { }
198  Loc = L.getRawEncoding();
199  }
202  }
203  };
204 
205  /// \brief The number of predefined preprocessed entity IDs.
206  const unsigned int NUM_PREDEF_PP_ENTITY_IDS = 1;
207 
208  /// \brief Describes the various kinds of blocks that occur within
209  /// an AST file.
210  enum BlockIDs {
211  /// \brief The AST block, which acts as a container around the
212  /// full AST block.
213  AST_BLOCK_ID = llvm::bitc::FIRST_APPLICATION_BLOCKID,
214 
215  /// \brief The block containing information about the source
216  /// manager.
218 
219  /// \brief The block containing information about the
220  /// preprocessor.
222 
223  /// \brief The block containing the definitions of all of the
224  /// types and decls used within the AST file.
226 
227  /// \brief The block containing the detailed preprocessing record.
229 
230  /// \brief The block containing the submodule structure.
232 
233  /// \brief The block containing comments.
235 
236  /// \brief The control block, which contains all of the
237  /// information that needs to be validated prior to committing
238  /// to loading the AST file.
240 
241  /// \brief The block of input files, which were used as inputs
242  /// to create this AST file.
243  ///
244  /// This block is part of the control block.
246 
247  /// \brief The block of configuration options, used to check that
248  /// a module is being used in a configuration compatible with the
249  /// configuration in which it was built.
250  ///
251  /// This block is part of the control block.
253 
254  /// \brief A block containing a module file extension.
256 
257  /// A block with unhashed content.
258  ///
259  /// These records should not change the \a ASTFileSignature. See \a
260  /// UnhashedControlBlockRecordTypes for the list of records.
262  };
263 
264  /// \brief Record types that occur within the control block.
266  /// \brief AST file metadata, including the AST file version number
267  /// and information about the compiler used to build this AST file.
268  METADATA = 1,
269 
270  /// \brief Record code for the list of other AST files imported by
271  /// this AST file.
273 
274  /// \brief Record code for the original file that was used to
275  /// generate the AST file, including both its file ID and its
276  /// name.
278 
279  /// \brief The directory that the PCH was originally created in.
281 
282  /// \brief Record code for file ID of the file or buffer that was used to
283  /// generate the AST file.
285 
286  /// \brief Offsets into the input-files block where input files
287  /// reside.
289 
290  /// \brief Record code for the module name.
292 
293  /// \brief Record code for the module map file that was used to build this
294  /// AST file.
296 
297  /// \brief Record code for the module build directory.
299  };
300 
301  /// \brief Record types that occur within the options block inside
302  /// the control block.
304  /// \brief Record code for the language options table.
305  ///
306  /// The record with this code contains the contents of the
307  /// LangOptions structure. We serialize the entire contents of
308  /// the structure, and let the reader decide which options are
309  /// actually important to check.
311 
312  /// \brief Record code for the target options table.
314 
315  /// \brief Record code for the filesystem options table.
317 
318  /// \brief Record code for the headers search options table.
320 
321  /// \brief Record code for the preprocessor options table.
323  };
324 
325  /// Record codes for the unhashed control block.
327  /// Record code for the signature that identifiers this AST file.
329 
330  /// Record code for the diagnostic options table.
332 
333  /// Record code for \#pragma diagnostic mappings.
335  };
336 
337  /// \brief Record code for extension blocks.
339  /// Metadata describing this particular extension.
341 
342  /// The first record ID allocated to the extensions themselves.
344  };
345 
346  /// \brief Record types that occur within the input-files block
347  /// inside the control block.
349  /// \brief An input file.
351  };
352 
353  /// \brief Record types that occur within the AST block itself.
355  /// \brief Record code for the offsets of each type.
356  ///
357  /// The TYPE_OFFSET constant describes the record that occurs
358  /// within the AST block. The record itself is an array of offsets that
359  /// point into the declarations and types block (identified by
360  /// DECLTYPES_BLOCK_ID). The index into the array is based on the ID
361  /// of a type. For a given type ID @c T, the lower three bits of
362  /// @c T are its qualifiers (const, volatile, restrict), as in
363  /// the QualType class. The upper bits, after being shifted and
364  /// subtracting NUM_PREDEF_TYPE_IDS, are used to index into the
365  /// TYPE_OFFSET block to determine the offset of that type's
366  /// corresponding record within the DECLTYPES_BLOCK_ID block.
368 
369  /// \brief Record code for the offsets of each decl.
370  ///
371  /// The DECL_OFFSET constant describes the record that occurs
372  /// within the block identified by DECL_OFFSETS_BLOCK_ID within
373  /// the AST block. The record itself is an array of offsets that
374  /// point into the declarations and types block (identified by
375  /// DECLTYPES_BLOCK_ID). The declaration ID is an index into this
376  /// record, after subtracting one to account for the use of
377  /// declaration ID 0 for a NULL declaration pointer. Index 0 is
378  /// reserved for the translation unit declaration.
380 
381  /// \brief Record code for the table of offsets of each
382  /// identifier ID.
383  ///
384  /// The offset table contains offsets into the blob stored in
385  /// the IDENTIFIER_TABLE record. Each offset points to the
386  /// NULL-terminated string that corresponds to that identifier.
388 
389  /// \brief This is so that older clang versions, before the introduction
390  /// of the control block, can read and reject the newer PCH format.
391  /// *DON'T CHANGE THIS NUMBER*.
393 
394  /// \brief Record code for the identifier table.
395  ///
396  /// The identifier table is a simple blob that contains
397  /// NULL-terminated strings for all of the identifiers
398  /// referenced by the AST file. The IDENTIFIER_OFFSET table
399  /// contains the mapping from identifier IDs to the characters
400  /// in this blob. Note that the starting offsets of all of the
401  /// identifiers are odd, so that, when the identifier offset
402  /// table is loaded in, we can use the low bit to distinguish
403  /// between offsets (for unresolved identifier IDs) and
404  /// IdentifierInfo pointers (for already-resolved identifier
405  /// IDs).
407 
408  /// \brief Record code for the array of eagerly deserialized decls.
409  ///
410  /// The AST file contains a list of all of the declarations that should be
411  /// eagerly deserialized present within the parsed headers, stored as an
412  /// array of declaration IDs. These declarations will be
413  /// reported to the AST consumer after the AST file has been
414  /// read, since their presence can affect the semantics of the
415  /// program (e.g., for code generation).
417 
418  /// \brief Record code for the set of non-builtin, special
419  /// types.
420  ///
421  /// This record contains the type IDs for the various type nodes
422  /// that are constructed during semantic analysis (e.g.,
423  /// __builtin_va_list). The SPECIAL_TYPE_* constants provide
424  /// offsets into this record.
426 
427  /// \brief Record code for the extra statistics we gather while
428  /// generating an AST file.
430 
431  /// \brief Record code for the array of tentative definitions.
433 
434  // ID 10 used to be for a list of extern "C" declarations.
435 
436  /// \brief Record code for the table of offsets into the
437  /// Objective-C method pool.
439 
440  /// \brief Record code for the Objective-C method pool,
442 
443  /// \brief The value of the next __COUNTER__ to dispense.
444  /// [PP_COUNTER_VALUE, Val]
446 
447  /// \brief Record code for the table of offsets into the block
448  /// of source-location information.
450 
451  /// \brief Record code for the set of source location entries
452  /// that need to be preloaded by the AST reader.
453  ///
454  /// This set contains the source location entry for the
455  /// predefines buffer and for any file entries that need to be
456  /// preloaded.
458 
459  /// \brief Record code for the set of ext_vector type names.
461 
462  /// \brief Record code for the array of unused file scoped decls.
464 
465  /// \brief Record code for the table of offsets to entries in the
466  /// preprocessing record.
468 
469  /// \brief Record code for the array of VTable uses.
471 
472  // ID 20 used to be for a list of dynamic classes.
473 
474  /// \brief Record code for referenced selector pool.
476 
477  /// \brief Record code for an update to the TU's lexically contained
478  /// declarations.
480 
481  // ID 23 used to be for a list of local redeclarations.
482 
483  /// \brief Record code for declarations that Sema keeps references of.
485 
486  /// \brief Record code for weak undeclared identifiers.
488 
489  /// \brief Record code for pending implicit instantiations.
491 
492  // ID 27 used to be for a list of replacement decls.
493 
494  /// \brief Record code for an update to a decl context's lookup table.
495  ///
496  /// In practice, this should only be used for the TU and namespaces.
498 
499  /// \brief Record for offsets of DECL_UPDATES records for declarations
500  /// that were modified after being deserialized and need updates.
502 
503  // ID 30 used to be a decl update record. These are now in the DECLTYPES
504  // block.
505 
506  // ID 31 used to be a list of offsets to DECL_CXX_BASE_SPECIFIERS records.
507 
508  // ID 32 used to be the code for \#pragma diagnostic mappings.
509 
510  /// \brief Record code for special CUDA declarations.
512 
513  /// \brief Record code for header search information.
515 
516  /// \brief Record code for floating point \#pragma options.
518 
519  /// \brief Record code for enabled OpenCL extensions.
521 
522  /// \brief The list of delegating constructor declarations.
524 
525  /// \brief Record code for the set of known namespaces, which are used
526  /// for typo correction.
528 
529  /// \brief Record code for the remapping information used to relate
530  /// loaded modules to the various offsets and IDs(e.g., source location
531  /// offests, declaration and type IDs) that are used in that module to
532  /// refer to other modules.
534 
535  /// \brief Record code for the source manager line table information,
536  /// which stores information about \#line directives.
538 
539  /// \brief Record code for map of Objective-C class definition IDs to the
540  /// ObjC categories in a module that are attached to that class.
542 
543  /// \brief Record code for a file sorted array of DeclIDs in a module.
545 
546  /// \brief Record code for an array of all of the (sub)modules that were
547  /// imported by the AST file.
549 
550  // ID 44 used to be a table of merged canonical declarations.
551  // ID 45 used to be a list of declaration IDs of local redeclarations.
552 
553  /// \brief Record code for the array of Objective-C categories (including
554  /// extensions).
555  ///
556  /// This array can only be interpreted properly using the Objective-C
557  /// categories map.
559 
560  /// \brief Record code for the table of offsets of each macro ID.
561  ///
562  /// The offset table contains offsets into the blob stored in
563  /// the preprocessor block. Each offset points to the corresponding
564  /// macro definition.
566 
567  /// \brief A list of "interesting" identifiers. Only used in C++ (where we
568  /// don't normally do lookups into the serialized identifier table). These
569  /// are eagerly deserialized.
571 
572  /// \brief Record code for undefined but used functions and variables that
573  /// need a definition in this TU.
575 
576  /// \brief Record code for late parsed template functions.
578 
579  /// \brief Record code for \#pragma optimize options.
581 
582  /// \brief Record code for potentially unused local typedef names.
584 
585  // ID 53 used to be a table of constructor initializer records.
586 
587  /// \brief Delete expressions that will be analyzed later.
589 
590  /// \brief Record code for \#pragma ms_struct options.
592 
593  /// \brief Record code for \#pragma ms_struct options.
595 
596  /// \brief Number of unmatched #pragma clang cuda_force_host_device begin
597  /// directives we've seen.
599 
600  /// \brief Record code for types associated with OpenCL extensions.
602 
603  /// \brief Record code for declarations associated with OpenCL extensions.
605 
607 
608  /// \brief Record code for \#pragma pack options.
610 
611  /// \brief The stack of open #ifs/#ifdefs recorded in a preamble.
613  };
614 
615  /// \brief Record types used within a source manager block.
617  /// \brief Describes a source location entry (SLocEntry) for a
618  /// file.
620  /// \brief Describes a source location entry (SLocEntry) for a
621  /// buffer.
623  /// \brief Describes a blob that contains the data for a buffer
624  /// entry. This kind of record always directly follows a
625  /// SM_SLOC_BUFFER_ENTRY record or a SM_SLOC_FILE_ENTRY with an
626  /// overridden buffer.
628  /// \brief Describes a zlib-compressed blob that contains the data for
629  /// a buffer entry.
631  /// \brief Describes a source location entry (SLocEntry) for a
632  /// macro expansion.
634  };
635 
636  /// \brief Record types used within a preprocessor block.
638  // The macros in the PP section are a PP_MACRO_* instance followed by a
639  // list of PP_TOKEN instances for each token in the definition.
640 
641  /// \brief An object-like macro definition.
642  /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
644 
645  /// \brief A function-like macro definition.
646  /// [PP_MACRO_FUNCTION_LIKE, <ObjectLikeStuff>, IsC99Varargs,
647  /// IsGNUVarars, NumArgs, ArgIdentInfoID* ]
649 
650  /// \brief Describes one token.
651  /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags]
652  PP_TOKEN = 3,
653 
654  /// \brief The macro directives history for a particular identifier.
656 
657  /// \brief A macro directive exported by a module.
658  /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*]
660  };
661 
662  /// \brief Record types used within a preprocessor detail block.
664  /// \brief Describes a macro expansion within the preprocessing record.
666 
667  /// \brief Describes a macro definition within the preprocessing record.
669 
670  /// \brief Describes an inclusion directive within the preprocessing
671  /// record.
673  };
674 
675  /// \brief Record types used within a submodule description block.
677  /// \brief Metadata for submodules as a whole.
679  /// \brief Defines the major attributes of a submodule, including its
680  /// name and parent.
682  /// \brief Specifies the umbrella header used to create this module,
683  /// if any.
685  /// \brief Specifies a header that falls into this (sub)module.
687  /// \brief Specifies a top-level header that falls into this (sub)module.
689  /// \brief Specifies an umbrella directory.
691  /// \brief Specifies the submodules that are imported by this
692  /// submodule.
694  /// \brief Specifies the submodules that are re-exported from this
695  /// submodule.
697  /// \brief Specifies a required feature.
699  /// \brief Specifies a header that has been explicitly excluded
700  /// from this submodule.
702  /// \brief Specifies a library or framework to link against.
704  /// \brief Specifies a configuration macro for this module.
706  /// \brief Specifies a conflict with another module.
708  /// \brief Specifies a header that is private to this submodule.
710  /// \brief Specifies a header that is part of the module but must be
711  /// textually included.
713  /// \brief Specifies a header that is private to this submodule but
714  /// must be textually included.
716  /// \brief Specifies some declarations with initializers that must be
717  /// emitted to initialize the module.
719  /// \brief Specifies the name of the module that will eventually
720  /// re-export the entities in this module.
722  };
723 
724  /// \brief Record types used within a comments block.
727  };
728 
729  /// \defgroup ASTAST AST file AST constants
730  ///
731  /// The constants in this group describe various components of the
732  /// abstract syntax tree within an AST file.
733  ///
734  /// @{
735 
736  /// \brief Predefined type IDs.
737  ///
738  /// These type IDs correspond to predefined types in the AST
739  /// context, such as built-in types (int) and special place-holder
740  /// types (the <overload> and <dependent> type markers). Such
741  /// types are never actually serialized, since they will be built
742  /// by the AST context when it is created.
744  /// \brief The NULL type.
746  /// \brief The void type.
748  /// \brief The 'bool' or '_Bool' type.
750  /// \brief The 'char' type, when it is unsigned.
752  /// \brief The 'unsigned char' type.
754  /// \brief The 'unsigned short' type.
756  /// \brief The 'unsigned int' type.
758  /// \brief The 'unsigned long' type.
760  /// \brief The 'unsigned long long' type.
762  /// \brief The 'char' type, when it is signed.
764  /// \brief The 'signed char' type.
766  /// \brief The C++ 'wchar_t' type.
768  /// \brief The (signed) 'short' type.
770  /// \brief The (signed) 'int' type.
772  /// \brief The (signed) 'long' type.
774  /// \brief The (signed) 'long long' type.
776  /// \brief The 'float' type.
778  /// \brief The 'double' type.
780  /// \brief The 'long double' type.
782  /// \brief The placeholder type for overloaded function sets.
784  /// \brief The placeholder type for dependent types.
786  /// \brief The '__uint128_t' type.
788  /// \brief The '__int128_t' type.
790  /// \brief The type of 'nullptr'.
792  /// \brief The C++ 'char16_t' type.
794  /// \brief The C++ 'char32_t' type.
796  /// \brief The ObjC 'id' type.
798  /// \brief The ObjC 'Class' type.
800  /// \brief The ObjC 'SEL' type.
802  /// \brief The 'unknown any' placeholder type.
804  /// \brief The placeholder type for bound member functions.
806  /// \brief The "auto" deduction type.
808  /// \brief The "auto &&" deduction type.
810  /// \brief The OpenCL 'half' / ARM NEON __fp16 type.
812  /// \brief ARC's unbridged-cast placeholder type.
814  /// \brief The pseudo-object placeholder type.
816  /// \brief The placeholder type for builtin functions.
818  /// \brief OpenCL event type.
820  /// \brief OpenCL clk event type.
822  /// \brief OpenCL sampler type.
824  /// \brief OpenCL queue type.
826  /// \brief OpenCL reserve_id type.
828  /// \brief The placeholder type for OpenMP array section.
830  /// \brief The '__float128' type
832  /// \brief The '_Float16' type
834  /// \brief OpenCL image types with auto numeration
835 #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
836  PREDEF_TYPE_##Id##_ID,
837 #include "clang/Basic/OpenCLImageTypes.def"
838  };
839 
840  /// \brief The number of predefined type IDs that are reserved for
841  /// the PREDEF_TYPE_* constants.
842  ///
843  /// Type IDs for non-predefined types will start at
844  /// NUM_PREDEF_TYPE_IDs.
845  const unsigned NUM_PREDEF_TYPE_IDS = 100;
846 
847  /// \brief Record codes for each kind of type.
848  ///
849  /// These constants describe the type records that can occur within a
850  /// block identified by DECLTYPES_BLOCK_ID in the AST file. Each
851  /// constant describes a record for a specific type class in the
852  /// AST. Note that DeclCode values share this code space.
853  enum TypeCode {
854  /// \brief An ExtQualType record.
856  /// \brief A ComplexType record.
858  /// \brief A PointerType record.
860  /// \brief A BlockPointerType record.
862  /// \brief An LValueReferenceType record.
864  /// \brief An RValueReferenceType record.
866  /// \brief A MemberPointerType record.
868  /// \brief A ConstantArrayType record.
870  /// \brief An IncompleteArrayType record.
872  /// \brief A VariableArrayType record.
874  /// \brief A VectorType record.
876  /// \brief An ExtVectorType record.
878  /// \brief A FunctionNoProtoType record.
880  /// \brief A FunctionProtoType record.
882  /// \brief A TypedefType record.
884  /// \brief A TypeOfExprType record.
886  /// \brief A TypeOfType record.
888  /// \brief A RecordType record.
890  /// \brief An EnumType record.
891  TYPE_ENUM = 20,
892  /// \brief An ObjCInterfaceType record.
894  /// \brief An ObjCObjectPointerType record.
896  /// \brief a DecltypeType record.
898  /// \brief An ElaboratedType record.
900  /// \brief A SubstTemplateTypeParmType record.
902  /// \brief An UnresolvedUsingType record.
904  /// \brief An InjectedClassNameType record.
906  /// \brief An ObjCObjectType record.
908  /// \brief An TemplateTypeParmType record.
910  /// \brief An TemplateSpecializationType record.
912  /// \brief A DependentNameType record.
914  /// \brief A DependentTemplateSpecializationType record.
916  /// \brief A DependentSizedArrayType record.
918  /// \brief A ParenType record.
920  /// \brief A PackExpansionType record.
922  /// \brief An AttributedType record.
924  /// \brief A SubstTemplateTypeParmPackType record.
926  /// \brief A AutoType record.
927  TYPE_AUTO = 38,
928  /// \brief A UnaryTransformType record.
930  /// \brief An AtomicType record.
932  /// \brief A DecayedType record.
934  /// \brief An AdjustedType record.
936  /// \brief A PipeType record.
937  TYPE_PIPE = 43,
938  /// \brief An ObjCTypeParamType record.
940  /// \brief A DeducedTemplateSpecializationType record.
942  /// \brief A DependentSizedExtVectorType record.
944  /// \brief A DependentAddressSpaceType record.
946  };
947 
948  /// \brief The type IDs for special types constructed by semantic
949  /// analysis.
950  ///
951  /// The constants in this enumeration are indices into the
952  /// SPECIAL_TYPES record.
954  /// \brief CFConstantString type
956  /// \brief C FILE typedef type
958  /// \brief C jmp_buf typedef type
960  /// \brief C sigjmp_buf typedef type
962  /// \brief Objective-C "id" redefinition type
964  /// \brief Objective-C "Class" redefinition type
966  /// \brief Objective-C "SEL" redefinition type
968  /// \brief C ucontext_t typedef type
970  };
971 
972  /// \brief The number of special type IDs.
973  const unsigned NumSpecialTypeIDs = 8;
974 
975  /// \brief Predefined declaration IDs.
976  ///
977  /// These declaration IDs correspond to predefined declarations in the AST
978  /// context, such as the NULL declaration ID. Such declarations are never
979  /// actually serialized, since they will be built by the AST context when
980  /// it is created.
982  /// \brief The NULL declaration.
984 
985  /// \brief The translation unit.
987 
988  /// \brief The Objective-C 'id' type.
990 
991  /// \brief The Objective-C 'SEL' type.
993 
994  /// \brief The Objective-C 'Class' type.
996 
997  /// \brief The Objective-C 'Protocol' type.
999 
1000  /// \brief The signed 128-bit integer type.
1002 
1003  /// \brief The unsigned 128-bit integer type.
1005 
1006  /// \brief The internal 'instancetype' typedef.
1008 
1009  /// \brief The internal '__builtin_va_list' typedef.
1011 
1012  /// \brief The internal '__va_list_tag' struct, if any.
1014 
1015  /// \brief The internal '__builtin_ms_va_list' typedef.
1017 
1018  /// \brief The extern "C" context.
1020 
1021  /// \brief The internal '__make_integer_seq' template.
1023 
1024  /// \brief The internal '__NSConstantString' typedef.
1026 
1027  /// \brief The internal '__NSConstantString' tag type.
1029 
1030  /// \brief The internal '__type_pack_element' template.
1032  };
1033 
1034  /// \brief The number of declaration IDs that are predefined.
1035  ///
1036  /// For more information about predefined declarations, see the
1037  /// \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants.
1038  const unsigned int NUM_PREDEF_DECL_IDS = 17;
1039 
1040  /// \brief Record of updates for a declaration that was modified after
1041  /// being deserialized. This can occur within DECLTYPES_BLOCK_ID.
1042  const unsigned int DECL_UPDATES = 49;
1043 
1044  /// \brief Record code for a list of local redeclarations of a declaration.
1045  /// This can occur within DECLTYPES_BLOCK_ID.
1046  const unsigned int LOCAL_REDECLARATIONS = 50;
1047 
1048  /// \brief Record codes for each kind of declaration.
1049  ///
1050  /// These constants describe the declaration records that can occur within
1051  /// a declarations block (identified by DECLTYPES_BLOCK_ID). Each
1052  /// constant describes a record for a specific declaration class
1053  /// in the AST. Note that TypeCode values share this code space.
1054  enum DeclCode {
1055  /// \brief A TypedefDecl record.
1057  /// \brief A TypeAliasDecl record.
1059  /// \brief An EnumDecl record.
1061  /// \brief A RecordDecl record.
1063  /// \brief An EnumConstantDecl record.
1065  /// \brief A FunctionDecl record.
1067  /// \brief A ObjCMethodDecl record.
1069  /// \brief A ObjCInterfaceDecl record.
1071  /// \brief A ObjCProtocolDecl record.
1073  /// \brief A ObjCIvarDecl record.
1075  /// \brief A ObjCAtDefsFieldDecl record.
1077  /// \brief A ObjCCategoryDecl record.
1079  /// \brief A ObjCCategoryImplDecl record.
1081  /// \brief A ObjCImplementationDecl record.
1083  /// \brief A ObjCCompatibleAliasDecl record.
1085  /// \brief A ObjCPropertyDecl record.
1087  /// \brief A ObjCPropertyImplDecl record.
1089  /// \brief A FieldDecl record.
1091  /// \brief A MSPropertyDecl record.
1093  /// \brief A VarDecl record.
1095  /// \brief An ImplicitParamDecl record.
1097  /// \brief A ParmVarDecl record.
1099  /// \brief A DecompositionDecl record.
1101  /// \brief A BindingDecl record.
1103  /// \brief A FileScopeAsmDecl record.
1105  /// \brief A BlockDecl record.
1107  /// \brief A CapturedDecl record.
1109  /// \brief A record that stores the set of declarations that are
1110  /// lexically stored within a given DeclContext.
1111  ///
1112  /// The record itself is a blob that is an array of declaration IDs,
1113  /// in the order in which those declarations were added to the
1114  /// declaration context. This data is used when iterating over
1115  /// the contents of a DeclContext, e.g., via
1116  /// DeclContext::decls_begin() and DeclContext::decls_end().
1118  /// \brief A record that stores the set of declarations that are
1119  /// visible from a given DeclContext.
1120  ///
1121  /// The record itself stores a set of mappings, each of which
1122  /// associates a declaration name with one or more declaration
1123  /// IDs. This data is used when performing qualified name lookup
1124  /// into a DeclContext via DeclContext::lookup.
1126  /// \brief A LabelDecl record.
1128  /// \brief A NamespaceDecl record.
1130  /// \brief A NamespaceAliasDecl record.
1132  /// \brief A UsingDecl record.
1134  /// \brief A UsingPackDecl record.
1136  /// \brief A UsingShadowDecl record.
1138  /// \brief A ConstructorUsingShadowDecl record.
1140  /// \brief A UsingDirecitveDecl record.
1142  /// \brief An UnresolvedUsingValueDecl record.
1144  /// \brief An UnresolvedUsingTypenameDecl record.
1146  /// \brief A LinkageSpecDecl record.
1148  /// \brief An ExportDecl record.
1150  /// \brief A CXXRecordDecl record.
1152  /// \brief A CXXDeductionGuideDecl record.
1154  /// \brief A CXXMethodDecl record.
1156  /// \brief A CXXConstructorDecl record.
1158  /// \brief A CXXConstructorDecl record for an inherited constructor.
1160  /// \brief A CXXDestructorDecl record.
1162  /// \brief A CXXConversionDecl record.
1164  /// \brief An AccessSpecDecl record.
1166 
1167  /// \brief A FriendDecl record.
1169  /// \brief A FriendTemplateDecl record.
1171  /// \brief A ClassTemplateDecl record.
1173  /// \brief A ClassTemplateSpecializationDecl record.
1175  /// \brief A ClassTemplatePartialSpecializationDecl record.
1177  /// \brief A VarTemplateDecl record.
1179  /// \brief A VarTemplateSpecializationDecl record.
1181  /// \brief A VarTemplatePartialSpecializationDecl record.
1183  /// \brief A FunctionTemplateDecl record.
1185  /// \brief A TemplateTypeParmDecl record.
1187  /// \brief A NonTypeTemplateParmDecl record.
1189  /// \brief A TemplateTemplateParmDecl record.
1191  /// \brief A TypeAliasTemplateDecl record.
1193  /// \brief A StaticAssertDecl record.
1195  /// \brief A record containing CXXBaseSpecifiers.
1197  /// \brief A record containing CXXCtorInitializers.
1199  /// \brief A IndirectFieldDecl record.
1201  /// \brief A NonTypeTemplateParmDecl record that stores an expanded
1202  /// non-type template parameter pack.
1204  /// \brief A TemplateTemplateParmDecl record that stores an expanded
1205  /// template template parameter pack.
1207  /// \brief A ClassScopeFunctionSpecializationDecl record a class scope
1208  /// function specialization. (Microsoft extension).
1210  /// \brief An ImportDecl recording a module import.
1212  /// \brief An OMPThreadPrivateDecl record.
1214  /// \brief An EmptyDecl record.
1216  /// \brief An ObjCTypeParamDecl record.
1218  /// \brief An OMPCapturedExprDecl record.
1220  /// \brief A PragmaCommentDecl record.
1222  /// \brief A PragmaDetectMismatchDecl record.
1224  /// \brief An OMPDeclareReductionDecl record.
1226  };
1227 
1228  /// \brief Record codes for each kind of statement or expression.
1229  ///
1230  /// These constants describe the records that describe statements
1231  /// or expressions. These records occur within type and declarations
1232  /// block, so they begin with record values of 128. Each constant
1233  /// describes a record for a specific statement or expression class in the
1234  /// AST.
1235  enum StmtCode {
1236  /// \brief A marker record that indicates that we are at the end
1237  /// of an expression.
1238  STMT_STOP = 128,
1239  /// \brief A NULL expression.
1241  /// \brief A reference to a previously [de]serialized Stmt record.
1243  /// \brief A NullStmt record.
1245  /// \brief A CompoundStmt record.
1247  /// \brief A CaseStmt record.
1249  /// \brief A DefaultStmt record.
1251  /// \brief A LabelStmt record.
1253  /// \brief An AttributedStmt record.
1255  /// \brief An IfStmt record.
1257  /// \brief A SwitchStmt record.
1259  /// \brief A WhileStmt record.
1261  /// \brief A DoStmt record.
1263  /// \brief A ForStmt record.
1265  /// \brief A GotoStmt record.
1267  /// \brief An IndirectGotoStmt record.
1269  /// \brief A ContinueStmt record.
1271  /// \brief A BreakStmt record.
1273  /// \brief A ReturnStmt record.
1275  /// \brief A DeclStmt record.
1277  /// \brief A CapturedStmt record.
1279  /// \brief A GCC-style AsmStmt record.
1281  /// \brief A MS-style AsmStmt record.
1283  /// \brief A PredefinedExpr record.
1285  /// \brief A DeclRefExpr record.
1287  /// \brief An IntegerLiteral record.
1289  /// \brief A FloatingLiteral record.
1291  /// \brief An ImaginaryLiteral record.
1293  /// \brief A StringLiteral record.
1295  /// \brief A CharacterLiteral record.
1297  /// \brief A ParenExpr record.
1299  /// \brief A ParenListExpr record.
1301  /// \brief A UnaryOperator record.
1303  /// \brief An OffsetOfExpr record.
1305  /// \brief A SizefAlignOfExpr record.
1307  /// \brief An ArraySubscriptExpr record.
1309  /// \brief A CallExpr record.
1311  /// \brief A MemberExpr record.
1313  /// \brief A BinaryOperator record.
1315  /// \brief A CompoundAssignOperator record.
1317  /// \brief A ConditionOperator record.
1319  /// \brief An ImplicitCastExpr record.
1321  /// \brief A CStyleCastExpr record.
1323  /// \brief A CompoundLiteralExpr record.
1325  /// \brief An ExtVectorElementExpr record.
1327  /// \brief An InitListExpr record.
1329  /// \brief A DesignatedInitExpr record.
1331  /// \brief A DesignatedInitUpdateExpr record.
1333  /// \brief An NoInitExpr record.
1335  /// \brief An ArrayInitLoopExpr record.
1337  /// \brief An ArrayInitIndexExpr record.
1339  /// \brief An ImplicitValueInitExpr record.
1341  /// \brief A VAArgExpr record.
1343  /// \brief An AddrLabelExpr record.
1345  /// \brief A StmtExpr record.
1347  /// \brief A ChooseExpr record.
1349  /// \brief A GNUNullExpr record.
1351  /// \brief A ShuffleVectorExpr record.
1353  /// \brief A ConvertVectorExpr record.
1355  /// \brief BlockExpr
1357  /// \brief A GenericSelectionExpr record.
1359  /// \brief A PseudoObjectExpr record.
1361  /// \brief An AtomicExpr record.
1363 
1364  // Objective-C
1365 
1366  /// \brief An ObjCStringLiteral record.
1368 
1372 
1373 
1374  /// \brief An ObjCEncodeExpr record.
1376  /// \brief An ObjCSelectorExpr record.
1378  /// \brief An ObjCProtocolExpr record.
1380  /// \brief An ObjCIvarRefExpr record.
1382  /// \brief An ObjCPropertyRefExpr record.
1384  /// \brief An ObjCSubscriptRefExpr record.
1386  /// \brief UNUSED
1388  /// \brief An ObjCMessageExpr record.
1390  /// \brief An ObjCIsa Expr record.
1392  /// \brief An ObjCIndirectCopyRestoreExpr record.
1394 
1395  /// \brief An ObjCForCollectionStmt record.
1397  /// \brief An ObjCAtCatchStmt record.
1399  /// \brief An ObjCAtFinallyStmt record.
1401  /// \brief An ObjCAtTryStmt record.
1403  /// \brief An ObjCAtSynchronizedStmt record.
1405  /// \brief An ObjCAtThrowStmt record.
1407  /// \brief An ObjCAutoreleasePoolStmt record.
1409  /// \brief An ObjCBoolLiteralExpr record.
1411  /// \brief An ObjCAvailabilityCheckExpr record.
1413 
1414  // C++
1415 
1416  /// \brief A CXXCatchStmt record.
1418  /// \brief A CXXTryStmt record.
1420  /// \brief A CXXForRangeStmt record.
1422 
1423  /// \brief A CXXOperatorCallExpr record.
1425  /// \brief A CXXMemberCallExpr record.
1427  /// \brief A CXXConstructExpr record.
1429  /// \brief A CXXInheritedCtorInitExpr record.
1431  /// \brief A CXXTemporaryObjectExpr record.
1433  /// \brief A CXXStaticCastExpr record.
1435  /// \brief A CXXDynamicCastExpr record.
1437  /// \brief A CXXReinterpretCastExpr record.
1439  /// \brief A CXXConstCastExpr record.
1441  /// \brief A CXXFunctionalCastExpr record.
1443  /// \brief A UserDefinedLiteral record.
1445  /// \brief A CXXStdInitializerListExpr record.
1447  /// \brief A CXXBoolLiteralExpr record.
1449  EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr
1450  EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr).
1451  EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type).
1452  EXPR_CXX_THIS, // CXXThisExpr
1453  EXPR_CXX_THROW, // CXXThrowExpr
1454  EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr
1455  EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr
1456  EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr
1457 
1458  EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr
1459  EXPR_CXX_NEW, // CXXNewExpr
1460  EXPR_CXX_DELETE, // CXXDeleteExpr
1461  EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr
1462 
1463  EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups
1464 
1465  EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr
1466  EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr
1467  EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr
1468  EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr
1469  EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr
1470 
1471  EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr
1472  EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr
1473 
1474  EXPR_OPAQUE_VALUE, // OpaqueValueExpr
1475  EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator
1476  EXPR_TYPE_TRAIT, // TypeTraitExpr
1477  EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr
1478 
1479  EXPR_PACK_EXPANSION, // PackExpansionExpr
1480  EXPR_SIZEOF_PACK, // SizeOfPackExpr
1481  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr
1482  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK,// SubstNonTypeTemplateParmPackExpr
1483  EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr
1484  EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr
1485  EXPR_CXX_FOLD, // CXXFoldExpr
1486 
1487  // CUDA
1488  EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr
1489 
1490  // OpenCL
1491  EXPR_ASTYPE, // AsTypeExpr
1492 
1493  // Microsoft
1494  EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr
1495  EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr
1496  EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr).
1497  EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type).
1498  STMT_SEH_LEAVE, // SEHLeaveStmt
1499  STMT_SEH_EXCEPT, // SEHExceptStmt
1500  STMT_SEH_FINALLY, // SEHFinallyStmt
1501  STMT_SEH_TRY, // SEHTryStmt
1502 
1503  // OpenMP directives
1552 
1553  // ARC
1554  EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr
1555 
1556  STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt
1557  EXPR_LAMBDA, // LambdaExpr
1563  };
1564 
1565  /// \brief The kinds of designators that can occur in a
1566  /// DesignatedInitExpr.
1568  /// \brief Field designator where only the field name is known.
1570  /// \brief Field designator where the field has been resolved to
1571  /// a declaration.
1573  /// \brief Array designator.
1575  /// \brief GNU array range designator.
1577  };
1578 
1579  /// \brief The different kinds of data that can occur in a
1580  /// CtorInitializer.
1586  };
1587 
1588  /// \brief Describes the redeclarations of a declaration.
1590  DeclID FirstID; // The ID of the first declaration
1591  unsigned Offset; // Offset into the array of redeclaration chains.
1592 
1594  const LocalRedeclarationsInfo &Y) {
1595  return X.FirstID < Y.FirstID;
1596  }
1597 
1599  const LocalRedeclarationsInfo &Y) {
1600  return X.FirstID > Y.FirstID;
1601  }
1602 
1604  const LocalRedeclarationsInfo &Y) {
1605  return X.FirstID <= Y.FirstID;
1606  }
1607 
1609  const LocalRedeclarationsInfo &Y) {
1610  return X.FirstID >= Y.FirstID;
1611  }
1612  };
1613 
1614  /// \brief Describes the categories of an Objective-C class.
1616  DeclID DefinitionID; // The ID of the definition
1617  unsigned Offset; // Offset into the array of category lists.
1618 
1619  friend bool operator<(const ObjCCategoriesInfo &X,
1620  const ObjCCategoriesInfo &Y) {
1621  return X.DefinitionID < Y.DefinitionID;
1622  }
1623 
1624  friend bool operator>(const ObjCCategoriesInfo &X,
1625  const ObjCCategoriesInfo &Y) {
1626  return X.DefinitionID > Y.DefinitionID;
1627  }
1628 
1629  friend bool operator<=(const ObjCCategoriesInfo &X,
1630  const ObjCCategoriesInfo &Y) {
1631  return X.DefinitionID <= Y.DefinitionID;
1632  }
1633 
1634  friend bool operator>=(const ObjCCategoriesInfo &X,
1635  const ObjCCategoriesInfo &Y) {
1636  return X.DefinitionID >= Y.DefinitionID;
1637  }
1638  };
1639 
1640  /// \brief A key used when looking up entities by \ref DeclarationName.
1641  ///
1642  /// Different \ref DeclarationNames are mapped to different keys, but the
1643  /// same key can occasionally represent multiple names (for names that
1644  /// contain types, in particular).
1646  typedef unsigned NameKind;
1647 
1648  NameKind Kind;
1649  uint64_t Data;
1650 
1651  public:
1652  DeclarationNameKey() : Kind(), Data() {}
1654 
1655  DeclarationNameKey(NameKind Kind, uint64_t Data)
1656  : Kind(Kind), Data(Data) {}
1657 
1658  NameKind getKind() const { return Kind; }
1659 
1661  assert(Kind == DeclarationName::Identifier ||
1664  return (IdentifierInfo *)Data;
1665  }
1667  assert(Kind == DeclarationName::ObjCZeroArgSelector ||
1670  return Selector(Data);
1671  }
1673  assert(Kind == DeclarationName::CXXOperatorName);
1674  return (OverloadedOperatorKind)Data;
1675  }
1676 
1677  /// Compute a fingerprint of this key for use in on-disk hash table.
1678  unsigned getHash() const;
1679 
1680  friend bool operator==(const DeclarationNameKey &A,
1681  const DeclarationNameKey &B) {
1682  return A.Kind == B.Kind && A.Data == B.Data;
1683  }
1684  };
1685 
1686  /// @}
1687  }
1688 } // end namespace clang
1689 
1690 namespace llvm {
1691  template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> {
1694  }
1697  }
1698  static unsigned
1700  return Key.getHash();
1701  }
1704  return L == R;
1705  }
1706  };
1707 }
1708 
1709 #endif
A PredefinedExpr record.
Definition: ASTBitCodes.h:1284
A FriendTemplateDecl record.
Definition: ASTBitCodes.h:1170
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1324
A NonTypeTemplateParmDecl record.
Definition: ASTBitCodes.h:1188
The ObjC &#39;SEL&#39; type.
Definition: ASTBitCodes.h:801
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
Definition: ASTBitCodes.h:1567
Record code for the preprocessor options table.
Definition: ASTBitCodes.h:322
BlockIDs
Describes the various kinds of blocks that occur within an AST file.
Definition: ASTBitCodes.h:210
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:166
Record code for potentially unused local typedef names.
Definition: ASTBitCodes.h:583
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:541
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1268
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:614
A PointerType record.
Definition: ASTBitCodes.h:859
CtorInitializerType
The different kinds of data that can occur in a CtorInitializer.
Definition: ASTBitCodes.h:1581
The &#39;_Float16&#39; type.
Definition: ASTBitCodes.h:833
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1344
The macro directives history for a particular identifier.
Definition: ASTBitCodes.h:655
The &#39;unsigned int&#39; type.
Definition: ASTBitCodes.h:757
The (signed) &#39;long long&#39; type.
Definition: ASTBitCodes.h:775
A CXXStaticCastExpr record.
Definition: ASTBitCodes.h:1434
ExtensionBlockRecordTypes
Record code for extension blocks.
Definition: ASTBitCodes.h:338
Record code for the source manager line table information, which stores information about #line direc...
Definition: ASTBitCodes.h:537
An AttributedStmt record.
Definition: ASTBitCodes.h:1254
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1438
The &#39;bool&#39; or &#39;_Bool&#39; type.
Definition: ASTBitCodes.h:749
An OMPThreadPrivateDecl record.
Definition: ASTBitCodes.h:1213
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Definition: Dominators.h:26
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1410
A structure for putting "fast"-unqualified QualTypes into a DenseMap.
Definition: ASTBitCodes.h:106
const unsigned NUM_PREDEF_TYPE_IDS
The number of predefined type IDs that are reserved for the PREDEF_TYPE_* constants.
Definition: ASTBitCodes.h:845
friend bool operator>(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1598
ControlRecordTypes
Record types that occur within the control block.
Definition: ASTBitCodes.h:265
C Language Family Type Representation.
uint32_t IdentID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:123
The &#39;unknown any&#39; placeholder type.
Definition: ASTBitCodes.h:803
An OMPDeclareReductionDecl record.
Definition: ASTBitCodes.h:1225
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1340
SourceManagerRecordTypes
Record types used within a source manager block.
Definition: ASTBitCodes.h:616
const unsigned int NUM_PREDEF_SELECTOR_IDS
The number of predefined selector IDs.
Definition: ASTBitCodes.h:145
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1320
A VarTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1182
unsigned Begin
Raw source location of beginning of range.
Definition: ASTBitCodes.h:168
Describes a source location entry (SLocEntry) for a macro expansion.
Definition: ASTBitCodes.h:633
An LValueReferenceType record.
Definition: ASTBitCodes.h:863
The placeholder type for builtin functions.
Definition: ASTBitCodes.h:817
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1424
Specifies the submodules that are imported by this submodule.
Definition: ASTBitCodes.h:693
A record that stores the set of declarations that are lexically stored within a given DeclContext...
Definition: ASTBitCodes.h:1117
Specifies an umbrella directory.
Definition: ASTBitCodes.h:690
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1432
uint32_t DeclID
An ID number that refers to a declaration in an AST file.
Definition: ASTBitCodes.h:63
A SubstTemplateTypeParmType record.
Definition: ASTBitCodes.h:901
A ObjCPropertyDecl record.
Definition: ASTBitCodes.h:1086
Record code for enabled OpenCL extensions.
Definition: ASTBitCodes.h:520
Record code for the module build directory.
Definition: ASTBitCodes.h:298
An ElaboratedType record.
Definition: ASTBitCodes.h:899
An UnresolvedUsingType record.
Definition: ASTBitCodes.h:903
static clang::serialization::DeclarationNameKey getTombstoneKey()
Definition: ASTBitCodes.h:1695
An IncompleteArrayType record.
Definition: ASTBitCodes.h:871
The internal &#39;__type_pack_element&#39; template.
Definition: ASTBitCodes.h:1031
Specifies a header that is part of the module but must be textually included.
Definition: ASTBitCodes.h:712
ARC&#39;s unbridged-cast placeholder type.
Definition: ASTBitCodes.h:813
The &#39;__int128_t&#39; type.
Definition: ASTBitCodes.h:789
A ClassTemplateDecl record.
Definition: ASTBitCodes.h:1172
A PragmaDetectMismatchDecl record.
Definition: ASTBitCodes.h:1223
The C++ &#39;char32_t&#39; type.
Definition: ASTBitCodes.h:795
An UnresolvedUsingTypenameDecl record.
Definition: ASTBitCodes.h:1145
uint32_t IdentifierID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:55
The internal &#39;__builtin_va_list&#39; typedef.
Definition: ASTBitCodes.h:1010
The stack of open #ifs/#ifdefs recorded in a preamble.
Definition: ASTBitCodes.h:612
Record code for #pragma pack options.
Definition: ASTBitCodes.h:609
A block with unhashed content.
Definition: ASTBitCodes.h:261
friend bool operator<(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1619
An OMPCapturedExprDecl record.
Definition: ASTBitCodes.h:1219
Record code for declarations associated with OpenCL extensions.
Definition: ASTBitCodes.h:604
A UsingShadowDecl record.
Definition: ASTBitCodes.h:1137
const unsigned int NUM_PREDEF_DECL_IDS
The number of declaration IDs that are predefined.
Definition: ASTBitCodes.h:1038
The value of the next COUNTER to dispense.
Definition: ASTBitCodes.h:445
A TemplateTemplateParmDecl record that stores an expanded template template parameter pack...
Definition: ASTBitCodes.h:1206
Specifies the umbrella header used to create this module, if any.
Definition: ASTBitCodes.h:684
Record code for header search information.
Definition: ASTBitCodes.h:514
Describes a source location entry (SLocEntry) for a buffer.
Definition: ASTBitCodes.h:622
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1428
Record code for the target options table.
Definition: ASTBitCodes.h:313
A TemplateTemplateParmDecl record.
Definition: ASTBitCodes.h:1190
Record code for the array of eagerly deserialized decls.
Definition: ASTBitCodes.h:416
A ObjCInterfaceDecl record.
Definition: ASTBitCodes.h:1070
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1352
A CXXConstructorDecl record for an inherited constructor.
Definition: ASTBitCodes.h:1159
const unsigned VERSION_MAJOR
AST file major version number supported by this version of Clang.
Definition: ASTBitCodes.h:39
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1304
One of these records is kept for each identifier that is lexed.
A macro directive exported by a module.
Definition: ASTBitCodes.h:659
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1406
Specifies a top-level header that falls into this (sub)module.
Definition: ASTBitCodes.h:688
The block containing comments.
Definition: ASTBitCodes.h:234
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1330
The Objective-C &#39;SEL&#39; type.
Definition: ASTBitCodes.h:992
static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R)
Definition: ASTBitCodes.h:1702
The &#39;char&#39; type, when it is signed.
Definition: ASTBitCodes.h:763
The &#39;unsigned long&#39; type.
Definition: ASTBitCodes.h:759
Specifies a header that has been explicitly excluded from this submodule.
Definition: ASTBitCodes.h:701
static SourceLocation getFromRawEncoding(unsigned Encoding)
Turn a raw encoding of a SourceLocation object into a real SourceLocation.
SourceLocation getBegin() const
Definition: ASTBitCodes.h:178
SpecialTypeIDs
The type IDs for special types constructed by semantic analysis.
Definition: ASTBitCodes.h:953
friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1629
Record code for the module map file that was used to build this AST file.
Definition: ASTBitCodes.h:295
An ExtVectorType record.
Definition: ASTBitCodes.h:877
Delete expressions that will be analyzed later.
Definition: ASTBitCodes.h:588
friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B)
Definition: ASTBitCodes.h:1680
An AttributedType record.
Definition: ASTBitCodes.h:923
An object-like macro definition.
Definition: ASTBitCodes.h:643
Describes one token.
Definition: ASTBitCodes.h:652
An AdjustedType record.
Definition: ASTBitCodes.h:935
A IndirectFieldDecl record.
Definition: ASTBitCodes.h:1200
Record code for the set of ext_vector type names.
Definition: ASTBitCodes.h:460
Specifies the submodules that are re-exported from this submodule.
Definition: ASTBitCodes.h:696
uint32_t SubmoduleID
An ID number that refers to a submodule in a module file.
Definition: ASTBitCodes.h:160
The Objective-C &#39;id&#39; type.
Definition: ASTBitCodes.h:989
An AccessSpecDecl record.
Definition: ASTBitCodes.h:1165
const unsigned NumSpecialTypeIDs
The number of special type IDs.
Definition: ASTBitCodes.h:973
Describes a blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:627
Record code for the language options table.
Definition: ASTBitCodes.h:310
Specifies a conflict with another module.
Definition: ASTBitCodes.h:707
unsigned getHash() const
Compute a fingerprint of this key for use in on-disk hash table.
Definition: ASTReader.cpp:999
The signed 128-bit integer type.
Definition: ASTBitCodes.h:1001
A ConstructorUsingShadowDecl record.
Definition: ASTBitCodes.h:1139
A UnaryTransformType record.
Definition: ASTBitCodes.h:929
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1242
A UsingDirecitveDecl record.
Definition: ASTBitCodes.h:1141
An ObjCObjectType record.
Definition: ASTBitCodes.h:907
A ConstantArrayType record.
Definition: ASTBitCodes.h:869
Record code for #pragma optimize options.
Definition: ASTBitCodes.h:580
uint32_t BitOffset
Offset in the AST file.
Definition: ASTBitCodes.h:172
A DecompositionDecl record.
Definition: ASTBitCodes.h:1100
Specifies a header that is private to this submodule but must be textually included.
Definition: ASTBitCodes.h:715
Record code for pending implicit instantiations.
Definition: ASTBitCodes.h:490
The internal &#39;__make_integer_seq&#39; template.
Definition: ASTBitCodes.h:1022
uint32_t GlobalMacroID
A global ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:132
An ExtQualType record.
Definition: ASTBitCodes.h:855
Record code for floating point #pragma options.
Definition: ASTBitCodes.h:517
CommentRecordTypes
Record types used within a comments block.
Definition: ASTBitCodes.h:725
Record code for the set of known namespaces, which are used for typo correction.
Definition: ASTBitCodes.h:527
Record code for an array of all of the (sub)modules that were imported by the AST file...
Definition: ASTBitCodes.h:548
The first record ID allocated to the extensions themselves.
Definition: ASTBitCodes.h:343
The &#39;unsigned short&#39; type.
Definition: ASTBitCodes.h:755
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1238
A ClassTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1174
A BlockPointerType record.
Definition: ASTBitCodes.h:861
uint32_t getIndex() const
Definition: ASTBitCodes.h:89
A MemberPointerType record.
Definition: ASTBitCodes.h:867
void * getAsOpaquePtr() const
Definition: Type.h:662
A DependentSizedExtVectorType record.
Definition: ASTBitCodes.h:943
The type of &#39;nullptr&#39;.
Definition: ASTBitCodes.h:791
Record code for the table of offsets into the block of source-location information.
Definition: ASTBitCodes.h:449
A SubstTemplateTypeParmPackType record.
Definition: ASTBitCodes.h:925
Objective-C "id" redefinition type.
Definition: ASTBitCodes.h:963
TypeCode
Record codes for each kind of type.
Definition: ASTBitCodes.h:853
PPEntityOffset(SourceRange R, uint32_t BitOffset)
Definition: ASTBitCodes.h:174
The block containing information about the source manager.
Definition: ASTBitCodes.h:217
The placeholder type for OpenMP array section.
Definition: ASTBitCodes.h:829
A VariableArrayType record.
Definition: ASTBitCodes.h:873
unsigned getLocalFastQualifiers() const
Definition: Type.h:644
const unsigned int NUM_PREDEF_PP_ENTITY_IDS
The number of predefined preprocessed entity IDs.
Definition: ASTBitCodes.h:206
ASTRecordTypes
Record types that occur within the AST block itself.
Definition: ASTBitCodes.h:354
Defines the major attributes of a submodule, including its name and parent.
Definition: ASTBitCodes.h:681
The &#39;__uint128_t&#39; type.
Definition: ASTBitCodes.h:787
OverloadedOperatorKind getOperatorKind() const
Definition: ASTBitCodes.h:1672
A CXXDeductionGuideDecl record.
Definition: ASTBitCodes.h:1153
friend bool operator>(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1624
A StaticAssertDecl record.
Definition: ASTBitCodes.h:1194
A VarTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1180
Record code for the table of offsets of each macro ID.
Definition: ASTBitCodes.h:565
An ObjCTypeParamDecl record.
Definition: ASTBitCodes.h:1217
A record containing CXXBaseSpecifiers.
Definition: ASTBitCodes.h:1196
Specifies some declarations with initializers that must be emitted to initialize the module...
Definition: ASTBitCodes.h:718
An TemplateSpecializationType record.
Definition: ASTBitCodes.h:911
An ObjCObjectPointerType record.
Definition: ASTBitCodes.h:895
An ObjCInterfaceType record.
Definition: ASTBitCodes.h:893
Describes a zlib-compressed blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:630
A ObjCCategoryImplDecl record.
Definition: ASTBitCodes.h:1080
SourceLocation getEnd() const
Definition: ASTBitCodes.h:181
Record code for the array of VTable uses.
Definition: ASTBitCodes.h:470
The &#39;char&#39; type, when it is unsigned.
Definition: ASTBitCodes.h:751
The directory that the PCH was originally created in.
Definition: ASTBitCodes.h:280
A ObjCPropertyImplDecl record.
Definition: ASTBitCodes.h:1088
const FunctionProtoType * T
The placeholder type for overloaded function sets.
Definition: ASTBitCodes.h:783
Record code for the table of offsets to entries in the preprocessing record.
Definition: ASTBitCodes.h:467
Field designator where only the field name is known.
Definition: ASTBitCodes.h:1569
uint32_t LocalMacroID
A local to a module ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:136
A CXXConstructorDecl record.
Definition: ASTBitCodes.h:1157
The OpenCL &#39;half&#39; / ARM NEON __fp16 type.
Definition: ASTBitCodes.h:811
The block containing the detailed preprocessing record.
Definition: ASTBitCodes.h:228
Record code for #pragma diagnostic mappings.
Definition: ASTBitCodes.h:334
A CXXStdInitializerListExpr record.
Definition: ASTBitCodes.h:1446
A record containing CXXCtorInitializers.
Definition: ASTBitCodes.h:1198
A VarTemplateDecl record.
Definition: ASTBitCodes.h:1178
Record code for the original file that was used to generate the AST file, including both its file ID ...
Definition: ASTBitCodes.h:277
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1308
The &#39;long double&#39; type.
Definition: ASTBitCodes.h:781
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1336
Record code for the diagnostic options table.
Definition: ASTBitCodes.h:331
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1360
A CXXDestructorDecl record.
Definition: ASTBitCodes.h:1161
A FunctionProtoType record.
Definition: ASTBitCodes.h:881
A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack...
Definition: ASTBitCodes.h:1203
Describes a source location entry (SLocEntry) for a file.
Definition: ASTBitCodes.h:619
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1393
A block containing a module file extension.
Definition: ASTBitCodes.h:255
static bool isEqual(QualType A, QualType B)
Definition: ASTBitCodes.h:107
A NamespaceAliasDecl record.
Definition: ASTBitCodes.h:1131
Record code for an update to a decl context&#39;s lookup table.
Definition: ASTBitCodes.h:497
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:591
const unsigned VERSION_MINOR
AST file minor version number supported by this version of Clang.
Definition: ASTBitCodes.h:49
friend bool operator>=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1608
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1332
a DecltypeType record.
Definition: ASTBitCodes.h:897
friend bool operator<(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1593
An ImplicitParamDecl record.
Definition: ASTBitCodes.h:1096
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1412
An EnumConstantDecl record.
Definition: ASTBitCodes.h:1064
Record code for the table of offsets of each identifier ID.
Definition: ASTBitCodes.h:387
Record code for undefined but used functions and variables that need a definition in this TU...
Definition: ASTBitCodes.h:574
A DependentNameType record.
Definition: ASTBitCodes.h:913
do v
Definition: arm_acle.h:78
__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.h:82
An ImportDecl recording a module import.
Definition: ASTBitCodes.h:1211
A ObjCCategoryDecl record.
Definition: ASTBitCodes.h:1078
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1396
Record code for the identifier table.
Definition: ASTBitCodes.h:406
A ObjCCompatibleAliasDecl record.
Definition: ASTBitCodes.h:1084
The placeholder type for bound member functions.
Definition: ASTBitCodes.h:805
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1282
friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1634
const unsigned int NUM_PREDEF_IDENT_IDS
The number of predefined identifier IDs.
Definition: ASTBitCodes.h:126
The Objective-C &#39;Class&#39; type.
Definition: ASTBitCodes.h:995
The &#39;unsigned long long&#39; type.
Definition: ASTBitCodes.h:761
Record code for the set of source location entries that need to be preloaded by the AST reader...
Definition: ASTBitCodes.h:457
The list of delegating constructor declarations.
Definition: ASTBitCodes.h:523
Record code for types associated with OpenCL extensions.
Definition: ASTBitCodes.h:601
The width of the "fast" qualifier mask.
Definition: Type.h:159
An UnresolvedUsingValueDecl record.
Definition: ASTBitCodes.h:1143
Kind
Encodes a location in the source.
A record that stores the set of declarations that are visible from a given DeclContext.
Definition: ASTBitCodes.h:1125
Specifies a library or framework to link against.
Definition: ASTBitCodes.h:703
Record code for file ID of the file or buffer that was used to generate the AST file.
Definition: ASTBitCodes.h:284
Specifies a header that falls into this (sub)module.
Definition: ASTBitCodes.h:686
A ComplexType record.
Definition: ASTBitCodes.h:857
Record code for special CUDA declarations.
Definition: ASTBitCodes.h:511
A list of "interesting" identifiers.
Definition: ASTBitCodes.h:570
The block of configuration options, used to check that a module is being used in a configuration comp...
Definition: ASTBitCodes.h:252
PredefinedTypeIDs
Predefined type IDs.
Definition: ASTBitCodes.h:743
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:392
The &#39;unsigned char&#39; type.
Definition: ASTBitCodes.h:753
Metadata describing this particular extension.
Definition: ASTBitCodes.h:340
An ObjCTypeParamType record.
Definition: ASTBitCodes.h:939
The (signed) &#39;long&#39; type.
Definition: ASTBitCodes.h:773
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1442
Record code for the offsets of each decl.
Definition: ASTBitCodes.h:379
Metadata for submodules as a whole.
Definition: ASTBitCodes.h:678
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1375
A TypeOfExprType record.
Definition: ASTBitCodes.h:885
Record code for late parsed template functions.
Definition: ASTBitCodes.h:577
The (signed) &#39;short&#39; type.
Definition: ASTBitCodes.h:769
A TemplateTypeParmDecl record.
Definition: ASTBitCodes.h:1186
The internal &#39;instancetype&#39; typedef.
Definition: ASTBitCodes.h:1007
OptionsRecordTypes
Record types that occur within the options block inside the control block.
Definition: ASTBitCodes.h:303
SourceLocation getLocation() const
Definition: ASTBitCodes.h:200
IdentifierInfo * getIdentifier() const
Definition: ASTBitCodes.h:1660
Describes the categories of an Objective-C class.
Definition: ASTBitCodes.h:1615
uint32_t MacroID
An ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:129
The AST block, which acts as a container around the full AST block.
Definition: ASTBitCodes.h:213
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1391
A DeducedTemplateSpecializationType record.
Definition: ASTBitCodes.h:941
SubmoduleRecordTypes
Record types used within a submodule description block.
Definition: ASTBitCodes.h:676
Objective-C "SEL" redefinition type.
Definition: ASTBitCodes.h:967
const unsigned int DECL_UPDATES
Record of updates for a declaration that was modified after being deserialized.
Definition: ASTBitCodes.h:1042
UnhashedControlBlockRecordTypes
Record codes for the unhashed control block.
Definition: ASTBitCodes.h:326
An InjectedClassNameType record.
Definition: ASTBitCodes.h:905
Record code for the extra statistics we gather while generating an AST file.
Definition: ASTBitCodes.h:429
A NamespaceDecl record.
Definition: ASTBitCodes.h:1129
An AtomicExpr record.
Definition: ASTBitCodes.h:1362
uint32_t BitOffset
Offset in the AST file.
Definition: ASTBitCodes.h:191
static QualType getFromOpaquePtr(const void *Ptr)
Definition: Type.h:663
The &#39;signed char&#39; type.
Definition: ASTBitCodes.h:765
Record code for the signature that identifiers this AST file.
Definition: ASTBitCodes.h:328
Record code for referenced selector pool.
Definition: ASTBitCodes.h:475
Record code for the set of non-builtin, special types.
Definition: ASTBitCodes.h:425
A ObjCProtocolDecl record.
Definition: ASTBitCodes.h:1072
friend bool operator<=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1603
The ObjC &#39;id&#39; type.
Definition: ASTBitCodes.h:797
Record code for the list of other AST files imported by this AST file.
Definition: ASTBitCodes.h:272
A CXXConversionDecl record.
Definition: ASTBitCodes.h:1163
Describes a macro definition within the preprocessing record.
Definition: ASTBitCodes.h:668
The internal &#39;__NSConstantString&#39; typedef.
Definition: ASTBitCodes.h:1025
Record code for the module name.
Definition: ASTBitCodes.h:291
Dataflow Directional Tag Classes.
An InitListExpr record.
Definition: ASTBitCodes.h:1328
Describes an inclusion directive within the preprocessing record.
Definition: ASTBitCodes.h:672
The internal &#39;__builtin_ms_va_list&#39; typedef.
Definition: ASTBitCodes.h:1016
Record code for a file sorted array of DeclIDs in a module.
Definition: ASTBitCodes.h:544
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1448
Record code for the array of Objective-C categories (including extensions).
Definition: ASTBitCodes.h:558
Specifies a configuration macro for this module.
Definition: ASTBitCodes.h:705
PreprocessorDetailRecordTypes
Record types used within a preprocessor detail block.
Definition: ASTBitCodes.h:663
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.
Definition: OperatorKinds.h:22
TypeID asTypeID(unsigned FastQuals) const
Definition: ASTBitCodes.h:90
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1326
Record code for the array of unused file scoped decls.
Definition: ASTBitCodes.h:463
A FunctionNoProtoType record.
Definition: ASTBitCodes.h:879
A ClassTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1176
static clang::serialization::DeclarationNameKey getEmptyKey()
Definition: ASTBitCodes.h:1692
DeclCode
Record codes for each kind of declaration.
Definition: ASTBitCodes.h:1054
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1408
DeclarationName - The name of a declaration.
A ClassScopeFunctionSpecializationDecl record a class scope function specialization.
Definition: ASTBitCodes.h:1209
Record code for the Objective-C method pool,.
Definition: ASTBitCodes.h:441
Specifies a header that is private to this submodule.
Definition: ASTBitCodes.h:709
A LinkageSpecDecl record.
Definition: ASTBitCodes.h:1147
Describes a macro expansion within the preprocessing record.
Definition: ASTBitCodes.h:665
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1436
An EnumType record.
Definition: ASTBitCodes.h:891
An RValueReferenceType record.
Definition: ASTBitCodes.h:865
DeclarationNameKey(NameKind Kind, uint64_t Data)
Definition: ASTBitCodes.h:1655
An AtomicType record.
Definition: ASTBitCodes.h:931
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1400
uint32_t CXXCtorInitializersID
An ID number that refers to a list of CXXCtorInitializers in an AST file.
Definition: ASTBitCodes.h:153
The placeholder type for dependent types.
Definition: ASTBitCodes.h:785
Number of unmatched #pragma clang cuda_force_host_device begin directives we&#39;ve seen.
Definition: ASTBitCodes.h:598
A PragmaCommentDecl record.
Definition: ASTBitCodes.h:1221
Record code for the table of offsets into the Objective-C method pool.
Definition: ASTBitCodes.h:438
A DependentSizedArrayType record.
Definition: ASTBitCodes.h:917
Record code for the remapping information used to relate loaded modules to the various offsets and ID...
Definition: ASTBitCodes.h:533
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1404
A key used when looking up entities by DeclarationName.
Definition: ASTBitCodes.h:1645
Record code for declarations that Sema keeps references of.
Definition: ASTBitCodes.h:484
const unsigned int NUM_PREDEF_MACRO_IDS
The number of predefined macro IDs.
Definition: ASTBitCodes.h:139
Offsets into the input-files block where input files reside.
Definition: ASTBitCodes.h:288
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1426
PreprocessorRecordTypes
Record types used within a preprocessor block.
Definition: ASTBitCodes.h:637
The block containing the submodule structure.
Definition: ASTBitCodes.h:231
void setLocation(SourceLocation L)
Definition: ASTBitCodes.h:197
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1354
unsigned End
Raw source location of end of range.
Definition: ASTBitCodes.h:170
A TypedefType record.
Definition: ASTBitCodes.h:883
X
Add a minimal nested name specifier fixit hint to allow lookup of a tag name from an outer enclosing ...
Definition: SemaDecl.cpp:13161
DeclOffset(SourceLocation Loc, uint32_t BitOffset)
Definition: ASTBitCodes.h:194
uint32_t PreprocessedEntityID
An ID number that refers to an entity in the detailed preprocessing record.
Definition: ASTBitCodes.h:157
GNU array range designator.
Definition: ASTBitCodes.h:1576
The C++ &#39;char16_t&#39; type.
Definition: ASTBitCodes.h:793
An ArrayInitIndexExpr record.
Definition: ASTBitCodes.h:1338
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1280
uint32_t SelectorID
An ID number that refers to an ObjC selector in an AST file.
Definition: ASTBitCodes.h:142
An TemplateTypeParmType record.
Definition: ASTBitCodes.h:909
Record code for the filesystem options table.
Definition: ASTBitCodes.h:316
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1398
A ObjCImplementationDecl record.
Definition: ASTBitCodes.h:1082
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:1572
static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key)
Definition: ASTBitCodes.h:1699
A ObjCAtDefsFieldDecl record.
Definition: ASTBitCodes.h:1076
Record code for the offsets of each type.
Definition: ASTBitCodes.h:367
A DependentAddressSpaceType record.
Definition: ASTBitCodes.h:945
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1430
The block containing the definitions of all of the types and decls used within the AST file...
Definition: ASTBitCodes.h:225
The internal &#39;__va_list_tag&#39; struct, if any.
Definition: ASTBitCodes.h:1013
const unsigned int LOCAL_REDECLARATIONS
Record code for a list of local redeclarations of a declaration.
Definition: ASTBitCodes.h:1046
A TypeAliasDecl record.
Definition: ASTBitCodes.h:1058
Specifies the name of the module that will eventually re-export the entities in this module...
Definition: ASTBitCodes.h:721
Describes the redeclarations of a declaration.
Definition: ASTBitCodes.h:1589
The (signed) &#39;int&#39; type.
Definition: ASTBitCodes.h:771
Specifies a required feature.
Definition: ASTBitCodes.h:698
An ExportDecl record.
Definition: ASTBitCodes.h:1149
Record for offsets of DECL_UPDATES records for declarations that were modified after being deserializ...
Definition: ASTBitCodes.h:501
The C++ &#39;wchar_t&#39; type.
Definition: ASTBitCodes.h:767
The ObjC &#39;Class&#39; type.
Definition: ASTBitCodes.h:799
A FunctionTemplateDecl record.
Definition: ASTBitCodes.h:1184
A TypeAliasTemplateDecl record.
Definition: ASTBitCodes.h:1192
Record code for weak undeclared identifiers.
Definition: ASTBitCodes.h:487
The block containing information about the preprocessor.
Definition: ASTBitCodes.h:221
A DecayedType record.
Definition: ASTBitCodes.h:933
uint32_t TypeID
An ID number that refers to a type in an AST file.
Definition: ASTBitCodes.h:80
Record code for the headers search options table.
Definition: ASTBitCodes.h:319
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:268
uint32_t CXXBaseSpecifiersID
An ID number that refers to a set of CXXBaseSpecifiers in an AST file.
Definition: ASTBitCodes.h:149
The block of input files, which were used as inputs to create this AST file.
Definition: ASTBitCodes.h:245
The internal &#39;__NSConstantString&#39; tag type.
Definition: ASTBitCodes.h:1028
static TypeIdx fromTypeID(TypeID ID)
Definition: ASTBitCodes.h:96
InputFileRecordTypes
Record types that occur within the input-files block inside the control block.
Definition: ASTBitCodes.h:348
A function-like macro definition.
Definition: ASTBitCodes.h:648
The Objective-C &#39;Protocol&#39; type.
Definition: ASTBitCodes.h:998
The control block, which contains all of the information that needs to be validated prior to committi...
Definition: ASTBitCodes.h:239
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1235
PredefinedDeclIDs
Predefined declaration IDs.
Definition: ASTBitCodes.h:981
Record code for an update to the TU&#39;s lexically contained declarations.
Definition: ASTBitCodes.h:479
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:187
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1358
A type index; the type ID with the qualifier bits removed.
Definition: ASTBitCodes.h:83
unsigned Loc
Raw source location.
Definition: ASTBitCodes.h:189
Objective-C "Class" redefinition type.
Definition: ASTBitCodes.h:965
A PackExpansionType record.
Definition: ASTBitCodes.h:921
The pseudo-object placeholder type.
Definition: ASTBitCodes.h:815
const unsigned int NUM_PREDEF_SUBMODULE_IDS
The number of predefined submodule IDs.
Definition: ASTBitCodes.h:163
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:594
A DependentTemplateSpecializationType record.
Definition: ASTBitCodes.h:915
Record code for the array of tentative definitions.
Definition: ASTBitCodes.h:432
The &#39;__float128&#39; type.
Definition: ASTBitCodes.h:831