clang  3.9.0
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.
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  }
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 
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) { }
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 
258  /// \brief Record types that occur within the control block.
260  /// \brief AST file metadata, including the AST file version number
261  /// and information about the compiler used to build this AST file.
262  METADATA = 1,
263 
264  /// \brief Record code for the list of other AST files imported by
265  /// this AST file.
267 
268  /// \brief Record code for the original file that was used to
269  /// generate the AST file, including both its file ID and its
270  /// name.
272 
273  /// \brief The directory that the PCH was originally created in.
275 
276  /// \brief Record code for file ID of the file or buffer that was used to
277  /// generate the AST file.
279 
280  /// \brief Offsets into the input-files block where input files
281  /// reside.
283 
284  /// \brief Record code for the module name.
286 
287  /// \brief Record code for the module map file that was used to build this
288  /// AST file.
290 
291  /// \brief Record code for the signature that identifiers this AST file.
293 
294  /// \brief Record code for the module build directory.
296  };
297 
298  /// \brief Record types that occur within the options block inside
299  /// the control block.
301  /// \brief Record code for the language options table.
302  ///
303  /// The record with this code contains the contents of the
304  /// LangOptions structure. We serialize the entire contents of
305  /// the structure, and let the reader decide which options are
306  /// actually important to check.
308 
309  /// \brief Record code for the target options table.
311 
312  /// \brief Record code for the diagnostic 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  /// \brief Record code for extension blocks.
327  /// Metadata describing this particular extension.
329 
330  /// The first record ID allocated to the extensions themselves.
332  };
333 
334  /// \brief Record types that occur within the input-files block
335  /// inside the control block.
337  /// \brief An input file.
339  };
340 
341  /// \brief Record types that occur within the AST block itself.
343  /// \brief Record code for the offsets of each type.
344  ///
345  /// The TYPE_OFFSET constant describes the record that occurs
346  /// within the AST block. The record itself is an array of offsets that
347  /// point into the declarations and types block (identified by
348  /// DECLTYPES_BLOCK_ID). The index into the array is based on the ID
349  /// of a type. For a given type ID @c T, the lower three bits of
350  /// @c T are its qualifiers (const, volatile, restrict), as in
351  /// the QualType class. The upper bits, after being shifted and
352  /// subtracting NUM_PREDEF_TYPE_IDS, are used to index into the
353  /// TYPE_OFFSET block to determine the offset of that type's
354  /// corresponding record within the DECLTYPES_BLOCK_ID block.
356 
357  /// \brief Record code for the offsets of each decl.
358  ///
359  /// The DECL_OFFSET constant describes the record that occurs
360  /// within the block identified by DECL_OFFSETS_BLOCK_ID within
361  /// the AST block. The record itself is an array of offsets that
362  /// point into the declarations and types block (identified by
363  /// DECLTYPES_BLOCK_ID). The declaration ID is an index into this
364  /// record, after subtracting one to account for the use of
365  /// declaration ID 0 for a NULL declaration pointer. Index 0 is
366  /// reserved for the translation unit declaration.
368 
369  /// \brief Record code for the table of offsets of each
370  /// identifier ID.
371  ///
372  /// The offset table contains offsets into the blob stored in
373  /// the IDENTIFIER_TABLE record. Each offset points to the
374  /// NULL-terminated string that corresponds to that identifier.
376 
377  /// \brief This is so that older clang versions, before the introduction
378  /// of the control block, can read and reject the newer PCH format.
379  /// *DON'T CHANGE THIS NUMBER*.
381 
382  /// \brief Record code for the identifier table.
383  ///
384  /// The identifier table is a simple blob that contains
385  /// NULL-terminated strings for all of the identifiers
386  /// referenced by the AST file. The IDENTIFIER_OFFSET table
387  /// contains the mapping from identifier IDs to the characters
388  /// in this blob. Note that the starting offsets of all of the
389  /// identifiers are odd, so that, when the identifier offset
390  /// table is loaded in, we can use the low bit to distinguish
391  /// between offsets (for unresolved identifier IDs) and
392  /// IdentifierInfo pointers (for already-resolved identifier
393  /// IDs).
395 
396  /// \brief Record code for the array of eagerly deserialized decls.
397  ///
398  /// The AST file contains a list of all of the declarations that should be
399  /// eagerly deserialized present within the parsed headers, stored as an
400  /// array of declaration IDs. These declarations will be
401  /// reported to the AST consumer after the AST file has been
402  /// read, since their presence can affect the semantics of the
403  /// program (e.g., for code generation).
405 
406  /// \brief Record code for the set of non-builtin, special
407  /// types.
408  ///
409  /// This record contains the type IDs for the various type nodes
410  /// that are constructed during semantic analysis (e.g.,
411  /// __builtin_va_list). The SPECIAL_TYPE_* constants provide
412  /// offsets into this record.
414 
415  /// \brief Record code for the extra statistics we gather while
416  /// generating an AST file.
418 
419  /// \brief Record code for the array of tentative definitions.
421 
422  // ID 10 used to be for a list of extern "C" declarations.
423 
424  /// \brief Record code for the table of offsets into the
425  /// Objective-C method pool.
427 
428  /// \brief Record code for the Objective-C method pool,
430 
431  /// \brief The value of the next __COUNTER__ to dispense.
432  /// [PP_COUNTER_VALUE, Val]
434 
435  /// \brief Record code for the table of offsets into the block
436  /// of source-location information.
438 
439  /// \brief Record code for the set of source location entries
440  /// that need to be preloaded by the AST reader.
441  ///
442  /// This set contains the source location entry for the
443  /// predefines buffer and for any file entries that need to be
444  /// preloaded.
446 
447  /// \brief Record code for the set of ext_vector type names.
449 
450  /// \brief Record code for the array of unused file scoped decls.
452 
453  /// \brief Record code for the table of offsets to entries in the
454  /// preprocessing record.
456 
457  /// \brief Record code for the array of VTable uses.
459 
460  // ID 20 used to be for a list of dynamic classes.
461 
462  /// \brief Record code for referenced selector pool.
464 
465  /// \brief Record code for an update to the TU's lexically contained
466  /// declarations.
468 
469  // ID 23 used to be for a list of local redeclarations.
470 
471  /// \brief Record code for declarations that Sema keeps references of.
473 
474  /// \brief Record code for weak undeclared identifiers.
476 
477  /// \brief Record code for pending implicit instantiations.
479 
480  // ID 27 used to be for a list of replacement decls.
481 
482  /// \brief Record code for an update to a decl context's lookup table.
483  ///
484  /// In practice, this should only be used for the TU and namespaces.
486 
487  /// \brief Record for offsets of DECL_UPDATES records for declarations
488  /// that were modified after being deserialized and need updates.
490 
491  // ID 30 used to be a decl update record. These are now in the DECLTYPES
492  // block.
493 
494  // ID 31 used to be a list of offsets to DECL_CXX_BASE_SPECIFIERS records.
495 
496  /// \brief Record code for \#pragma diagnostic mappings.
498 
499  /// \brief Record code for special CUDA declarations.
501 
502  /// \brief Record code for header search information.
504 
505  /// \brief Record code for floating point \#pragma options.
507 
508  /// \brief Record code for enabled OpenCL extensions.
510 
511  /// \brief The list of delegating constructor declarations.
513 
514  /// \brief Record code for the set of known namespaces, which are used
515  /// for typo correction.
517 
518  /// \brief Record code for the remapping information used to relate
519  /// loaded modules to the various offsets and IDs(e.g., source location
520  /// offests, declaration and type IDs) that are used in that module to
521  /// refer to other modules.
523 
524  /// \brief Record code for the source manager line table information,
525  /// which stores information about \#line directives.
527 
528  /// \brief Record code for map of Objective-C class definition IDs to the
529  /// ObjC categories in a module that are attached to that class.
531 
532  /// \brief Record code for a file sorted array of DeclIDs in a module.
534 
535  /// \brief Record code for an array of all of the (sub)modules that were
536  /// imported by the AST file.
538 
539  // ID 44 used to be a table of merged canonical declarations.
540  // ID 45 used to be a list of declaration IDs of local redeclarations.
541 
542  /// \brief Record code for the array of Objective-C categories (including
543  /// extensions).
544  ///
545  /// This array can only be interpreted properly using the Objective-C
546  /// categories map.
548 
549  /// \brief Record code for the table of offsets of each macro ID.
550  ///
551  /// The offset table contains offsets into the blob stored in
552  /// the preprocessor block. Each offset points to the corresponding
553  /// macro definition.
555 
556  /// \brief A list of "interesting" identifiers. Only used in C++ (where we
557  /// don't normally do lookups into the serialized identifier table). These
558  /// are eagerly deserialized.
560 
561  /// \brief Record code for undefined but used functions and variables that
562  /// need a definition in this TU.
564 
565  /// \brief Record code for late parsed template functions.
567 
568  /// \brief Record code for \#pragma optimize options.
570 
571  /// \brief Record code for potentially unused local typedef names.
573 
574  // ID 53 used to be a table of constructor initializer records.
575 
576  /// \brief Delete expressions that will be analyzed later.
578 
579  /// \brief Record code for \#pragma ms_struct options.
581 
582  /// \brief Record code for \#pragma ms_struct options.
584  };
585 
586  /// \brief Record types used within a source manager block.
588  /// \brief Describes a source location entry (SLocEntry) for a
589  /// file.
591  /// \brief Describes a source location entry (SLocEntry) for a
592  /// buffer.
594  /// \brief Describes a blob that contains the data for a buffer
595  /// entry. This kind of record always directly follows a
596  /// SM_SLOC_BUFFER_ENTRY record or a SM_SLOC_FILE_ENTRY with an
597  /// overridden buffer.
599  /// \brief Describes a zlib-compressed blob that contains the data for
600  /// a buffer entry.
602  /// \brief Describes a source location entry (SLocEntry) for a
603  /// macro expansion.
605  };
606 
607  /// \brief Record types used within a preprocessor block.
609  // The macros in the PP section are a PP_MACRO_* instance followed by a
610  // list of PP_TOKEN instances for each token in the definition.
611 
612  /// \brief An object-like macro definition.
613  /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
615 
616  /// \brief A function-like macro definition.
617  /// [PP_MACRO_FUNCTION_LIKE, <ObjectLikeStuff>, IsC99Varargs,
618  /// IsGNUVarars, NumArgs, ArgIdentInfoID* ]
620 
621  /// \brief Describes one token.
622  /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags]
623  PP_TOKEN = 3,
624 
625  /// \brief The macro directives history for a particular identifier.
627 
628  /// \brief A macro directive exported by a module.
629  /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*]
631  };
632 
633  /// \brief Record types used within a preprocessor detail block.
635  /// \brief Describes a macro expansion within the preprocessing record.
637 
638  /// \brief Describes a macro definition within the preprocessing record.
640 
641  /// \brief Describes an inclusion directive within the preprocessing
642  /// record.
644  };
645 
646  /// \brief Record types used within a submodule description block.
648  /// \brief Metadata for submodules as a whole.
650  /// \brief Defines the major attributes of a submodule, including its
651  /// name and parent.
653  /// \brief Specifies the umbrella header used to create this module,
654  /// if any.
656  /// \brief Specifies a header that falls into this (sub)module.
658  /// \brief Specifies a top-level header that falls into this (sub)module.
660  /// \brief Specifies an umbrella directory.
662  /// \brief Specifies the submodules that are imported by this
663  /// submodule.
665  /// \brief Specifies the submodules that are re-exported from this
666  /// submodule.
668  /// \brief Specifies a required feature.
670  /// \brief Specifies a header that has been explicitly excluded
671  /// from this submodule.
673  /// \brief Specifies a library or framework to link against.
675  /// \brief Specifies a configuration macro for this module.
677  /// \brief Specifies a conflict with another module.
679  /// \brief Specifies a header that is private to this submodule.
681  /// \brief Specifies a header that is part of the module but must be
682  /// textually included.
684  /// \brief Specifies a header that is private to this submodule but
685  /// must be textually included.
687  };
688 
689  /// \brief Record types used within a comments block.
692  };
693 
694  /// \defgroup ASTAST AST file AST constants
695  ///
696  /// The constants in this group describe various components of the
697  /// abstract syntax tree within an AST file.
698  ///
699  /// @{
700 
701  /// \brief Predefined type IDs.
702  ///
703  /// These type IDs correspond to predefined types in the AST
704  /// context, such as built-in types (int) and special place-holder
705  /// types (the <overload> and <dependent> type markers). Such
706  /// types are never actually serialized, since they will be built
707  /// by the AST context when it is created.
709  /// \brief The NULL type.
711  /// \brief The void type.
713  /// \brief The 'bool' or '_Bool' type.
715  /// \brief The 'char' type, when it is unsigned.
717  /// \brief The 'unsigned char' type.
719  /// \brief The 'unsigned short' type.
721  /// \brief The 'unsigned int' type.
723  /// \brief The 'unsigned long' type.
725  /// \brief The 'unsigned long long' type.
727  /// \brief The 'char' type, when it is signed.
729  /// \brief The 'signed char' type.
731  /// \brief The C++ 'wchar_t' type.
733  /// \brief The (signed) 'short' type.
735  /// \brief The (signed) 'int' type.
737  /// \brief The (signed) 'long' type.
739  /// \brief The (signed) 'long long' type.
741  /// \brief The 'float' type.
743  /// \brief The 'double' type.
745  /// \brief The 'long double' type.
747  /// \brief The placeholder type for overloaded function sets.
749  /// \brief The placeholder type for dependent types.
751  /// \brief The '__uint128_t' type.
753  /// \brief The '__int128_t' type.
755  /// \brief The type of 'nullptr'.
757  /// \brief The C++ 'char16_t' type.
759  /// \brief The C++ 'char32_t' type.
761  /// \brief The ObjC 'id' type.
763  /// \brief The ObjC 'Class' type.
765  /// \brief The ObjC 'SEL' type.
767  /// \brief The 'unknown any' placeholder type.
769  /// \brief The placeholder type for bound member functions.
771  /// \brief The "auto" deduction type.
773  /// \brief The "auto &&" deduction type.
775  /// \brief The OpenCL 'half' / ARM NEON __fp16 type.
777  /// \brief ARC's unbridged-cast placeholder type.
779  /// \brief The pseudo-object placeholder type.
781  /// \brief The placeholder type for builtin functions.
783  /// \brief OpenCL event type.
785  /// \brief OpenCL clk event type.
787  /// \brief OpenCL sampler type.
789  /// \brief OpenCL queue type.
791  /// \brief OpenCL ndrange type.
793  /// \brief OpenCL reserve_id type.
795  /// \brief The placeholder type for OpenMP array section.
797  /// \brief The '__float128' type
799  /// \brief OpenCL image types with auto numeration
800 #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
801  PREDEF_TYPE_##Id##_ID,
802 #include "clang/Basic/OpenCLImageTypes.def"
803  };
804 
805  /// \brief The number of predefined type IDs that are reserved for
806  /// the PREDEF_TYPE_* constants.
807  ///
808  /// Type IDs for non-predefined types will start at
809  /// NUM_PREDEF_TYPE_IDs.
810  const unsigned NUM_PREDEF_TYPE_IDS = 100;
811 
812  /// \brief Record codes for each kind of type.
813  ///
814  /// These constants describe the type records that can occur within a
815  /// block identified by DECLTYPES_BLOCK_ID in the AST file. Each
816  /// constant describes a record for a specific type class in the
817  /// AST. Note that DeclCode values share this code space.
818  enum TypeCode {
819  /// \brief An ExtQualType record.
821  /// \brief A ComplexType record.
823  /// \brief A PointerType record.
825  /// \brief A BlockPointerType record.
827  /// \brief An LValueReferenceType record.
829  /// \brief An RValueReferenceType record.
831  /// \brief A MemberPointerType record.
833  /// \brief A ConstantArrayType record.
835  /// \brief An IncompleteArrayType record.
837  /// \brief A VariableArrayType record.
839  /// \brief A VectorType record.
841  /// \brief An ExtVectorType record.
843  /// \brief A FunctionNoProtoType record.
845  /// \brief A FunctionProtoType record.
847  /// \brief A TypedefType record.
849  /// \brief A TypeOfExprType record.
851  /// \brief A TypeOfType record.
853  /// \brief A RecordType record.
855  /// \brief An EnumType record.
856  TYPE_ENUM = 20,
857  /// \brief An ObjCInterfaceType record.
859  /// \brief An ObjCObjectPointerType record.
861  /// \brief a DecltypeType record.
863  /// \brief An ElaboratedType record.
865  /// \brief A SubstTemplateTypeParmType record.
867  /// \brief An UnresolvedUsingType record.
869  /// \brief An InjectedClassNameType record.
871  /// \brief An ObjCObjectType record.
873  /// \brief An TemplateTypeParmType record.
875  /// \brief An TemplateSpecializationType record.
877  /// \brief A DependentNameType record.
879  /// \brief A DependentTemplateSpecializationType record.
881  /// \brief A DependentSizedArrayType record.
883  /// \brief A ParenType record.
885  /// \brief A PackExpansionType record.
887  /// \brief An AttributedType record.
889  /// \brief A SubstTemplateTypeParmPackType record.
891  /// \brief A AutoType record.
892  TYPE_AUTO = 38,
893  /// \brief A UnaryTransformType record.
895  /// \brief An AtomicType record.
897  /// \brief A DecayedType record.
899  /// \brief An AdjustedType record.
901  /// \brief A PipeType record.
903  };
904 
905  /// \brief The type IDs for special types constructed by semantic
906  /// analysis.
907  ///
908  /// The constants in this enumeration are indices into the
909  /// SPECIAL_TYPES record.
911  /// \brief CFConstantString type
913  /// \brief C FILE typedef type
915  /// \brief C jmp_buf typedef type
917  /// \brief C sigjmp_buf typedef type
919  /// \brief Objective-C "id" redefinition type
921  /// \brief Objective-C "Class" redefinition type
923  /// \brief Objective-C "SEL" redefinition type
925  /// \brief C ucontext_t typedef type
927  };
928 
929  /// \brief The number of special type IDs.
930  const unsigned NumSpecialTypeIDs = 8;
931 
932  /// \brief Predefined declaration IDs.
933  ///
934  /// These declaration IDs correspond to predefined declarations in the AST
935  /// context, such as the NULL declaration ID. Such declarations are never
936  /// actually serialized, since they will be built by the AST context when
937  /// it is created.
939  /// \brief The NULL declaration.
941 
942  /// \brief The translation unit.
944 
945  /// \brief The Objective-C 'id' type.
947 
948  /// \brief The Objective-C 'SEL' type.
950 
951  /// \brief The Objective-C 'Class' type.
953 
954  /// \brief The Objective-C 'Protocol' type.
956 
957  /// \brief The signed 128-bit integer type.
959 
960  /// \brief The unsigned 128-bit integer type.
962 
963  /// \brief The internal 'instancetype' typedef.
965 
966  /// \brief The internal '__builtin_va_list' typedef.
968 
969  /// \brief The internal '__va_list_tag' struct, if any.
971 
972  /// \brief The internal '__builtin_ms_va_list' typedef.
974 
975  /// \brief The extern "C" context.
977 
978  /// \brief The internal '__make_integer_seq' template.
980 
981  /// \brief The internal '__NSConstantString' typedef.
983 
984  /// \brief The internal '__NSConstantString' tag type.
986 
987  /// \brief The internal '__type_pack_element' template.
989  };
990 
991  /// \brief The number of declaration IDs that are predefined.
992  ///
993  /// For more information about predefined declarations, see the
994  /// \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants.
995  const unsigned int NUM_PREDEF_DECL_IDS = 17;
996 
997  /// \brief Record of updates for a declaration that was modified after
998  /// being deserialized. This can occur within DECLTYPES_BLOCK_ID.
999  const unsigned int DECL_UPDATES = 49;
1000 
1001  /// \brief Record code for a list of local redeclarations of a declaration.
1002  /// This can occur within DECLTYPES_BLOCK_ID.
1003  const unsigned int LOCAL_REDECLARATIONS = 50;
1004 
1005  /// \brief Record codes for each kind of declaration.
1006  ///
1007  /// These constants describe the declaration records that can occur within
1008  /// a declarations block (identified by DECLTYPES_BLOCK_ID). Each
1009  /// constant describes a record for a specific declaration class
1010  /// in the AST. Note that TypeCode values share this code space.
1011  enum DeclCode {
1012  /// \brief A TypedefDecl record.
1014  /// \brief A TypeAliasDecl record.
1016  /// \brief An EnumDecl record.
1018  /// \brief A RecordDecl record.
1020  /// \brief An EnumConstantDecl record.
1022  /// \brief A FunctionDecl record.
1024  /// \brief A ObjCMethodDecl record.
1026  /// \brief A ObjCInterfaceDecl record.
1028  /// \brief A ObjCProtocolDecl record.
1030  /// \brief A ObjCIvarDecl record.
1032  /// \brief A ObjCAtDefsFieldDecl record.
1034  /// \brief A ObjCCategoryDecl record.
1036  /// \brief A ObjCCategoryImplDecl record.
1038  /// \brief A ObjCImplementationDecl record.
1040  /// \brief A ObjCCompatibleAliasDecl record.
1042  /// \brief A ObjCPropertyDecl record.
1044  /// \brief A ObjCPropertyImplDecl record.
1046  /// \brief A FieldDecl record.
1048  /// \brief A MSPropertyDecl record.
1050  /// \brief A VarDecl record.
1052  /// \brief An ImplicitParamDecl record.
1054  /// \brief A ParmVarDecl record.
1056  /// \brief A FileScopeAsmDecl record.
1058  /// \brief A BlockDecl record.
1060  /// \brief A CapturedDecl record.
1062  /// \brief A record that stores the set of declarations that are
1063  /// lexically stored within a given DeclContext.
1064  ///
1065  /// The record itself is a blob that is an array of declaration IDs,
1066  /// in the order in which those declarations were added to the
1067  /// declaration context. This data is used when iterating over
1068  /// the contents of a DeclContext, e.g., via
1069  /// DeclContext::decls_begin() and DeclContext::decls_end().
1071  /// \brief A record that stores the set of declarations that are
1072  /// visible from a given DeclContext.
1073  ///
1074  /// The record itself stores a set of mappings, each of which
1075  /// associates a declaration name with one or more declaration
1076  /// IDs. This data is used when performing qualified name lookup
1077  /// into a DeclContext via DeclContext::lookup.
1079  /// \brief A LabelDecl record.
1081  /// \brief A NamespaceDecl record.
1083  /// \brief A NamespaceAliasDecl record.
1085  /// \brief A UsingDecl record.
1087  /// \brief A UsingShadowDecl record.
1089  /// \brief A ConstructorUsingShadowDecl record.
1091  /// \brief A UsingDirecitveDecl record.
1093  /// \brief An UnresolvedUsingValueDecl record.
1095  /// \brief An UnresolvedUsingTypenameDecl record.
1097  /// \brief A LinkageSpecDecl record.
1099  /// \brief A CXXRecordDecl record.
1101  /// \brief A CXXMethodDecl record.
1103  /// \brief A CXXConstructorDecl record.
1105  /// \brief A CXXConstructorDecl record for an inherited constructor.
1107  /// \brief A CXXDestructorDecl record.
1109  /// \brief A CXXConversionDecl record.
1111  /// \brief An AccessSpecDecl record.
1113 
1114  /// \brief A FriendDecl record.
1116  /// \brief A FriendTemplateDecl record.
1118  /// \brief A ClassTemplateDecl record.
1120  /// \brief A ClassTemplateSpecializationDecl record.
1122  /// \brief A ClassTemplatePartialSpecializationDecl record.
1124  /// \brief A VarTemplateDecl record.
1126  /// \brief A VarTemplateSpecializationDecl record.
1128  /// \brief A VarTemplatePartialSpecializationDecl record.
1130  /// \brief A FunctionTemplateDecl record.
1132  /// \brief A TemplateTypeParmDecl record.
1134  /// \brief A NonTypeTemplateParmDecl record.
1136  /// \brief A TemplateTemplateParmDecl record.
1138  /// \brief A TypeAliasTemplateDecl record.
1140  /// \brief A StaticAssertDecl record.
1142  /// \brief A record containing CXXBaseSpecifiers.
1144  /// \brief A record containing CXXCtorInitializers.
1146  /// \brief A IndirectFieldDecl record.
1148  /// \brief A NonTypeTemplateParmDecl record that stores an expanded
1149  /// non-type template parameter pack.
1151  /// \brief A TemplateTemplateParmDecl record that stores an expanded
1152  /// template template parameter pack.
1154  /// \brief A ClassScopeFunctionSpecializationDecl record a class scope
1155  /// function specialization. (Microsoft extension).
1157  /// \brief An ImportDecl recording a module import.
1159  /// \brief An OMPThreadPrivateDecl record.
1161  /// \brief An EmptyDecl record.
1163  /// \brief An ObjCTypeParamDecl record.
1165  /// \brief An OMPCapturedExprDecl record.
1167  /// \brief A PragmaCommentDecl record.
1169  /// \brief A PragmaDetectMismatchDecl record.
1171  /// \brief An OMPDeclareReductionDecl record.
1173  };
1174 
1175  /// \brief Record codes for each kind of statement or expression.
1176  ///
1177  /// These constants describe the records that describe statements
1178  /// or expressions. These records occur within type and declarations
1179  /// block, so they begin with record values of 128. Each constant
1180  /// describes a record for a specific statement or expression class in the
1181  /// AST.
1182  enum StmtCode {
1183  /// \brief A marker record that indicates that we are at the end
1184  /// of an expression.
1185  STMT_STOP = 128,
1186  /// \brief A NULL expression.
1188  /// \brief A reference to a previously [de]serialized Stmt record.
1190  /// \brief A NullStmt record.
1192  /// \brief A CompoundStmt record.
1194  /// \brief A CaseStmt record.
1196  /// \brief A DefaultStmt record.
1198  /// \brief A LabelStmt record.
1200  /// \brief An AttributedStmt record.
1202  /// \brief An IfStmt record.
1204  /// \brief A SwitchStmt record.
1206  /// \brief A WhileStmt record.
1208  /// \brief A DoStmt record.
1210  /// \brief A ForStmt record.
1212  /// \brief A GotoStmt record.
1214  /// \brief An IndirectGotoStmt record.
1216  /// \brief A ContinueStmt record.
1218  /// \brief A BreakStmt record.
1220  /// \brief A ReturnStmt record.
1222  /// \brief A DeclStmt record.
1224  /// \brief A CapturedStmt record.
1226  /// \brief A GCC-style AsmStmt record.
1228  /// \brief A MS-style AsmStmt record.
1230  /// \brief A PredefinedExpr record.
1232  /// \brief A DeclRefExpr record.
1234  /// \brief An IntegerLiteral record.
1236  /// \brief A FloatingLiteral record.
1238  /// \brief An ImaginaryLiteral record.
1240  /// \brief A StringLiteral record.
1242  /// \brief A CharacterLiteral record.
1244  /// \brief A ParenExpr record.
1246  /// \brief A ParenListExpr record.
1248  /// \brief A UnaryOperator record.
1250  /// \brief An OffsetOfExpr record.
1252  /// \brief A SizefAlignOfExpr record.
1254  /// \brief An ArraySubscriptExpr record.
1256  /// \brief A CallExpr record.
1258  /// \brief A MemberExpr record.
1260  /// \brief A BinaryOperator record.
1262  /// \brief A CompoundAssignOperator record.
1264  /// \brief A ConditionOperator record.
1266  /// \brief An ImplicitCastExpr record.
1268  /// \brief A CStyleCastExpr record.
1270  /// \brief A CompoundLiteralExpr record.
1272  /// \brief An ExtVectorElementExpr record.
1274  /// \brief An InitListExpr record.
1276  /// \brief A DesignatedInitExpr record.
1278  /// \brief A DesignatedInitUpdateExpr record.
1280  /// \brief An ImplicitValueInitExpr record.
1282  /// \brief An NoInitExpr record.
1284  /// \brief A VAArgExpr record.
1286  /// \brief An AddrLabelExpr record.
1288  /// \brief A StmtExpr record.
1290  /// \brief A ChooseExpr record.
1292  /// \brief A GNUNullExpr record.
1294  /// \brief A ShuffleVectorExpr record.
1296  /// \brief A ConvertVectorExpr record.
1298  /// \brief BlockExpr
1300  /// \brief A GenericSelectionExpr record.
1302  /// \brief A PseudoObjectExpr record.
1304  /// \brief An AtomicExpr record.
1306 
1307  // Objective-C
1308 
1309  /// \brief An ObjCStringLiteral record.
1311 
1315 
1316 
1317  /// \brief An ObjCEncodeExpr record.
1319  /// \brief An ObjCSelectorExpr record.
1321  /// \brief An ObjCProtocolExpr record.
1323  /// \brief An ObjCIvarRefExpr record.
1325  /// \brief An ObjCPropertyRefExpr record.
1327  /// \brief An ObjCSubscriptRefExpr record.
1329  /// \brief UNUSED
1331  /// \brief An ObjCMessageExpr record.
1333  /// \brief An ObjCIsa Expr record.
1335  /// \brief An ObjCIndirectCopyRestoreExpr record.
1337 
1338  /// \brief An ObjCForCollectionStmt record.
1340  /// \brief An ObjCAtCatchStmt record.
1342  /// \brief An ObjCAtFinallyStmt record.
1344  /// \brief An ObjCAtTryStmt record.
1346  /// \brief An ObjCAtSynchronizedStmt record.
1348  /// \brief An ObjCAtThrowStmt record.
1350  /// \brief An ObjCAutoreleasePoolStmt record.
1352  /// \brief An ObjCBoolLiteralExpr record.
1354  /// \brief An ObjCAvailabilityCheckExpr record.
1356 
1357  // C++
1358 
1359  /// \brief A CXXCatchStmt record.
1361  /// \brief A CXXTryStmt record.
1363  /// \brief A CXXForRangeStmt record.
1365 
1366  /// \brief A CXXOperatorCallExpr record.
1368  /// \brief A CXXMemberCallExpr record.
1370  /// \brief A CXXConstructExpr record.
1372  /// \brief A CXXInheritedCtorInitExpr record.
1374  /// \brief A CXXTemporaryObjectExpr record.
1376  /// \brief A CXXStaticCastExpr record.
1378  /// \brief A CXXDynamicCastExpr record.
1380  /// \brief A CXXReinterpretCastExpr record.
1382  /// \brief A CXXConstCastExpr record.
1384  /// \brief A CXXFunctionalCastExpr record.
1386  /// \brief A UserDefinedLiteral record.
1388  /// \brief A CXXStdInitializerListExpr record.
1390  /// \brief A CXXBoolLiteralExpr record.
1392  EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr
1393  EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr).
1394  EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type).
1395  EXPR_CXX_THIS, // CXXThisExpr
1396  EXPR_CXX_THROW, // CXXThrowExpr
1397  EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr
1398  EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr
1399  EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr
1400 
1401  EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr
1402  EXPR_CXX_NEW, // CXXNewExpr
1403  EXPR_CXX_DELETE, // CXXDeleteExpr
1404  EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr
1405 
1406  EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups
1407 
1408  EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr
1409  EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr
1410  EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr
1411  EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr
1412  EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr
1413 
1414  EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr
1415  EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr
1416 
1417  EXPR_OPAQUE_VALUE, // OpaqueValueExpr
1418  EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator
1419  EXPR_TYPE_TRAIT, // TypeTraitExpr
1420  EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr
1421 
1422  EXPR_PACK_EXPANSION, // PackExpansionExpr
1423  EXPR_SIZEOF_PACK, // SizeOfPackExpr
1424  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr
1425  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK,// SubstNonTypeTemplateParmPackExpr
1426  EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr
1427  EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr
1428  EXPR_CXX_FOLD, // CXXFoldExpr
1429 
1430  // CUDA
1431  EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr
1432 
1433  // OpenCL
1434  EXPR_ASTYPE, // AsTypeExpr
1435 
1436  // Microsoft
1437  EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr
1438  EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr
1439  EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr).
1440  EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type).
1441  STMT_SEH_LEAVE, // SEHLeaveStmt
1442  STMT_SEH_EXCEPT, // SEHExceptStmt
1443  STMT_SEH_FINALLY, // SEHFinallyStmt
1444  STMT_SEH_TRY, // SEHTryStmt
1445 
1446  // OpenMP directives
1485 
1486  // ARC
1487  EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr
1488 
1489  STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt
1490  EXPR_LAMBDA // LambdaExpr
1491  };
1492 
1493  /// \brief The kinds of designators that can occur in a
1494  /// DesignatedInitExpr.
1496  /// \brief Field designator where only the field name is known.
1498  /// \brief Field designator where the field has been resolved to
1499  /// a declaration.
1501  /// \brief Array designator.
1503  /// \brief GNU array range designator.
1505  };
1506 
1507  /// \brief The different kinds of data that can occur in a
1508  /// CtorInitializer.
1514  };
1515 
1516  /// \brief Describes the redeclarations of a declaration.
1518  DeclID FirstID; // The ID of the first declaration
1519  unsigned Offset; // Offset into the array of redeclaration chains.
1520 
1522  const LocalRedeclarationsInfo &Y) {
1523  return X.FirstID < Y.FirstID;
1524  }
1525 
1527  const LocalRedeclarationsInfo &Y) {
1528  return X.FirstID > Y.FirstID;
1529  }
1530 
1532  const LocalRedeclarationsInfo &Y) {
1533  return X.FirstID <= Y.FirstID;
1534  }
1535 
1537  const LocalRedeclarationsInfo &Y) {
1538  return X.FirstID >= Y.FirstID;
1539  }
1540  };
1541 
1542  /// \brief Describes the categories of an Objective-C class.
1544  DeclID DefinitionID; // The ID of the definition
1545  unsigned Offset; // Offset into the array of category lists.
1546 
1547  friend bool operator<(const ObjCCategoriesInfo &X,
1548  const ObjCCategoriesInfo &Y) {
1549  return X.DefinitionID < Y.DefinitionID;
1550  }
1551 
1552  friend bool operator>(const ObjCCategoriesInfo &X,
1553  const ObjCCategoriesInfo &Y) {
1554  return X.DefinitionID > Y.DefinitionID;
1555  }
1556 
1557  friend bool operator<=(const ObjCCategoriesInfo &X,
1558  const ObjCCategoriesInfo &Y) {
1559  return X.DefinitionID <= Y.DefinitionID;
1560  }
1561 
1562  friend bool operator>=(const ObjCCategoriesInfo &X,
1563  const ObjCCategoriesInfo &Y) {
1564  return X.DefinitionID >= Y.DefinitionID;
1565  }
1566  };
1567 
1568  /// \brief A key used when looking up entities by \ref DeclarationName.
1569  ///
1570  /// Different \ref DeclarationNames are mapped to different keys, but the
1571  /// same key can occasionally represent multiple names (for names that
1572  /// contain types, in particular).
1574  typedef unsigned NameKind;
1575 
1576  NameKind Kind;
1577  uint64_t Data;
1578 
1579  public:
1580  DeclarationNameKey() : Kind(), Data() {}
1582 
1584  : Kind(Kind), Data(Data) {}
1585 
1586  NameKind getKind() const { return Kind; }
1587 
1589  assert(Kind == DeclarationName::Identifier ||
1591  return (IdentifierInfo *)Data;
1592  }
1597  return Selector(Data);
1598  }
1601  return (OverloadedOperatorKind)Data;
1602  }
1603 
1604  /// Compute a fingerprint of this key for use in on-disk hash table.
1605  unsigned getHash() const;
1606 
1607  friend bool operator==(const DeclarationNameKey &A,
1608  const DeclarationNameKey &B) {
1609  return A.Kind == B.Kind && A.Data == B.Data;
1610  }
1611  };
1612 
1613  /// @}
1614  }
1615 } // end namespace clang
1616 
1617 namespace llvm {
1618  template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> {
1621  }
1624  }
1625  static unsigned
1627  return Key.getHash();
1628  }
1631  return L == R;
1632  }
1633  };
1634 }
1635 
1636 #endif
A PredefinedExpr record.
Definition: ASTBitCodes.h:1231
A FriendTemplateDecl record.
Definition: ASTBitCodes.h:1117
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1271
A NonTypeTemplateParmDecl record.
Definition: ASTBitCodes.h:1135
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
Definition: ASTBitCodes.h:1495
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
IdentifierInfo * getIdentifier() const
Definition: ASTBitCodes.h:1588
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:166
Record code for the signature that identifiers this AST file.
Definition: ASTBitCodes.h:292
Record code for potentially unused local typedef names.
Definition: ASTBitCodes.h:572
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:530
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1215
A (possibly-)qualified type.
Definition: Type.h:598
A PointerType record.
Definition: ASTBitCodes.h:824
CtorInitializerType
The different kinds of data that can occur in a CtorInitializer.
Definition: ASTBitCodes.h:1509
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1287
The macro directives history for a particular identifier.
Definition: ASTBitCodes.h:626
The (signed) 'long long' type.
Definition: ASTBitCodes.h:740
A CXXStaticCastExpr record.
Definition: ASTBitCodes.h:1377
ExtensionBlockRecordTypes
Record code for extension blocks.
Definition: ASTBitCodes.h:326
Record code for the source manager line table information, which stores information about #line direc...
Definition: ASTBitCodes.h:526
An AttributedStmt record.
Definition: ASTBitCodes.h:1201
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1381
The 'bool' or '_Bool' type.
Definition: ASTBitCodes.h:714
An OMPThreadPrivateDecl record.
Definition: ASTBitCodes.h:1160
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1353
unsigned getHash() const
Compute a fingerprint of this key for use in on-disk hash table.
Definition: ASTReader.cpp:897
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:810
friend bool operator>(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1526
ControlRecordTypes
Record types that occur within the control block.
Definition: ASTBitCodes.h:259
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 'unknown any' placeholder type.
Definition: ASTBitCodes.h:768
An OMPDeclareReductionDecl record.
Definition: ASTBitCodes.h:1172
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1281
SourceManagerRecordTypes
Record types used within a source manager block.
Definition: ASTBitCodes.h:587
const unsigned int NUM_PREDEF_SELECTOR_IDS
The number of predefined selector IDs.
Definition: ASTBitCodes.h:145
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1267
A VarTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1129
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:604
An LValueReferenceType record.
Definition: ASTBitCodes.h:828
The placeholder type for builtin functions.
Definition: ASTBitCodes.h:782
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1367
Specifies the submodules that are imported by this submodule.
Definition: ASTBitCodes.h:664
A record that stores the set of declarations that are lexically stored within a given DeclContext...
Definition: ASTBitCodes.h:1070
Specifies an umbrella directory.
Definition: ASTBitCodes.h:661
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1375
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:866
A ObjCPropertyDecl record.
Definition: ASTBitCodes.h:1043
Record code for enabled OpenCL extensions.
Definition: ASTBitCodes.h:509
Record code for the module build directory.
Definition: ASTBitCodes.h:295
An ElaboratedType record.
Definition: ASTBitCodes.h:864
An UnresolvedUsingType record.
Definition: ASTBitCodes.h:868
unsigned getRawEncoding() const
When a SourceLocation itself cannot be used, this returns an (opaque) 32-bit integer encoding for it...
static clang::serialization::DeclarationNameKey getTombstoneKey()
Definition: ASTBitCodes.h:1622
An IncompleteArrayType record.
Definition: ASTBitCodes.h:836
The internal '__type_pack_element' template.
Definition: ASTBitCodes.h:988
Specifies a header that is part of the module but must be textually included.
Definition: ASTBitCodes.h:683
ARC's unbridged-cast placeholder type.
Definition: ASTBitCodes.h:778
A ClassTemplateDecl record.
Definition: ASTBitCodes.h:1119
void * getAsOpaquePtr() const
Definition: Type.h:646
A PragmaDetectMismatchDecl record.
Definition: ASTBitCodes.h:1170
An UnresolvedUsingTypenameDecl record.
Definition: ASTBitCodes.h:1096
uint32_t IdentifierID
An ID number that refers to an identifier in an AST file.
Definition: ASTBitCodes.h:55
The internal '__builtin_va_list' typedef.
Definition: ASTBitCodes.h:967
friend bool operator<(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1547
An OMPCapturedExprDecl record.
Definition: ASTBitCodes.h:1166
A UsingShadowDecl record.
Definition: ASTBitCodes.h:1088
const unsigned int NUM_PREDEF_DECL_IDS
The number of declaration IDs that are predefined.
Definition: ASTBitCodes.h:995
The value of the next COUNTER to dispense.
Definition: ASTBitCodes.h:433
A TemplateTemplateParmDecl record that stores an expanded template template parameter pack...
Definition: ASTBitCodes.h:1153
Specifies the umbrella header used to create this module, if any.
Definition: ASTBitCodes.h:655
Record code for header search information.
Definition: ASTBitCodes.h:503
Describes a source location entry (SLocEntry) for a buffer.
Definition: ASTBitCodes.h:593
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1371
Record code for the target options table.
Definition: ASTBitCodes.h:310
A TemplateTemplateParmDecl record.
Definition: ASTBitCodes.h:1137
Record code for the array of eagerly deserialized decls.
Definition: ASTBitCodes.h:404
A ObjCInterfaceDecl record.
Definition: ASTBitCodes.h:1027
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1295
Record code for the diagnostic options table.
Definition: ASTBitCodes.h:313
A CXXConstructorDecl record for an inherited constructor.
Definition: ASTBitCodes.h:1106
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:1251
SourceLocation getBegin() const
Definition: ASTBitCodes.h:178
One of these records is kept for each identifier that is lexed.
A macro directive exported by a module.
Definition: ASTBitCodes.h:630
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1349
Specifies a top-level header that falls into this (sub)module.
Definition: ASTBitCodes.h:659
The block containing comments.
Definition: ASTBitCodes.h:234
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1277
class LLVM_ALIGNAS(8) DependentTemplateSpecializationType const IdentifierInfo * Name
Represents a template specialization type whose template cannot be resolved, e.g. ...
Definition: Type.h:4549
static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R)
Definition: ASTBitCodes.h:1629
The 'char' type, when it is signed.
Definition: ASTBitCodes.h:728
Specifies a header that has been explicitly excluded from this submodule.
Definition: ASTBitCodes.h:672
static SourceLocation getFromRawEncoding(unsigned Encoding)
Turn a raw encoding of a SourceLocation object into a real SourceLocation.
SpecialTypeIDs
The type IDs for special types constructed by semantic analysis.
Definition: ASTBitCodes.h:910
friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1557
The unsigned 128-bit integer type.
Definition: ASTBitCodes.h:961
Record code for the module map file that was used to build this AST file.
Definition: ASTBitCodes.h:289
An ExtVectorType record.
Definition: ASTBitCodes.h:842
Delete expressions that will be analyzed later.
Definition: ASTBitCodes.h:577
friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B)
Definition: ASTBitCodes.h:1607
An AttributedType record.
Definition: ASTBitCodes.h:888
An object-like macro definition.
Definition: ASTBitCodes.h:614
SourceLocation getEnd() const
Definition: ASTBitCodes.h:181
Describes one token.
Definition: ASTBitCodes.h:623
An AdjustedType record.
Definition: ASTBitCodes.h:900
A IndirectFieldDecl record.
Definition: ASTBitCodes.h:1147
Record code for the set of ext_vector type names.
Definition: ASTBitCodes.h:448
Specifies the submodules that are re-exported from this submodule.
Definition: ASTBitCodes.h:667
uint32_t SubmoduleID
An ID number that refers to a submodule in a module file.
Definition: ASTBitCodes.h:160
An AccessSpecDecl record.
Definition: ASTBitCodes.h:1112
const unsigned NumSpecialTypeIDs
The number of special type IDs.
Definition: ASTBitCodes.h:930
Describes a blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:598
Record code for the language options table.
Definition: ASTBitCodes.h:307
Specifies a conflict with another module.
Definition: ASTBitCodes.h:678
The signed 128-bit integer type.
Definition: ASTBitCodes.h:958
A ConstructorUsingShadowDecl record.
Definition: ASTBitCodes.h:1090
A UnaryTransformType record.
Definition: ASTBitCodes.h:894
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1189
A UsingDirecitveDecl record.
Definition: ASTBitCodes.h:1092
An ObjCObjectType record.
Definition: ASTBitCodes.h:872
A ConstantArrayType record.
Definition: ASTBitCodes.h:834
Record code for #pragma optimize options.
Definition: ASTBitCodes.h:569
uint32_t BitOffset
Offset in the AST file.
Definition: ASTBitCodes.h:172
Specifies a header that is private to this submodule but must be textually included.
Definition: ASTBitCodes.h:686
Record code for pending implicit instantiations.
Definition: ASTBitCodes.h:478
The internal '__make_integer_seq' template.
Definition: ASTBitCodes.h:979
uint32_t GlobalMacroID
A global ID number that refers to a macro in an AST file.
Definition: ASTBitCodes.h:132
Record code for #pragma diagnostic mappings.
Definition: ASTBitCodes.h:497
An ExtQualType record.
Definition: ASTBitCodes.h:820
Record code for floating point #pragma options.
Definition: ASTBitCodes.h:506
CommentRecordTypes
Record types used within a comments block.
Definition: ASTBitCodes.h:690
Record code for the set of known namespaces, which are used for typo correction.
Definition: ASTBitCodes.h:516
Record code for an array of all of the (sub)modules that were imported by the AST file...
Definition: ASTBitCodes.h:537
The first record ID allocated to the extensions themselves.
Definition: ASTBitCodes.h:331
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1185
A ClassTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1121
A BlockPointerType record.
Definition: ASTBitCodes.h:826
A MemberPointerType record.
Definition: ASTBitCodes.h:832
Record code for the table of offsets into the block of source-location information.
Definition: ASTBitCodes.h:437
A SubstTemplateTypeParmPackType record.
Definition: ASTBitCodes.h:890
Objective-C "id" redefinition type.
Definition: ASTBitCodes.h:920
TypeCode
Record codes for each kind of type.
Definition: ASTBitCodes.h:818
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:796
A VariableArrayType record.
Definition: ASTBitCodes.h:838
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:342
Defines the major attributes of a submodule, including its name and parent.
Definition: ASTBitCodes.h:652
friend bool operator>(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1552
A StaticAssertDecl record.
Definition: ASTBitCodes.h:1141
A VarTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1127
Record code for the table of offsets of each macro ID.
Definition: ASTBitCodes.h:554
An ObjCTypeParamDecl record.
Definition: ASTBitCodes.h:1164
A record containing CXXBaseSpecifiers.
Definition: ASTBitCodes.h:1143
An TemplateSpecializationType record.
Definition: ASTBitCodes.h:876
An ObjCObjectPointerType record.
Definition: ASTBitCodes.h:860
An ObjCInterfaceType record.
Definition: ASTBitCodes.h:858
Describes a zlib-compressed blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:601
A ObjCCategoryImplDecl record.
Definition: ASTBitCodes.h:1037
Record code for the array of VTable uses.
Definition: ASTBitCodes.h:458
The 'char' type, when it is unsigned.
Definition: ASTBitCodes.h:716
The directory that the PCH was originally created in.
Definition: ASTBitCodes.h:274
A ObjCPropertyImplDecl record.
Definition: ASTBitCodes.h:1045
The placeholder type for overloaded function sets.
Definition: ASTBitCodes.h:748
Record code for the table of offsets to entries in the preprocessing record.
Definition: ASTBitCodes.h:455
Field designator where only the field name is known.
Definition: ASTBitCodes.h:1497
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:1104
The OpenCL 'half' / ARM NEON __fp16 type.
Definition: ASTBitCodes.h:776
The block containing the detailed preprocessing record.
Definition: ASTBitCodes.h:228
A CXXStdInitializerListExpr record.
Definition: ASTBitCodes.h:1389
A record containing CXXCtorInitializers.
Definition: ASTBitCodes.h:1145
A VarTemplateDecl record.
Definition: ASTBitCodes.h:1125
Record code for the original file that was used to generate the AST file, including both its file ID ...
Definition: ASTBitCodes.h:271
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1255
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1303
A CXXDestructorDecl record.
Definition: ASTBitCodes.h:1108
A FunctionProtoType record.
Definition: ASTBitCodes.h:846
A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack...
Definition: ASTBitCodes.h:1150
Describes a source location entry (SLocEntry) for a file.
Definition: ASTBitCodes.h:590
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1336
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:1084
Record code for an update to a decl context's lookup table.
Definition: ASTBitCodes.h:485
Record code for #pragma ms_struct options.
Definition: ASTBitCodes.h:580
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:1536
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1279
a DecltypeType record.
Definition: ASTBitCodes.h:862
friend bool operator<(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1521
An ImplicitParamDecl record.
Definition: ASTBitCodes.h:1053
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1355
An EnumConstantDecl record.
Definition: ASTBitCodes.h:1021
Record code for the table of offsets of each identifier ID.
Definition: ASTBitCodes.h:375
Record code for undefined but used functions and variables that need a definition in this TU...
Definition: ASTBitCodes.h:563
A DependentNameType record.
Definition: ASTBitCodes.h:878
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:75
An ImportDecl recording a module import.
Definition: ASTBitCodes.h:1158
A ObjCCategoryDecl record.
Definition: ASTBitCodes.h:1035
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1339
Record code for the identifier table.
Definition: ASTBitCodes.h:394
A ObjCCompatibleAliasDecl record.
Definition: ASTBitCodes.h:1041
The placeholder type for bound member functions.
Definition: ASTBitCodes.h:770
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1229
unsigned getLocalFastQualifiers() const
Definition: Type.h:628
friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:1562
const unsigned int NUM_PREDEF_IDENT_IDS
The number of predefined identifier IDs.
Definition: ASTBitCodes.h:126
The 'unsigned long long' type.
Definition: ASTBitCodes.h:726
Record code for the set of source location entries that need to be preloaded by the AST reader...
Definition: ASTBitCodes.h:445
The list of delegating constructor declarations.
Definition: ASTBitCodes.h:512
An UnresolvedUsingValueDecl record.
Definition: ASTBitCodes.h:1094
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:1078
Specifies a library or framework to link against.
Definition: ASTBitCodes.h:674
Record code for file ID of the file or buffer that was used to generate the AST file.
Definition: ASTBitCodes.h:278
Specifies a header that falls into this (sub)module.
Definition: ASTBitCodes.h:657
A ComplexType record.
Definition: ASTBitCodes.h:822
Record code for special CUDA declarations.
Definition: ASTBitCodes.h:500
A list of "interesting" identifiers.
Definition: ASTBitCodes.h:559
The block of configuration options, used to check that a module is being used in a configuration comp...
Definition: ASTBitCodes.h:252
const std::string ID
PredefinedTypeIDs
Predefined type IDs.
Definition: ASTBitCodes.h:708
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:380
Metadata describing this particular extension.
Definition: ASTBitCodes.h:328
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1385
Record code for the offsets of each decl.
Definition: ASTBitCodes.h:367
Metadata for submodules as a whole.
Definition: ASTBitCodes.h:649
The width of the "fast" qualifier mask.
Definition: Type.h:160
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1318
A TypeOfExprType record.
Definition: ASTBitCodes.h:850
Record code for late parsed template functions.
Definition: ASTBitCodes.h:566
A TemplateTypeParmDecl record.
Definition: ASTBitCodes.h:1133
The internal 'instancetype' typedef.
Definition: ASTBitCodes.h:964
OptionsRecordTypes
Record types that occur within the options block inside the control block.
Definition: ASTBitCodes.h:300
Describes the categories of an Objective-C class.
Definition: ASTBitCodes.h:1543
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:1334
SubmoduleRecordTypes
Record types used within a submodule description block.
Definition: ASTBitCodes.h:647
Objective-C "SEL" redefinition type.
Definition: ASTBitCodes.h:924
const unsigned int DECL_UPDATES
Record of updates for a declaration that was modified after being deserialized.
Definition: ASTBitCodes.h:999
An InjectedClassNameType record.
Definition: ASTBitCodes.h:870
Record code for the extra statistics we gather while generating an AST file.
Definition: ASTBitCodes.h:417
A NamespaceDecl record.
Definition: ASTBitCodes.h:1082
An AtomicExpr record.
Definition: ASTBitCodes.h:1305
uint32_t BitOffset
Offset in the AST file.
Definition: ASTBitCodes.h:191
static QualType getFromOpaquePtr(const void *Ptr)
Definition: Type.h:647
Record code for referenced selector pool.
Definition: ASTBitCodes.h:463
Record code for the set of non-builtin, special types.
Definition: ASTBitCodes.h:413
A ObjCProtocolDecl record.
Definition: ASTBitCodes.h:1029
friend bool operator<=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:1531
Record code for the list of other AST files imported by this AST file.
Definition: ASTBitCodes.h:266
A CXXConversionDecl record.
Definition: ASTBitCodes.h:1110
Describes a macro definition within the preprocessing record.
Definition: ASTBitCodes.h:639
The internal '__NSConstantString' typedef.
Definition: ASTBitCodes.h:982
Record code for the module name.
Definition: ASTBitCodes.h:285
An InitListExpr record.
Definition: ASTBitCodes.h:1275
Describes an inclusion directive within the preprocessing record.
Definition: ASTBitCodes.h:643
The internal '__builtin_ms_va_list' typedef.
Definition: ASTBitCodes.h:973
Record code for a file sorted array of DeclIDs in a module.
Definition: ASTBitCodes.h:533
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1391
Record code for the array of Objective-C categories (including extensions).
Definition: ASTBitCodes.h:547
Specifies a configuration macro for this module.
Definition: ASTBitCodes.h:676
PreprocessorDetailRecordTypes
Record types used within a preprocessor detail block.
Definition: ASTBitCodes.h:634
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.
Definition: OperatorKinds.h:22
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1273
Record code for the array of unused file scoped decls.
Definition: ASTBitCodes.h:451
A FunctionNoProtoType record.
Definition: ASTBitCodes.h:844
A ClassTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1123
static clang::serialization::DeclarationNameKey getEmptyKey()
Definition: ASTBitCodes.h:1619
DeclCode
Record codes for each kind of declaration.
Definition: ASTBitCodes.h:1011
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1351
DeclarationName - The name of a declaration.
A ClassScopeFunctionSpecializationDecl record a class scope function specialization.
Definition: ASTBitCodes.h:1156
Record code for the Objective-C method pool,.
Definition: ASTBitCodes.h:429
Specifies a header that is private to this submodule.
Definition: ASTBitCodes.h:680
A LinkageSpecDecl record.
Definition: ASTBitCodes.h:1098
Describes a macro expansion within the preprocessing record.
Definition: ASTBitCodes.h:636
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1379
An EnumType record.
Definition: ASTBitCodes.h:856
An RValueReferenceType record.
Definition: ASTBitCodes.h:830
DeclarationNameKey(NameKind Kind, uint64_t Data)
Definition: ASTBitCodes.h:1583
An AtomicType record.
Definition: ASTBitCodes.h:896
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1343
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:750
TypeID asTypeID(unsigned FastQuals) const
Definition: ASTBitCodes.h:90
A PragmaCommentDecl record.
Definition: ASTBitCodes.h:1168
Record code for the table of offsets into the Objective-C method pool.
Definition: ASTBitCodes.h:426
A DependentSizedArrayType record.
Definition: ASTBitCodes.h:882
Record code for the remapping information used to relate loaded modules to the various offsets and ID...
Definition: ASTBitCodes.h:522
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1347
A key used when looking up entities by DeclarationName.
Definition: ASTBitCodes.h:1573
Record code for declarations that Sema keeps references of.
Definition: ASTBitCodes.h:472
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:282
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1369
PreprocessorRecordTypes
Record types used within a preprocessor block.
Definition: ASTBitCodes.h:608
The block containing the submodule structure.
Definition: ASTBitCodes.h:231
void setLocation(SourceLocation L)
Definition: ASTBitCodes.h:197
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1297
unsigned End
Raw source location of end of range.
Definition: ASTBitCodes.h:170
A TypedefType record.
Definition: ASTBitCodes.h:848
X
Add a minimal nested name specifier fixit hint to allow lookup of a tag name from an outer enclosing ...
Definition: SemaDecl.cpp:12171
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:1504
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1227
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:874
Record code for the filesystem options table.
Definition: ASTBitCodes.h:316
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1341
A ObjCImplementationDecl record.
Definition: ASTBitCodes.h:1039
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:1500
static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key)
Definition: ASTBitCodes.h:1626
A ObjCAtDefsFieldDecl record.
Definition: ASTBitCodes.h:1033
Record code for the offsets of each type.
Definition: ASTBitCodes.h:355
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1373
The block containing the definitions of all of the types and decls used within the AST file...
Definition: ASTBitCodes.h:225
The internal '__va_list_tag' struct, if any.
Definition: ASTBitCodes.h:970
const unsigned int LOCAL_REDECLARATIONS
Record code for a list of local redeclarations of a declaration.
Definition: ASTBitCodes.h:1003
A TypeAliasDecl record.
Definition: ASTBitCodes.h:1015
Describes the redeclarations of a declaration.
Definition: ASTBitCodes.h:1517
Specifies a required feature.
Definition: ASTBitCodes.h:669
uint32_t getIndex() const
Definition: ASTBitCodes.h:89
Record for offsets of DECL_UPDATES records for declarations that were modified after being deserializ...
Definition: ASTBitCodes.h:489
SourceLocation getLocation() const
Definition: ASTBitCodes.h:200
A FunctionTemplateDecl record.
Definition: ASTBitCodes.h:1131
A TypeAliasTemplateDecl record.
Definition: ASTBitCodes.h:1139
OverloadedOperatorKind getOperatorKind() const
Definition: ASTBitCodes.h:1599
Record code for weak undeclared identifiers.
Definition: ASTBitCodes.h:475
The block containing information about the preprocessor.
Definition: ASTBitCodes.h:221
A DecayedType record.
Definition: ASTBitCodes.h:898
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:262
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 '__NSConstantString' tag type.
Definition: ASTBitCodes.h:985
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:336
A function-like macro definition.
Definition: ASTBitCodes.h:619
The Objective-C 'Protocol' type.
Definition: ASTBitCodes.h:955
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:1182
PredefinedDeclIDs
Predefined declaration IDs.
Definition: ASTBitCodes.h:938
Record code for an update to the TU's lexically contained declarations.
Definition: ASTBitCodes.h:467
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:187
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1301
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:922
A PackExpansionType record.
Definition: ASTBitCodes.h:886
The pseudo-object placeholder type.
Definition: ASTBitCodes.h:780
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:583
A DependentTemplateSpecializationType record.
Definition: ASTBitCodes.h:880
Record code for the array of tentative definitions.
Definition: ASTBitCodes.h:420