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