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