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