clang  8.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  /// 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 = 7;
46 
47  /// 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  /// 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  /// 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  /// 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  /// 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  /// An ID number that refers to an identifier in an AST file.
135  using IdentID = uint32_t;
136 
137  /// The number of predefined identifier IDs.
138  const unsigned int NUM_PREDEF_IDENT_IDS = 1;
139 
140  /// An ID number that refers to a macro in an AST file.
141  using MacroID = uint32_t;
142 
143  /// A global ID number that refers to a macro in an AST file.
144  using GlobalMacroID = uint32_t;
145 
146  /// A local to a module ID number that refers to a macro in an
147  /// AST file.
148  using LocalMacroID = uint32_t;
149 
150  /// The number of predefined macro IDs.
151  const unsigned int NUM_PREDEF_MACRO_IDS = 1;
152 
153  /// An ID number that refers to an ObjC selector in an AST file.
154  using SelectorID = uint32_t;
155 
156  /// The number of predefined selector IDs.
157  const unsigned int NUM_PREDEF_SELECTOR_IDS = 1;
158 
159  /// An ID number that refers to a set of CXXBaseSpecifiers in an
160  /// AST file.
161  using CXXBaseSpecifiersID = uint32_t;
162 
163  /// An ID number that refers to a list of CXXCtorInitializers in an
164  /// AST file.
165  using CXXCtorInitializersID = uint32_t;
166 
167  /// An ID number that refers to an entity in the detailed
168  /// preprocessing record.
169  using PreprocessedEntityID = uint32_t;
170 
171  /// An ID number that refers to a submodule in a module file.
172  using SubmoduleID = uint32_t;
173 
174  /// The number of predefined submodule IDs.
175  const unsigned int NUM_PREDEF_SUBMODULE_IDS = 1;
176 
177  /// Source range/offset of a preprocessed entity.
178  struct PPEntityOffset {
179  /// Raw source location of beginning of range.
180  unsigned Begin;
181 
182  /// Raw source location of end of range.
183  unsigned End;
184 
185  /// 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  /// Source range of a skipped preprocessor region
202  struct PPSkippedRange {
203  /// Raw source location of beginning of range.
204  unsigned Begin;
205  /// 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  /// Source range/offset of a preprocessed entity.
221  struct DeclOffset {
222  /// Raw source location.
223  unsigned Loc = 0;
224 
225  /// 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  /// The number of predefined preprocessed entity IDs.
242  const unsigned int NUM_PREDEF_PP_ENTITY_IDS = 1;
243 
244  /// Describes the various kinds of blocks that occur within
245  /// an AST file.
246  enum BlockIDs {
247  /// 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  /// The block containing information about the source
252  /// manager.
254 
255  /// The block containing information about the
256  /// preprocessor.
258 
259  /// The block containing the definitions of all of the
260  /// types and decls used within the AST file.
262 
263  /// The block containing the detailed preprocessing record.
265 
266  /// The block containing the submodule structure.
268 
269  /// The block containing comments.
271 
272  /// 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  /// 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  /// 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  /// 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  /// Record types that occur within the control block.
302  /// 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  /// Record code for the list of other AST files imported by
307  /// this AST file.
309 
310  /// 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  /// The directory that the PCH was originally created in.
317 
318  /// Record code for file ID of the file or buffer that was used to
319  /// generate the AST file.
321 
322  /// Offsets into the input-files block where input files
323  /// reside.
325 
326  /// Record code for the module name.
328 
329  /// Record code for the module map file that was used to build this
330  /// AST file.
332 
333  /// Record code for the module build directory.
335  };
336 
337  /// Record types that occur within the options block inside
338  /// the control block.
340  /// 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  /// Record code for the target options table.
350 
351  /// Record code for the filesystem options table.
353 
354  /// Record code for the headers search options table.
356 
357  /// 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  /// 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  /// Record types that occur within the input-files block
383  /// inside the control block.
385  /// An input file.
387  };
388 
389  /// Record types that occur within the AST block itself.
391  /// 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  /// 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  /// 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  /// 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  /// 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  /// 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  /// 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  /// Record code for the extra statistics we gather while
464  /// generating an AST file.
466 
467  /// Record code for the array of tentative definitions.
469 
470  // ID 10 used to be for a list of extern "C" declarations.
471 
472  /// Record code for the table of offsets into the
473  /// Objective-C method pool.
475 
476  /// Record code for the Objective-C method pool,
478 
479  /// The value of the next __COUNTER__ to dispense.
480  /// [PP_COUNTER_VALUE, Val]
482 
483  /// Record code for the table of offsets into the block
484  /// of source-location information.
486 
487  /// 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  /// Record code for the set of ext_vector type names.
497 
498  /// Record code for the array of unused file scoped decls.
500 
501  /// Record code for the table of offsets to entries in the
502  /// preprocessing record.
504 
505  /// Record code for the array of VTable uses.
507 
508  // ID 20 used to be for a list of dynamic classes.
509 
510  /// Record code for referenced selector pool.
512 
513  /// 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  /// Record code for declarations that Sema keeps references of.
521 
522  /// Record code for weak undeclared identifiers.
524 
525  /// Record code for pending implicit instantiations.
527 
528  // ID 27 used to be for a list of replacement decls.
529 
530  /// 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  /// 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  /// Record code for special CUDA declarations.
548 
549  /// Record code for header search information.
551 
552  /// Record code for floating point \#pragma options.
554 
555  /// Record code for enabled OpenCL extensions.
557 
558  /// The list of delegating constructor declarations.
560 
561  /// Record code for the set of known namespaces, which are used
562  /// for typo correction.
564 
565  /// 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  /// Record code for the source manager line table information,
572  /// which stores information about \#line directives.
574 
575  /// 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  /// Record code for a file sorted array of DeclIDs in a module.
581 
582  /// 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  /// 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  /// 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  /// 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  /// Record code for undefined but used functions and variables that
609  /// need a definition in this TU.
611 
612  /// Record code for late parsed template functions.
614 
615  /// Record code for \#pragma optimize options.
617 
618  /// Record code for potentially unused local typedef names.
620 
621  // ID 53 used to be a table of constructor initializer records.
622 
623  /// Delete expressions that will be analyzed later.
625 
626  /// Record code for \#pragma ms_struct options.
628 
629  /// Record code for \#pragma ms_struct options.
631 
632  /// Number of unmatched #pragma clang cuda_force_host_device begin
633  /// directives we've seen.
635 
636  /// Record code for types associated with OpenCL extensions.
638 
639  /// Record code for declarations associated with OpenCL extensions.
641 
643 
644  /// Record code for \#pragma pack options.
646 
647  /// The stack of open #ifs/#ifdefs recorded in a preamble.
649 
650  /// A table of skipped ranges within the preprocessing record.
652  };
653 
654  /// Record types used within a source manager block.
656  /// Describes a source location entry (SLocEntry) for a
657  /// file.
659 
660  /// Describes a source location entry (SLocEntry) for a
661  /// buffer.
663 
664  /// 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  /// Describes a zlib-compressed blob that contains the data for
671  /// a buffer entry.
673 
674  /// Describes a source location entry (SLocEntry) for a
675  /// macro expansion.
677  };
678 
679  /// 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  /// An object-like macro definition.
685  /// [PP_MACRO_OBJECT_LIKE, IdentInfoID, SLoc, IsUsed]
687 
688  /// A function-like macro definition.
689  /// [PP_MACRO_FUNCTION_LIKE, <ObjectLikeStuff>, IsC99Varargs,
690  /// IsGNUVarars, NumArgs, ArgIdentInfoID* ]
692 
693  /// Describes one token.
694  /// [PP_TOKEN, SLoc, Length, IdentInfoID, Kind, Flags]
695  PP_TOKEN = 3,
696 
697  /// The macro directives history for a particular identifier.
699 
700  /// A macro directive exported by a module.
701  /// [PP_MODULE_MACRO, SubmoduleID, MacroID, (Overridden SubmoduleID)*]
703  };
704 
705  /// Record types used within a preprocessor detail block.
707  /// Describes a macro expansion within the preprocessing record.
709 
710  /// Describes a macro definition within the preprocessing record.
712 
713  /// Describes an inclusion directive within the preprocessing
714  /// record.
716  };
717 
718  /// Record types used within a submodule description block.
720  /// Metadata for submodules as a whole.
722 
723  /// Defines the major attributes of a submodule, including its
724  /// name and parent.
726 
727  /// Specifies the umbrella header used to create this module,
728  /// if any.
730 
731  /// Specifies a header that falls into this (sub)module.
733 
734  /// Specifies a top-level header that falls into this (sub)module.
736 
737  /// Specifies an umbrella directory.
739 
740  /// Specifies the submodules that are imported by this
741  /// submodule.
743 
744  /// Specifies the submodules that are re-exported from this
745  /// submodule.
747 
748  /// Specifies a required feature.
750 
751  /// Specifies a header that has been explicitly excluded
752  /// from this submodule.
754 
755  /// Specifies a library or framework to link against.
757 
758  /// Specifies a configuration macro for this module.
760 
761  /// Specifies a conflict with another module.
763 
764  /// Specifies a header that is private to this submodule.
766 
767  /// Specifies a header that is part of the module but must be
768  /// textually included.
770 
771  /// Specifies a header that is private to this submodule but
772  /// must be textually included.
774 
775  /// Specifies some declarations with initializers that must be
776  /// emitted to initialize the module.
778 
779  /// Specifies the name of the module that will eventually
780  /// re-export the entities in this module.
782  };
783 
784  /// 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  /// 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  /// The NULL type.
806 
807  /// The void type.
809 
810  /// The 'bool' or '_Bool' type.
812 
813  /// The 'char' type, when it is unsigned.
815 
816  /// The 'unsigned char' type.
818 
819  /// The 'unsigned short' type.
821 
822  /// The 'unsigned int' type.
824 
825  /// The 'unsigned long' type.
827 
828  /// The 'unsigned long long' type.
830 
831  /// The 'char' type, when it is signed.
833 
834  /// The 'signed char' type.
836 
837  /// The C++ 'wchar_t' type.
839 
840  /// The (signed) 'short' type.
842 
843  /// The (signed) 'int' type.
845 
846  /// The (signed) 'long' type.
848 
849  /// The (signed) 'long long' type.
851 
852  /// The 'float' type.
854 
855  /// The 'double' type.
857 
858  /// The 'long double' type.
860 
861  /// The placeholder type for overloaded function sets.
863 
864  /// The placeholder type for dependent types.
866 
867  /// The '__uint128_t' type.
869 
870  /// The '__int128_t' type.
872 
873  /// The type of 'nullptr'.
875 
876  /// The C++ 'char16_t' type.
878 
879  /// The C++ 'char32_t' type.
881 
882  /// The ObjC 'id' type.
884 
885  /// The ObjC 'Class' type.
887 
888  /// The ObjC 'SEL' type.
890 
891  /// The 'unknown any' placeholder type.
893 
894  /// The placeholder type for bound member functions.
896 
897  /// The "auto" deduction type.
899 
900  /// The "auto &&" deduction type.
902 
903  /// The OpenCL 'half' / ARM NEON __fp16 type.
905 
906  /// ARC's unbridged-cast placeholder type.
908 
909  /// The pseudo-object placeholder type.
911 
912  /// The placeholder type for builtin functions.
914 
915  /// OpenCL event type.
917 
918  /// OpenCL clk event type.
920 
921  /// OpenCL sampler type.
923 
924  /// OpenCL queue type.
926 
927  /// OpenCL reserve_id type.
929 
930  /// The placeholder type for OpenMP array section.
932 
933  /// The '__float128' type
935 
936  /// The '_Float16' type
938 
939  /// The C++ 'char8_t' type.
941 
942  /// \brief The 'short _Accum' type
944 
945  /// \brief The '_Accum' type
947 
948  /// \brief The 'long _Accum' type
950 
951  /// \brief The 'unsigned short _Accum' type
953 
954  /// \brief The 'unsigned _Accum' type
956 
957  /// \brief The 'unsigned long _Accum' type
959 
960  /// \brief The 'short _Fract' type
962 
963  /// \brief The '_Fract' type
965 
966  /// \brief The 'long _Fract' type
968 
969  /// \brief The 'unsigned short _Fract' type
971 
972  /// \brief The 'unsigned _Fract' type
974 
975  /// \brief The 'unsigned long _Fract' type
977 
978  /// \brief The '_Sat short _Accum' type
980 
981  /// \brief The '_Sat _Accum' type
983 
984  /// \brief The '_Sat long _Accum' type
986 
987  /// \brief The '_Sat unsigned short _Accum' type
989 
990  /// \brief The '_Sat unsigned _Accum' type
992 
993  /// \brief The '_Sat unsigned long _Accum' type
995 
996  /// \brief The '_Sat short _Fract' type
998 
999  /// \brief The '_Sat _Fract' type
1001 
1002  /// \brief The '_Sat long _Fract' type
1004 
1005  /// \brief The '_Sat unsigned short _Fract' type
1007 
1008  /// \brief The '_Sat unsigned _Fract' type
1010 
1011  /// \brief The '_Sat unsigned long _Fract' type
1013 
1014  /// OpenCL image types with auto numeration
1015 #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \
1016  PREDEF_TYPE_##Id##_ID,
1017 #include "clang/Basic/OpenCLImageTypes.def"
1018  /// \brief OpenCL extension types with auto numeration
1019 #define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \
1020  PREDEF_TYPE_##Id##_ID,
1021 #include "clang/Basic/OpenCLExtensionTypes.def"
1022  };
1023 
1024  /// The number of predefined type IDs that are reserved for
1025  /// the PREDEF_TYPE_* constants.
1026  ///
1027  /// Type IDs for non-predefined types will start at
1028  /// NUM_PREDEF_TYPE_IDs.
1029  const unsigned NUM_PREDEF_TYPE_IDS = 200;
1030 
1031  /// Record codes for each kind of type.
1032  ///
1033  /// These constants describe the type records that can occur within a
1034  /// block identified by DECLTYPES_BLOCK_ID in the AST file. Each
1035  /// constant describes a record for a specific type class in the
1036  /// AST. Note that DeclCode values share this code space.
1037  enum TypeCode {
1038  /// An ExtQualType record.
1040 
1041  /// A ComplexType record.
1043 
1044  /// A PointerType record.
1046 
1047  /// A BlockPointerType record.
1049 
1050  /// An LValueReferenceType record.
1052 
1053  /// An RValueReferenceType record.
1055 
1056  /// A MemberPointerType record.
1058 
1059  /// A ConstantArrayType record.
1061 
1062  /// An IncompleteArrayType record.
1064 
1065  /// A VariableArrayType record.
1067 
1068  /// A VectorType record.
1070 
1071  /// An ExtVectorType record.
1073 
1074  /// A FunctionNoProtoType record.
1076 
1077  /// A FunctionProtoType record.
1079 
1080  /// A TypedefType record.
1082 
1083  /// A TypeOfExprType record.
1085 
1086  /// A TypeOfType record.
1088 
1089  /// A RecordType record.
1091 
1092  /// An EnumType record.
1094 
1095  /// An ObjCInterfaceType record.
1097 
1098  /// An ObjCObjectPointerType record.
1100 
1101  /// a DecltypeType record.
1103 
1104  /// An ElaboratedType record.
1106 
1107  /// A SubstTemplateTypeParmType record.
1109 
1110  /// An UnresolvedUsingType record.
1112 
1113  /// An InjectedClassNameType record.
1115 
1116  /// An ObjCObjectType record.
1118 
1119  /// An TemplateTypeParmType record.
1121 
1122  /// An TemplateSpecializationType record.
1124 
1125  /// A DependentNameType record.
1127 
1128  /// A DependentTemplateSpecializationType record.
1130 
1131  /// A DependentSizedArrayType record.
1133 
1134  /// A ParenType record.
1136 
1137  /// A PackExpansionType record.
1139 
1140  /// An AttributedType record.
1142 
1143  /// A SubstTemplateTypeParmPackType record.
1145 
1146  /// A AutoType record.
1148 
1149  /// A UnaryTransformType record.
1151 
1152  /// An AtomicType record.
1154 
1155  /// A DecayedType record.
1157 
1158  /// An AdjustedType record.
1160 
1161  /// A PipeType record.
1163 
1164  /// An ObjCTypeParamType record.
1166 
1167  /// A DeducedTemplateSpecializationType record.
1169 
1170  /// A DependentSizedExtVectorType record.
1172 
1173  /// A DependentAddressSpaceType record.
1175 
1176  /// A dependentSizedVectorType record.
1178  };
1179 
1180  /// The type IDs for special types constructed by semantic
1181  /// analysis.
1182  ///
1183  /// The constants in this enumeration are indices into the
1184  /// SPECIAL_TYPES record.
1186  /// CFConstantString type
1188 
1189  /// C FILE typedef type
1191 
1192  /// C jmp_buf typedef type
1194 
1195  /// C sigjmp_buf typedef type
1197 
1198  /// Objective-C "id" redefinition type
1200 
1201  /// Objective-C "Class" redefinition type
1203 
1204  /// Objective-C "SEL" redefinition type
1206 
1207  /// C ucontext_t typedef type
1209  };
1210 
1211  /// The number of special type IDs.
1212  const unsigned NumSpecialTypeIDs = 8;
1213 
1214  /// Predefined declaration IDs.
1215  ///
1216  /// These declaration IDs correspond to predefined declarations in the AST
1217  /// context, such as the NULL declaration ID. Such declarations are never
1218  /// actually serialized, since they will be built by the AST context when
1219  /// it is created.
1221  /// The NULL declaration.
1223 
1224  /// The translation unit.
1226 
1227  /// The Objective-C 'id' type.
1229 
1230  /// The Objective-C 'SEL' type.
1232 
1233  /// The Objective-C 'Class' type.
1235 
1236  /// The Objective-C 'Protocol' type.
1238 
1239  /// The signed 128-bit integer type.
1241 
1242  /// The unsigned 128-bit integer type.
1244 
1245  /// The internal 'instancetype' typedef.
1247 
1248  /// The internal '__builtin_va_list' typedef.
1250 
1251  /// The internal '__va_list_tag' struct, if any.
1253 
1254  /// The internal '__builtin_ms_va_list' typedef.
1256 
1257  /// The extern "C" context.
1259 
1260  /// The internal '__make_integer_seq' template.
1262 
1263  /// The internal '__NSConstantString' typedef.
1265 
1266  /// The internal '__NSConstantString' tag type.
1268 
1269  /// The internal '__type_pack_element' template.
1271  };
1272 
1273  /// The number of declaration IDs that are predefined.
1274  ///
1275  /// For more information about predefined declarations, see the
1276  /// \c PredefinedDeclIDs type and the PREDEF_DECL_*_ID constants.
1277  const unsigned int NUM_PREDEF_DECL_IDS = 17;
1278 
1279  /// Record of updates for a declaration that was modified after
1280  /// being deserialized. This can occur within DECLTYPES_BLOCK_ID.
1281  const unsigned int DECL_UPDATES = 49;
1282 
1283  /// Record code for a list of local redeclarations of a declaration.
1284  /// This can occur within DECLTYPES_BLOCK_ID.
1285  const unsigned int LOCAL_REDECLARATIONS = 50;
1286 
1287  /// Record codes for each kind of declaration.
1288  ///
1289  /// These constants describe the declaration records that can occur within
1290  /// a declarations block (identified by DECLTYPES_BLOCK_ID). Each
1291  /// constant describes a record for a specific declaration class
1292  /// in the AST. Note that TypeCode values share this code space.
1293  enum DeclCode {
1294  /// A TypedefDecl record.
1296  /// A TypeAliasDecl record.
1297 
1299 
1300  /// An EnumDecl record.
1302 
1303  /// A RecordDecl record.
1305 
1306  /// An EnumConstantDecl record.
1308 
1309  /// A FunctionDecl record.
1311 
1312  /// A ObjCMethodDecl record.
1314 
1315  /// A ObjCInterfaceDecl record.
1317 
1318  /// A ObjCProtocolDecl record.
1320 
1321  /// A ObjCIvarDecl record.
1323 
1324  /// A ObjCAtDefsFieldDecl record.
1326 
1327  /// A ObjCCategoryDecl record.
1329 
1330  /// A ObjCCategoryImplDecl record.
1332 
1333  /// A ObjCImplementationDecl record.
1335 
1336  /// A ObjCCompatibleAliasDecl record.
1338 
1339  /// A ObjCPropertyDecl record.
1341 
1342  /// A ObjCPropertyImplDecl record.
1344 
1345  /// A FieldDecl record.
1347 
1348  /// A MSPropertyDecl record.
1350 
1351  /// A VarDecl record.
1353 
1354  /// An ImplicitParamDecl record.
1356 
1357  /// A ParmVarDecl record.
1359 
1360  /// A DecompositionDecl record.
1362 
1363  /// A BindingDecl record.
1365 
1366  /// A FileScopeAsmDecl record.
1368 
1369  /// A BlockDecl record.
1371 
1372  /// A CapturedDecl record.
1374 
1375  /// A record that stores the set of declarations that are
1376  /// lexically stored within a given DeclContext.
1377  ///
1378  /// The record itself is a blob that is an array of declaration IDs,
1379  /// in the order in which those declarations were added to the
1380  /// declaration context. This data is used when iterating over
1381  /// the contents of a DeclContext, e.g., via
1382  /// DeclContext::decls_begin() and DeclContext::decls_end().
1384 
1385  /// A record that stores the set of declarations that are
1386  /// visible from a given DeclContext.
1387  ///
1388  /// The record itself stores a set of mappings, each of which
1389  /// associates a declaration name with one or more declaration
1390  /// IDs. This data is used when performing qualified name lookup
1391  /// into a DeclContext via DeclContext::lookup.
1393 
1394  /// A LabelDecl record.
1396 
1397  /// A NamespaceDecl record.
1399 
1400  /// A NamespaceAliasDecl record.
1402 
1403  /// A UsingDecl record.
1405 
1406  /// A UsingPackDecl record.
1408 
1409  /// A UsingShadowDecl record.
1411 
1412  /// A ConstructorUsingShadowDecl record.
1414 
1415  /// A UsingDirecitveDecl record.
1417 
1418  /// An UnresolvedUsingValueDecl record.
1420 
1421  /// An UnresolvedUsingTypenameDecl record.
1423 
1424  /// A LinkageSpecDecl record.
1426 
1427  /// An ExportDecl record.
1429 
1430  /// A CXXRecordDecl record.
1432 
1433  /// A CXXDeductionGuideDecl record.
1435 
1436  /// A CXXMethodDecl record.
1438 
1439  /// A CXXConstructorDecl record.
1441 
1442  /// A CXXConstructorDecl record for an inherited constructor.
1444 
1445  /// A CXXDestructorDecl record.
1447 
1448  /// A CXXConversionDecl record.
1450 
1451  /// An AccessSpecDecl record.
1453 
1454  /// A FriendDecl record.
1456 
1457  /// A FriendTemplateDecl record.
1459 
1460  /// A ClassTemplateDecl record.
1462 
1463  /// A ClassTemplateSpecializationDecl record.
1465 
1466  /// A ClassTemplatePartialSpecializationDecl record.
1468 
1469  /// A VarTemplateDecl record.
1471 
1472  /// A VarTemplateSpecializationDecl record.
1474 
1475  /// A VarTemplatePartialSpecializationDecl record.
1477 
1478  /// A FunctionTemplateDecl record.
1480 
1481  /// A TemplateTypeParmDecl record.
1483 
1484  /// A NonTypeTemplateParmDecl record.
1486 
1487  /// A TemplateTemplateParmDecl record.
1489 
1490  /// A TypeAliasTemplateDecl record.
1492 
1493  /// A StaticAssertDecl record.
1495 
1496  /// A record containing CXXBaseSpecifiers.
1498 
1499  /// A record containing CXXCtorInitializers.
1501 
1502  /// A IndirectFieldDecl record.
1504 
1505  /// A NonTypeTemplateParmDecl record that stores an expanded
1506  /// non-type template parameter pack.
1508 
1509  /// A TemplateTemplateParmDecl record that stores an expanded
1510  /// template template parameter pack.
1512 
1513  /// A ClassScopeFunctionSpecializationDecl record a class scope
1514  /// function specialization. (Microsoft extension).
1516 
1517  /// An ImportDecl recording a module import.
1519 
1520  /// An OMPThreadPrivateDecl record.
1522 
1523  /// An OMPRequiresDecl record.
1525 
1526  /// An EmptyDecl record.
1528 
1529  /// An ObjCTypeParamDecl record.
1531 
1532  /// An OMPCapturedExprDecl record.
1534 
1535  /// A PragmaCommentDecl record.
1537 
1538  /// A PragmaDetectMismatchDecl record.
1540 
1541  /// An OMPDeclareReductionDecl record.
1543 
1545  };
1546 
1547  /// Record codes for each kind of statement or expression.
1548  ///
1549  /// These constants describe the records that describe statements
1550  /// or expressions. These records occur within type and declarations
1551  /// block, so they begin with record values of 128. Each constant
1552  /// describes a record for a specific statement or expression class in the
1553  /// AST.
1554  enum StmtCode {
1555  /// A marker record that indicates that we are at the end
1556  /// of an expression.
1558 
1559  /// A NULL expression.
1561 
1562  /// A reference to a previously [de]serialized Stmt record.
1564 
1565  /// A NullStmt record.
1567 
1568  /// A CompoundStmt record.
1570 
1571  /// A CaseStmt record.
1573 
1574  /// A DefaultStmt record.
1576 
1577  /// A LabelStmt record.
1579 
1580  /// An AttributedStmt record.
1582 
1583  /// An IfStmt record.
1585 
1586  /// A SwitchStmt record.
1588 
1589  /// A WhileStmt record.
1591 
1592  /// A DoStmt record.
1594 
1595  /// A ForStmt record.
1597 
1598  /// A GotoStmt record.
1600 
1601  /// An IndirectGotoStmt record.
1603 
1604  /// A ContinueStmt record.
1606 
1607  /// A BreakStmt record.
1609 
1610  /// A ReturnStmt record.
1612 
1613  /// A DeclStmt record.
1615 
1616  /// A CapturedStmt record.
1618 
1619  /// A GCC-style AsmStmt record.
1621 
1622  /// A MS-style AsmStmt record.
1624 
1625  /// A constant expression context.
1627 
1628  /// A PredefinedExpr record.
1630 
1631  /// A DeclRefExpr record.
1633 
1634  /// An IntegerLiteral record.
1636 
1637  /// A FloatingLiteral record.
1639 
1640  /// An ImaginaryLiteral record.
1642 
1643  /// A StringLiteral record.
1645 
1646  /// A CharacterLiteral record.
1648 
1649  /// A ParenExpr record.
1651 
1652  /// A ParenListExpr record.
1654 
1655  /// A UnaryOperator record.
1657 
1658  /// An OffsetOfExpr record.
1660 
1661  /// A SizefAlignOfExpr record.
1663 
1664  /// An ArraySubscriptExpr record.
1666 
1667  /// A CallExpr record.
1669 
1670  /// A MemberExpr record.
1672 
1673  /// A BinaryOperator record.
1675 
1676  /// A CompoundAssignOperator record.
1678 
1679  /// A ConditionOperator record.
1681 
1682  /// An ImplicitCastExpr record.
1684 
1685  /// A CStyleCastExpr record.
1687 
1688  /// A CompoundLiteralExpr record.
1690 
1691  /// An ExtVectorElementExpr record.
1693 
1694  /// An InitListExpr record.
1696 
1697  /// A DesignatedInitExpr record.
1699 
1700  /// A DesignatedInitUpdateExpr record.
1702 
1703  /// An NoInitExpr record.
1705 
1706  /// An ArrayInitLoopExpr record.
1708 
1709  /// An ArrayInitIndexExpr record.
1711 
1712  /// An ImplicitValueInitExpr record.
1714 
1715  /// A VAArgExpr record.
1717 
1718  /// An AddrLabelExpr record.
1720 
1721  /// A StmtExpr record.
1723 
1724  /// A ChooseExpr record.
1726 
1727  /// A GNUNullExpr record.
1729 
1730  /// A ShuffleVectorExpr record.
1732 
1733  /// A ConvertVectorExpr record.
1735 
1736  /// BlockExpr
1738 
1739  /// A GenericSelectionExpr record.
1741 
1742  /// A PseudoObjectExpr record.
1744 
1745  /// An AtomicExpr record.
1747 
1748  // Objective-C
1749 
1750  /// An ObjCStringLiteral record.
1752 
1756 
1757  /// An ObjCEncodeExpr record.
1759 
1760  /// An ObjCSelectorExpr record.
1762 
1763  /// An ObjCProtocolExpr record.
1765 
1766  /// An ObjCIvarRefExpr record.
1768 
1769  /// An ObjCPropertyRefExpr record.
1771 
1772  /// An ObjCSubscriptRefExpr record.
1774 
1775  /// UNUSED
1777 
1778  /// An ObjCMessageExpr record.
1780 
1781  /// An ObjCIsa Expr record.
1783 
1784  /// An ObjCIndirectCopyRestoreExpr record.
1786 
1787  /// An ObjCForCollectionStmt record.
1789 
1790  /// An ObjCAtCatchStmt record.
1792 
1793  /// An ObjCAtFinallyStmt record.
1795 
1796  /// An ObjCAtTryStmt record.
1798 
1799  /// An ObjCAtSynchronizedStmt record.
1801 
1802  /// An ObjCAtThrowStmt record.
1804 
1805  /// An ObjCAutoreleasePoolStmt record.
1807 
1808  /// An ObjCBoolLiteralExpr record.
1810 
1811  /// An ObjCAvailabilityCheckExpr record.
1813 
1814  // C++
1815 
1816  /// A CXXCatchStmt record.
1818 
1819  /// A CXXTryStmt record.
1821  /// A CXXForRangeStmt record.
1822 
1824 
1825  /// A CXXOperatorCallExpr record.
1827 
1828  /// A CXXMemberCallExpr record.
1830 
1831  /// A CXXConstructExpr record.
1833 
1834  /// A CXXInheritedCtorInitExpr record.
1836 
1837  /// A CXXTemporaryObjectExpr record.
1839 
1840  /// A CXXStaticCastExpr record.
1842 
1843  /// A CXXDynamicCastExpr record.
1845 
1846  /// A CXXReinterpretCastExpr record.
1848 
1849  /// A CXXConstCastExpr record.
1851 
1852  /// A CXXFunctionalCastExpr record.
1854 
1855  /// A UserDefinedLiteral record.
1857 
1858  /// A CXXStdInitializerListExpr record.
1860 
1861  /// A CXXBoolLiteralExpr record.
1863 
1864  EXPR_CXX_NULL_PTR_LITERAL, // CXXNullPtrLiteralExpr
1865  EXPR_CXX_TYPEID_EXPR, // CXXTypeidExpr (of expr).
1866  EXPR_CXX_TYPEID_TYPE, // CXXTypeidExpr (of type).
1867  EXPR_CXX_THIS, // CXXThisExpr
1868  EXPR_CXX_THROW, // CXXThrowExpr
1869  EXPR_CXX_DEFAULT_ARG, // CXXDefaultArgExpr
1870  EXPR_CXX_DEFAULT_INIT, // CXXDefaultInitExpr
1871  EXPR_CXX_BIND_TEMPORARY, // CXXBindTemporaryExpr
1872 
1873  EXPR_CXX_SCALAR_VALUE_INIT, // CXXScalarValueInitExpr
1874  EXPR_CXX_NEW, // CXXNewExpr
1875  EXPR_CXX_DELETE, // CXXDeleteExpr
1876  EXPR_CXX_PSEUDO_DESTRUCTOR, // CXXPseudoDestructorExpr
1877 
1878  EXPR_EXPR_WITH_CLEANUPS, // ExprWithCleanups
1879 
1880  EXPR_CXX_DEPENDENT_SCOPE_MEMBER, // CXXDependentScopeMemberExpr
1881  EXPR_CXX_DEPENDENT_SCOPE_DECL_REF, // DependentScopeDeclRefExpr
1882  EXPR_CXX_UNRESOLVED_CONSTRUCT, // CXXUnresolvedConstructExpr
1883  EXPR_CXX_UNRESOLVED_MEMBER, // UnresolvedMemberExpr
1884  EXPR_CXX_UNRESOLVED_LOOKUP, // UnresolvedLookupExpr
1885 
1886  EXPR_CXX_EXPRESSION_TRAIT, // ExpressionTraitExpr
1887  EXPR_CXX_NOEXCEPT, // CXXNoexceptExpr
1888 
1889  EXPR_OPAQUE_VALUE, // OpaqueValueExpr
1890  EXPR_BINARY_CONDITIONAL_OPERATOR, // BinaryConditionalOperator
1891  EXPR_TYPE_TRAIT, // TypeTraitExpr
1892  EXPR_ARRAY_TYPE_TRAIT, // ArrayTypeTraitIntExpr
1893 
1894  EXPR_PACK_EXPANSION, // PackExpansionExpr
1895  EXPR_SIZEOF_PACK, // SizeOfPackExpr
1896  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM, // SubstNonTypeTemplateParmExpr
1897  EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK,// SubstNonTypeTemplateParmPackExpr
1898  EXPR_FUNCTION_PARM_PACK, // FunctionParmPackExpr
1899  EXPR_MATERIALIZE_TEMPORARY, // MaterializeTemporaryExpr
1900  EXPR_CXX_FOLD, // CXXFoldExpr
1901 
1902  // CUDA
1903  EXPR_CUDA_KERNEL_CALL, // CUDAKernelCallExpr
1904 
1905  // OpenCL
1906  EXPR_ASTYPE, // AsTypeExpr
1907 
1908  // Microsoft
1909  EXPR_CXX_PROPERTY_REF_EXPR, // MSPropertyRefExpr
1910  EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR, // MSPropertySubscriptExpr
1911  EXPR_CXX_UUIDOF_EXPR, // CXXUuidofExpr (of expr).
1912  EXPR_CXX_UUIDOF_TYPE, // CXXUuidofExpr (of type).
1913  STMT_SEH_LEAVE, // SEHLeaveStmt
1914  STMT_SEH_EXCEPT, // SEHExceptStmt
1915  STMT_SEH_FINALLY, // SEHFinallyStmt
1916  STMT_SEH_TRY, // SEHTryStmt
1917 
1918  // OpenMP directives
1967 
1968  // ARC
1969  EXPR_OBJC_BRIDGED_CAST, // ObjCBridgedCastExpr
1970 
1971  STMT_MS_DEPENDENT_EXISTS, // MSDependentExistsStmt
1972  EXPR_LAMBDA, // LambdaExpr
1978  };
1979 
1980  /// The kinds of designators that can occur in a
1981  /// DesignatedInitExpr.
1983  /// Field designator where only the field name is known.
1985 
1986  /// Field designator where the field has been resolved to
1987  /// a declaration.
1989 
1990  /// Array designator.
1992 
1993  /// GNU array range designator.
1995  };
1996 
1997  /// The different kinds of data that can occur in a
1998  /// CtorInitializer.
2004  };
2005 
2006  /// Describes the redeclarations of a declaration.
2008  // The ID of the first declaration
2010 
2011  // Offset into the array of redeclaration chains.
2012  unsigned Offset;
2013 
2015  const LocalRedeclarationsInfo &Y) {
2016  return X.FirstID < Y.FirstID;
2017  }
2018 
2020  const LocalRedeclarationsInfo &Y) {
2021  return X.FirstID > Y.FirstID;
2022  }
2023 
2025  const LocalRedeclarationsInfo &Y) {
2026  return X.FirstID <= Y.FirstID;
2027  }
2028 
2030  const LocalRedeclarationsInfo &Y) {
2031  return X.FirstID >= Y.FirstID;
2032  }
2033  };
2034 
2035  /// Describes the categories of an Objective-C class.
2037  // The ID of the definition
2039 
2040  // Offset into the array of category lists.
2041  unsigned Offset;
2042 
2043  friend bool operator<(const ObjCCategoriesInfo &X,
2044  const ObjCCategoriesInfo &Y) {
2045  return X.DefinitionID < Y.DefinitionID;
2046  }
2047 
2048  friend bool operator>(const ObjCCategoriesInfo &X,
2049  const ObjCCategoriesInfo &Y) {
2050  return X.DefinitionID > Y.DefinitionID;
2051  }
2052 
2053  friend bool operator<=(const ObjCCategoriesInfo &X,
2054  const ObjCCategoriesInfo &Y) {
2055  return X.DefinitionID <= Y.DefinitionID;
2056  }
2057 
2058  friend bool operator>=(const ObjCCategoriesInfo &X,
2059  const ObjCCategoriesInfo &Y) {
2060  return X.DefinitionID >= Y.DefinitionID;
2061  }
2062  };
2063 
2064  /// A key used when looking up entities by \ref DeclarationName.
2065  ///
2066  /// Different \ref DeclarationNames are mapped to different keys, but the
2067  /// same key can occasionally represent multiple names (for names that
2068  /// contain types, in particular).
2070  using NameKind = unsigned;
2071 
2072  NameKind Kind = 0;
2073  uint64_t Data = 0;
2074 
2075  public:
2076  DeclarationNameKey() = default;
2078  DeclarationNameKey(NameKind Kind, uint64_t Data)
2079  : Kind(Kind), Data(Data) {}
2080 
2081  NameKind getKind() const { return Kind; }
2082 
2084  assert(Kind == DeclarationName::Identifier ||
2087  return (IdentifierInfo *)Data;
2088  }
2089 
2091  assert(Kind == DeclarationName::ObjCZeroArgSelector ||
2094  return Selector(Data);
2095  }
2096 
2098  assert(Kind == DeclarationName::CXXOperatorName);
2099  return (OverloadedOperatorKind)Data;
2100  }
2101 
2102  /// Compute a fingerprint of this key for use in on-disk hash table.
2103  unsigned getHash() const;
2104 
2105  friend bool operator==(const DeclarationNameKey &A,
2106  const DeclarationNameKey &B) {
2107  return A.Kind == B.Kind && A.Data == B.Data;
2108  }
2109  };
2110 
2111  /// @}
2112 
2113 } // namespace serialization
2114 } // namespace clang
2115 
2116 namespace llvm {
2117 
2118  template <> struct DenseMapInfo<clang::serialization::DeclarationNameKey> {
2121  }
2122 
2125  }
2126 
2127  static unsigned
2129  return Key.getHash();
2130  }
2131 
2134  return L == R;
2135  }
2136  };
2137 
2138 } // namespace llvm
2139 
2140 #endif // LLVM_CLANG_SERIALIZATION_ASTBITCODES_H
A PredefinedExpr record.
Definition: ASTBitCodes.h:1629
A FriendTemplateDecl record.
Definition: ASTBitCodes.h:1458
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1689
A NonTypeTemplateParmDecl record.
Definition: ASTBitCodes.h:1485
The ObjC &#39;SEL&#39; type.
Definition: ASTBitCodes.h:889
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
Definition: ASTBitCodes.h:1982
Record code for the preprocessor options table.
Definition: ASTBitCodes.h:358
The &#39;unsigned _Accum&#39; type.
Definition: ASTBitCodes.h:955
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
The &#39;unsigned short _Fract&#39; type.
Definition: ASTBitCodes.h:970
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:1602
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:642
CtorInitializerType
The different kinds of data that can occur in a CtorInitializer.
Definition: ASTBitCodes.h:1999
The &#39;_Float16&#39; type.
Definition: ASTBitCodes.h:937
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1719
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:1841
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:1581
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1847
The &#39;bool&#39; or &#39;_Bool&#39; type.
Definition: ASTBitCodes.h:811
An OMPThreadPrivateDecl record.
Definition: ASTBitCodes.h:1521
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Definition: Dominators.h:30
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1809
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:1029
friend bool operator>(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:2019
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:1542
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1713
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:1683
A VarTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1476
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:1051
The placeholder type for builtin functions.
Definition: ASTBitCodes.h:913
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1826
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:1383
Specifies an umbrella directory.
Definition: ASTBitCodes.h:738
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1838
A SubstTemplateTypeParmType record.
Definition: ASTBitCodes.h:1108
A ObjCPropertyDecl record.
Definition: ASTBitCodes.h:1340
A constant expression context.
Definition: ASTBitCodes.h:1626
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:1105
An UnresolvedUsingType record.
Definition: ASTBitCodes.h:1111
The &#39;short _Fract&#39; type.
Definition: ASTBitCodes.h:961
An OMPRequiresDecl record.
Definition: ASTBitCodes.h:1524
static clang::serialization::DeclarationNameKey getTombstoneKey()
Definition: ASTBitCodes.h:2123
An IncompleteArrayType record.
Definition: ASTBitCodes.h:1063
The internal &#39;__type_pack_element&#39; template.
Definition: ASTBitCodes.h:1270
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:1461
A PragmaDetectMismatchDecl record.
Definition: ASTBitCodes.h:1539
The C++ &#39;char32_t&#39; type.
Definition: ASTBitCodes.h:880
An UnresolvedUsingTypenameDecl record.
Definition: ASTBitCodes.h:1422
The internal &#39;__builtin_va_list&#39; typedef.
Definition: ASTBitCodes.h:1249
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:2043
An OMPCapturedExprDecl record.
Definition: ASTBitCodes.h:1533
Record code for declarations associated with OpenCL extensions.
Definition: ASTBitCodes.h:640
A UsingShadowDecl record.
Definition: ASTBitCodes.h:1410
The width of the "fast" qualifier mask.
Definition: Type.h:184
const unsigned int NUM_PREDEF_DECL_IDS
The number of declaration IDs that are predefined.
Definition: ASTBitCodes.h:1277
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:1511
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:1832
Record code for the target options table.
Definition: ASTBitCodes.h:349
A TemplateTemplateParmDecl record.
Definition: ASTBitCodes.h:1488
Record code for the array of eagerly deserialized decls.
Definition: ASTBitCodes.h:452
A ObjCInterfaceDecl record.
Definition: ASTBitCodes.h:1316
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1731
A CXXConstructorDecl record for an inherited constructor.
Definition: ASTBitCodes.h:1443
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:1659
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:1803
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:1698
The Objective-C &#39;SEL&#39; type.
Definition: ASTBitCodes.h:1231
static bool isEqual(const clang::serialization::DeclarationNameKey &L, const clang::serialization::DeclarationNameKey &R)
Definition: ASTBitCodes.h:2132
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:1185
friend bool operator<=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2053
The &#39;_Sat unsigned _Accum&#39; type.
Definition: ASTBitCodes.h:991
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:1072
Delete expressions that will be analyzed later.
Definition: ASTBitCodes.h:624
friend bool operator==(const DeclarationNameKey &A, const DeclarationNameKey &B)
Definition: ASTBitCodes.h:2105
The &#39;unsigned long _Fract&#39; type.
Definition: ASTBitCodes.h:976
The &#39;long _Fract&#39; type.
Definition: ASTBitCodes.h:967
An AttributedType record.
Definition: ASTBitCodes.h:1141
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:1159
The &#39;short _Accum&#39; type.
Definition: ASTBitCodes.h:943
A IndirectFieldDecl record.
Definition: ASTBitCodes.h:1503
Record code for the set of ext_vector type names.
Definition: ASTBitCodes.h:496
The &#39;long _Accum&#39; type.
Definition: ASTBitCodes.h:949
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:1228
An AccessSpecDecl record.
Definition: ASTBitCodes.h:1452
const unsigned NumSpecialTypeIDs
The number of special type IDs.
Definition: ASTBitCodes.h:1212
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
The &#39;unsigned short _Accum&#39; type.
Definition: ASTBitCodes.h:952
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:1052
The signed 128-bit integer type.
Definition: ASTBitCodes.h:1240
A ConstructorUsingShadowDecl record.
Definition: ASTBitCodes.h:1413
A UnaryTransformType record.
Definition: ASTBitCodes.h:1150
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1563
A UsingDirecitveDecl record.
Definition: ASTBitCodes.h:1416
An ObjCObjectType record.
Definition: ASTBitCodes.h:1117
A ConstantArrayType record.
Definition: ASTBitCodes.h:1060
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:1361
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:1261
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:1557
A ClassTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1464
A BlockPointerType record.
Definition: ASTBitCodes.h:1048
uint32_t getIndex() const
Definition: ASTBitCodes.h:96
A MemberPointerType record.
Definition: ASTBitCodes.h:1057
void * getAsOpaquePtr() const
Definition: Type.h:687
The &#39;_Sat short _Fract&#39; type.
Definition: ASTBitCodes.h:997
The &#39;unsigned long _Accum&#39; type.
Definition: ASTBitCodes.h:958
A DependentSizedExtVectorType record.
Definition: ASTBitCodes.h:1171
The type of &#39;nullptr&#39;.
Definition: ASTBitCodes.h:874
The &#39;_Sat unsigned long _Fract&#39; type.
Definition: ASTBitCodes.h:1012
Record code for the table of offsets into the block of source-location information.
Definition: ASTBitCodes.h:485
A SubstTemplateTypeParmPackType record.
Definition: ASTBitCodes.h:1144
TypeCode
Record codes for each kind of type.
Definition: ASTBitCodes.h:1037
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:1066
unsigned getLocalFastQualifiers() const
Definition: Type.h:669
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:2097
A CXXDeductionGuideDecl record.
Definition: ASTBitCodes.h:1434
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:2048
A StaticAssertDecl record.
Definition: ASTBitCodes.h:1494
A VarTemplateSpecializationDecl record.
Definition: ASTBitCodes.h:1473
Record code for the table of offsets of each macro ID.
Definition: ASTBitCodes.h:601
An ObjCTypeParamDecl record.
Definition: ASTBitCodes.h:1530
A record containing CXXBaseSpecifiers.
Definition: ASTBitCodes.h:1497
Specifies some declarations with initializers that must be emitted to initialize the module...
Definition: ASTBitCodes.h:777
An TemplateSpecializationType record.
Definition: ASTBitCodes.h:1123
An ObjCObjectPointerType record.
Definition: ASTBitCodes.h:1099
An ObjCInterfaceType record.
Definition: ASTBitCodes.h:1096
Describes a zlib-compressed blob that contains the data for a buffer entry.
Definition: ASTBitCodes.h:672
A ObjCCategoryImplDecl record.
Definition: ASTBitCodes.h:1331
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:1343
The &#39;_Sat long _Fract&#39; type.
Definition: ASTBitCodes.h:1003
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:1984
A CXXConstructorDecl record.
Definition: ASTBitCodes.h:1440
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:1859
A record containing CXXCtorInitializers.
Definition: ASTBitCodes.h:1500
A VarTemplateDecl record.
Definition: ASTBitCodes.h:1470
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:1665
The &#39;long double&#39; type.
Definition: ASTBitCodes.h:859
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1707
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:1743
A CXXDestructorDecl record.
Definition: ASTBitCodes.h:1446
A FunctionProtoType record.
Definition: ASTBitCodes.h:1078
A NonTypeTemplateParmDecl record that stores an expanded non-type template parameter pack...
Definition: ASTBitCodes.h:1507
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:1785
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:1401
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:2029
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1701
friend bool operator<(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:2014
An ImplicitParamDecl record.
Definition: ASTBitCodes.h:1355
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1812
An EnumConstantDecl record.
Definition: ASTBitCodes.h:1307
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:1126
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:90
An ImportDecl recording a module import.
Definition: ASTBitCodes.h:1518
A ObjCCategoryDecl record.
Definition: ASTBitCodes.h:1328
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1788
Record code for the identifier table.
Definition: ASTBitCodes.h:442
The &#39;_Sat unsigned long _Accum&#39; type.
Definition: ASTBitCodes.h:994
A ObjCCompatibleAliasDecl record.
Definition: ASTBitCodes.h:1337
The placeholder type for bound member functions.
Definition: ASTBitCodes.h:895
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1623
friend bool operator>=(const ObjCCategoriesInfo &X, const ObjCCategoriesInfo &Y)
Definition: ASTBitCodes.h:2058
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:1234
uint32_t SubmoduleID
An ID number that refers to a submodule in a module file.
Definition: ASTBitCodes.h:172
The &#39;_Sat short _Accum&#39; type.
Definition: ASTBitCodes.h:979
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
The C++ &#39;char8_t&#39; type.
Definition: ASTBitCodes.h:940
Record code for types associated with OpenCL extensions.
Definition: ASTBitCodes.h:637
An UnresolvedUsingValueDecl record.
Definition: ASTBitCodes.h:1419
Kind
The &#39;_Sat unsigned _Fract&#39; type.
Definition: ASTBitCodes.h:1009
Encodes a location in the source.
A record that stores the set of declarations that are visible from a given DeclContext.
Definition: ASTBitCodes.h:1392
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
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:1165
The (signed) &#39;long&#39; type.
Definition: ASTBitCodes.h:847
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1853
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:1758
Record code for late parsed template functions.
Definition: ASTBitCodes.h:613
A dependentSizedVectorType record.
Definition: ASTBitCodes.h:1177
The (signed) &#39;short&#39; type.
Definition: ASTBitCodes.h:841
A TemplateTypeParmDecl record.
Definition: ASTBitCodes.h:1482
The &#39;_Sat _Accum&#39; type.
Definition: ASTBitCodes.h:982
The internal &#39;instancetype&#39; typedef.
Definition: ASTBitCodes.h:1246
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:2083
Describes the categories of an Objective-C class.
Definition: ASTBitCodes.h:2036
The AST block, which acts as a container around the full AST block.
Definition: ASTBitCodes.h:249
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1782
A DeducedTemplateSpecializationType record.
Definition: ASTBitCodes.h:1168
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:1281
UnhashedControlBlockRecordTypes
Record codes for the unhashed control block.
Definition: ASTBitCodes.h:362
An InjectedClassNameType record.
Definition: ASTBitCodes.h:1114
Record code for the extra statistics we gather while generating an AST file.
Definition: ASTBitCodes.h:465
A NamespaceDecl record.
Definition: ASTBitCodes.h:1398
An AtomicExpr record.
Definition: ASTBitCodes.h:1746
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:689
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:1319
SourceLocation getBegin() const
Definition: ASTBitCodes.h:212
friend bool operator<=(const LocalRedeclarationsInfo &X, const LocalRedeclarationsInfo &Y)
Definition: ASTBitCodes.h:2024
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:1449
Describes a macro definition within the preprocessing record.
Definition: ASTBitCodes.h:711
The internal &#39;__NSConstantString&#39; typedef.
Definition: ASTBitCodes.h:1264
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:1695
Describes an inclusion directive within the preprocessing record.
Definition: ASTBitCodes.h:715
The internal &#39;__builtin_ms_va_list&#39; typedef.
Definition: ASTBitCodes.h:1255
Record code for a file sorted array of DeclIDs in a module.
Definition: ASTBitCodes.h:580
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1862
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:1692
Record code for the array of unused file scoped decls.
Definition: ASTBitCodes.h:499
A FunctionNoProtoType record.
Definition: ASTBitCodes.h:1075
The &#39;_Sat unsigned short _Accum&#39; type.
Definition: ASTBitCodes.h:988
A ClassTemplatePartialSpecializationDecl record.
Definition: ASTBitCodes.h:1467
static clang::serialization::DeclarationNameKey getEmptyKey()
Definition: ASTBitCodes.h:2119
DeclCode
Record codes for each kind of declaration.
Definition: ASTBitCodes.h:1293
The &#39;_Sat long _Accum&#39; type.
Definition: ASTBitCodes.h:985
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1806
The name of a declaration.
A ClassScopeFunctionSpecializationDecl record a class scope function specialization.
Definition: ASTBitCodes.h:1515
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:1425
Describes a macro expansion within the preprocessing record.
Definition: ASTBitCodes.h:708
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1844
An RValueReferenceType record.
Definition: ASTBitCodes.h:1054
DeclarationNameKey(NameKind Kind, uint64_t Data)
Definition: ASTBitCodes.h:2078
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:1153
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1794
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:1536
The &#39;unsigned _Fract&#39; type.
Definition: ASTBitCodes.h:973
Record code for the table of offsets into the Objective-C method pool.
Definition: ASTBitCodes.h:474
A DependentSizedArrayType record.
Definition: ASTBitCodes.h:1132
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:1800
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:2069
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:1829
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:1734
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:13849
DeclOffset(SourceLocation Loc, uint32_t BitOffset)
Definition: ASTBitCodes.h:229
GNU array range designator.
Definition: ASTBitCodes.h:1994
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:1710
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1620
An TemplateTypeParmType record.
Definition: ASTBitCodes.h:1120
Record code for the filesystem options table.
Definition: ASTBitCodes.h:352
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1791
A ObjCImplementationDecl record.
Definition: ASTBitCodes.h:1334
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:1988
static unsigned getHashValue(const clang::serialization::DeclarationNameKey &Key)
Definition: ASTBitCodes.h:2128
A ObjCAtDefsFieldDecl record.
Definition: ASTBitCodes.h:1325
Record code for the offsets of each type.
Definition: ASTBitCodes.h:403
A DependentAddressSpaceType record.
Definition: ASTBitCodes.h:1174
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1835
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:1252
const unsigned int LOCAL_REDECLARATIONS
Record code for a list of local redeclarations of a declaration.
Definition: ASTBitCodes.h:1285
A TypeAliasDecl record.
Definition: ASTBitCodes.h:1298
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:2007
The (signed) &#39;int&#39; type.
Definition: ASTBitCodes.h:844
Specifies a required feature.
Definition: ASTBitCodes.h:749
An ExportDecl record.
Definition: ASTBitCodes.h:1428
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:1479
A TypeAliasTemplateDecl record.
Definition: ASTBitCodes.h:1491
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:1267
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:1237
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:1554
The &#39;_Sat unsigned short _Fract&#39; type.
Definition: ASTBitCodes.h:1006
PredefinedDeclIDs
Predefined declaration IDs.
Definition: ASTBitCodes.h:1220
Record code for an update to the TU&#39;s lexically contained declarations.
Definition: ASTBitCodes.h:515
The &#39;_Sat _Fract&#39; type.
Definition: ASTBitCodes.h:1000
Source range/offset of a preprocessed entity.
Definition: ASTBitCodes.h:221
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1740
A type index; the type ID with the qualifier bits removed.
Definition: ASTBitCodes.h:89
Objective-C "Class" redefinition type.
Definition: ASTBitCodes.h:1202
A PackExpansionType record.
Definition: ASTBitCodes.h:1138
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:1129
Record code for the array of tentative definitions.
Definition: ASTBitCodes.h:468
The &#39;__float128&#39; type.
Definition: ASTBitCodes.h:934