clang  14.0.0git
Specifiers.h
Go to the documentation of this file.
1 //===--- Specifiers.h - Declaration and Type Specifiers ---------*- 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 /// \file
10 /// Defines various enumerations that describe declaration and
11 /// type specifiers.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CLANG_BASIC_SPECIFIERS_H
16 #define LLVM_CLANG_BASIC_SPECIFIERS_H
17 
18 #include "llvm/ADT/StringRef.h"
19 #include "llvm/Support/DataTypes.h"
20 #include "llvm/Support/ErrorHandling.h"
21 
22 namespace clang {
23 
24  /// Define the meaning of possible values of the kind in ExplicitSpecifier.
25  enum class ExplicitSpecKind : unsigned {
28  Unresolved,
29  };
30 
31  /// Define the kind of constexpr specifier.
33 
34  /// Specifies the width of a type, e.g., short, long, or long long.
36 
37  /// Specifies the signedness of a type, e.g., signed or unsigned.
39 
41 
42  /// Specifies the kind of type.
47  TST_wchar, // C++ wchar_t
48  TST_char8, // C++20 char8_t (proposed)
49  TST_char16, // C++11 char16_t
50  TST_char32, // C++11 char32_t
53  TST_extint, // Extended Int types.
54  TST_half, // OpenCL half, ARM NEON __fp16
55  TST_Float16, // C11 extension ISO/IEC TS 18661-3
56  TST_Accum, // ISO/IEC JTC1 SC22 WG14 N1169 Extension
63  TST_bool, // _Bool
64  TST_decimal32, // _Decimal32
65  TST_decimal64, // _Decimal64
66  TST_decimal128, // _Decimal128
70  TST_class, // C++ class type
71  TST_interface, // C++ (Microsoft-specific) __interface type
72  TST_typename, // Typedef, C++ class-name or enum name, etc.
75  TST_decltype, // C++11 decltype
76  TST_underlyingType, // __underlying_type for C++11
77  TST_auto, // C++11 auto
78  TST_decltype_auto, // C++1y decltype(auto)
79  TST_auto_type, // __auto_type extension
80  TST_unknown_anytype, // __unknown_anytype extension
81  TST_atomic, // C11 _Atomic
82 #define GENERIC_IMAGE_TYPE(ImgType, Id) TST_##ImgType##_t, // OpenCL image types
83 #include "clang/Basic/OpenCLImageTypes.def"
84  TST_error // erroneous type
85  };
86 
87  /// Structure that packs information about the type specifiers that
88  /// were written in a particular type specifier sequence.
90  static_assert(TST_error < 1 << 6, "Type bitfield not wide enough for TST");
91  /*DeclSpec::TST*/ unsigned Type : 6;
92  /*DeclSpec::TSS*/ unsigned Sign : 2;
93  /*TypeSpecifierWidth*/ unsigned Width : 2;
94  unsigned ModeAttr : 1;
95  };
96 
97  /// A C++ access specifier (public, private, protected), plus the
98  /// special value "none" which means different things in different contexts.
104  };
105 
106  /// The categorization of expression values, currently following the
107  /// C++11 scheme.
109  /// A pr-value expression (in the C++11 taxonomy)
110  /// produces a temporary value.
112 
113  /// An l-value expression is a reference to an object with
114  /// independent storage.
116 
117  /// An x-value expression is a reference to an object with
118  /// independent storage but which can be "moved", i.e.
119  /// efficiently cannibalized for its resources.
121  };
122 
123  /// A further classification of the kind of object referenced by an
124  /// l-value or x-value.
126  /// An ordinary object is located at an address in memory.
128 
129  /// A bitfield object is a bitfield on a C or C++ record.
131 
132  /// A vector component is an element or range of elements on a vector.
134 
135  /// An Objective-C property is a logical field of an Objective-C
136  /// object which is read and written via Objective-C method calls.
138 
139  /// An Objective-C array/dictionary subscripting which reads an
140  /// object or writes at the subscripted array/dictionary element via
141  /// Objective-C method calls.
143 
144  /// A matrix component is a single element of a matrix.
146  };
147 
148  /// The reason why a DeclRefExpr does not constitute an odr-use.
150  /// This is an odr-use.
152  /// This name appears in an unevaluated operand.
154  /// This name appears as a potential result of an lvalue-to-rvalue
155  /// conversion that is a constant expression.
157  /// This name appears as a potential result of a discarded value
158  /// expression.
160  };
161 
162  /// Describes the kind of template specialization that a
163  /// particular template specialization declaration represents.
165  /// This template specialization was formed from a template-id but
166  /// has not yet been declared, defined, or instantiated.
168  /// This template specialization was implicitly instantiated from a
169  /// template. (C++ [temp.inst]).
171  /// This template specialization was declared or defined by an
172  /// explicit specialization (C++ [temp.expl.spec]) or partial
173  /// specialization (C++ [temp.class.spec]).
175  /// This template specialization was instantiated from a template
176  /// due to an explicit instantiation declaration request
177  /// (C++11 [temp.explicit]).
179  /// This template specialization was instantiated from a template
180  /// due to an explicit instantiation definition request
181  /// (C++ [temp.explicit]).
183  };
184 
185  /// Determine whether this template specialization kind refers
186  /// to an instantiation of an entity (as opposed to a non-template or
187  /// an explicit specialization).
190  }
191 
192  /// True if this template specialization kind is an explicit
193  /// specialization, explicit instantiation declaration, or explicit
194  /// instantiation definition.
197  switch (Kind) {
201  return true;
202 
203  case TSK_Undeclared:
205  return false;
206  }
207  llvm_unreachable("bad template specialization kind");
208  }
209 
210  /// Thread storage-class-specifier.
213  /// GNU __thread.
215  /// C++11 thread_local. Implies 'static' at block scope, but not at
216  /// class scope.
218  /// C11 _Thread_local. Must be combined with either 'static' or 'extern'
219  /// if used at block scope.
221  };
222 
223  /// Storage classes.
225  // These are legal on both functions and variables.
230 
231  // These are only legal on variables.
234  };
235 
236  /// Checks whether the given storage class is legal for functions.
238  return SC <= SC_PrivateExtern;
239  }
240 
241  /// Checks whether the given storage class is legal for variables.
243  return true;
244  }
245 
246  /// In-class initialization styles for non-static data members.
248  ICIS_NoInit, ///< No in-class initializer.
249  ICIS_CopyInit, ///< Copy initialization.
250  ICIS_ListInit ///< Direct list-initialization.
251  };
252 
253  /// CallingConv - Specifies the calling convention that a function uses.
254  enum CallingConv {
255  CC_C, // __attribute__((cdecl))
256  CC_X86StdCall, // __attribute__((stdcall))
257  CC_X86FastCall, // __attribute__((fastcall))
258  CC_X86ThisCall, // __attribute__((thiscall))
259  CC_X86VectorCall, // __attribute__((vectorcall))
260  CC_X86Pascal, // __attribute__((pascal))
261  CC_Win64, // __attribute__((ms_abi))
262  CC_X86_64SysV, // __attribute__((sysv_abi))
263  CC_X86RegCall, // __attribute__((regcall))
264  CC_AAPCS, // __attribute__((pcs("aapcs")))
265  CC_AAPCS_VFP, // __attribute__((pcs("aapcs-vfp")))
266  CC_IntelOclBicc, // __attribute__((intel_ocl_bicc))
267  CC_SpirFunction, // default for OpenCL functions on SPIR target
268  CC_OpenCLKernel, // inferred for OpenCL kernels
269  CC_Swift, // __attribute__((swiftcall))
270  CC_SwiftAsync, // __attribute__((swiftasynccall))
271  CC_PreserveMost, // __attribute__((preserve_most))
272  CC_PreserveAll, // __attribute__((preserve_all))
273  CC_AArch64VectorCall, // __attribute__((aarch64_vector_pcs))
274  };
275 
276  /// Checks whether the given calling convention supports variadic
277  /// calls. Unprototyped calls also use the variadic call rules.
279  switch (CC) {
280  case CC_X86StdCall:
281  case CC_X86FastCall:
282  case CC_X86ThisCall:
283  case CC_X86RegCall:
284  case CC_X86Pascal:
285  case CC_X86VectorCall:
286  case CC_SpirFunction:
287  case CC_OpenCLKernel:
288  case CC_Swift:
289  case CC_SwiftAsync:
290  return false;
291  default:
292  return true;
293  }
294  }
295 
296  /// The storage duration for an object (per C++ [basic.stc]).
298  SD_FullExpression, ///< Full-expression storage duration (for temporaries).
299  SD_Automatic, ///< Automatic storage duration (most local variables).
300  SD_Thread, ///< Thread storage duration.
301  SD_Static, ///< Static storage duration.
302  SD_Dynamic ///< Dynamic storage duration.
303  };
304 
305  /// Describes the nullability of a particular type.
306  enum class NullabilityKind : uint8_t {
307  /// Values of this type can never be null.
308  NonNull = 0,
309  /// Values of this type can be null.
310  Nullable,
311  /// Whether values of this type can be null is (explicitly)
312  /// unspecified. This captures a (fairly rare) case where we
313  /// can't conclude anything about the nullability of the type even
314  /// though it has been considered.
315  Unspecified,
316  // Generally behaves like Nullable, except when used in a block parameter
317  // that was imported into a swift async method. There, swift will assume
318  // that the parameter can get null even if no error occured. _Nullable
319  // parameters are assumed to only get null on error.
321  };
322 
323  /// Return true if \p L has a weaker nullability annotation than \p R. The
324  /// ordering is: Unspecified < Nullable < NonNull.
326  return uint8_t(L) > uint8_t(R);
327  }
328 
329  /// Retrieve the spelling of the given nullability kind.
331  bool isContextSensitive = false);
332 
333  /// Kinds of parameter ABI.
334  enum class ParameterABI {
335  /// This parameter uses ordinary ABI rules for its type.
336  Ordinary,
337 
338  /// This parameter (which must have pointer type) is a Swift
339  /// indirect result parameter.
341 
342  /// This parameter (which must have pointer-to-pointer type) uses
343  /// the special Swift error-result ABI treatment. There can be at
344  /// most one parameter on a given function that uses this treatment.
346 
347  /// This parameter (which must have pointer type) uses the special
348  /// Swift context-pointer ABI treatment. There can be at
349  /// most one parameter on a given function that uses this treatment.
350  SwiftContext,
351 
352  /// This parameter (which must have pointer type) uses the special
353  /// Swift asynchronous context-pointer ABI treatment. There can be at
354  /// most one parameter on a given function that uses this treatment.
356  };
357 
358  /// Assigned inheritance model for a class in the MS C++ ABI. Must match order
359  /// of spellings in MSInheritanceAttr.
360  enum class MSInheritanceModel {
361  Single = 0,
362  Multiple = 1,
363  Virtual = 2,
364  Unspecified = 3,
365  };
366 
367  llvm::StringRef getParameterABISpelling(ParameterABI kind);
368 
369  inline llvm::StringRef getAccessSpelling(AccessSpecifier AS) {
370  switch (AS) {
372  return "public";
374  return "protected";
376  return "private";
378  return {};
379  }
380  llvm_unreachable("Unknown AccessSpecifier");
381  }
382 } // end namespace clang
383 
384 #endif // LLVM_CLANG_BASIC_SPECIFIERS_H
clang::TypeSpecifierWidth::LongLong
@ LongLong
clang::TST_half
@ TST_half
Definition: Specifiers.h:54
clang::isTemplateExplicitInstantiationOrSpecialization
bool isTemplateExplicitInstantiationOrSpecialization(TemplateSpecializationKind Kind)
True if this template specialization kind is an explicit specialization, explicit instantiation decla...
Definition: Specifiers.h:195
clang::NonOdrUseReason
NonOdrUseReason
The reason why a DeclRefExpr does not constitute an odr-use.
Definition: Specifiers.h:149
clang::TST_Float16
@ TST_Float16
Definition: Specifiers.h:55
clang::TST_char8
@ TST_char8
Definition: Specifiers.h:48
clang::TST_bool
@ TST_bool
Definition: Specifiers.h:63
clang::CC_X86FastCall
@ CC_X86FastCall
Definition: Specifiers.h:257
clang::CC_Win64
@ CC_Win64
Definition: Specifiers.h:261
clang::OK_Ordinary
@ OK_Ordinary
An ordinary object is located at an address in memory.
Definition: Specifiers.h:127
clang::getParameterABISpelling
llvm::StringRef getParameterABISpelling(ParameterABI kind)
Definition: TypePrinter.cpp:850
clang::TST_underlyingType
@ TST_underlyingType
Definition: Specifiers.h:76
clang::MSInheritanceModel::Multiple
@ Multiple
clang::ExplicitSpecKind::Unresolved
@ Unresolved
clang::TST_interface
@ TST_interface
Definition: Specifiers.h:71
clang::WrittenBuiltinSpecs::Sign
unsigned Sign
Definition: Specifiers.h:92
clang::TypeSpecifierSign
TypeSpecifierSign
Specifies the signedness of a type, e.g., signed or unsigned.
Definition: Specifiers.h:38
clang::ParameterABI::SwiftAsyncContext
@ SwiftAsyncContext
This parameter (which must have pointer type) uses the special Swift asynchronous context-pointer ABI...
clang::TypeSpecifiersPipe
TypeSpecifiersPipe
Definition: Specifiers.h:40
clang::TST_unspecified
@ TST_unspecified
Definition: Specifiers.h:44
clang::ExplicitSpecKind::ResolvedFalse
@ ResolvedFalse
clang::TST_typename
@ TST_typename
Definition: Specifiers.h:72
clang::OK_ObjCSubscript
@ OK_ObjCSubscript
An Objective-C array/dictionary subscripting which reads an object or writes at the subscripted array...
Definition: Specifiers.h:142
clang::ParameterABI::Ordinary
@ Ordinary
This parameter uses ordinary ABI rules for its type.
clang::AS_private
@ AS_private
Definition: Specifiers.h:102
clang::TST_void
@ TST_void
Definition: Specifiers.h:45
clang::NOUR_Discarded
@ NOUR_Discarded
This name appears as a potential result of a discarded value expression.
Definition: Specifiers.h:159
clang::TypeSpecifierWidth::Unspecified
@ Unspecified
clang::TSK_Undeclared
@ TSK_Undeclared
This template specialization was formed from a template-id but has not yet been declared,...
Definition: Specifiers.h:167
clang::TST_struct
@ TST_struct
Definition: Specifiers.h:69
clang::VK_XValue
@ VK_XValue
An x-value expression is a reference to an object with independent storage but which can be "moved",...
Definition: Specifiers.h:120
clang::ExprObjectKind
ExprObjectKind
A further classification of the kind of object referenced by an l-value or x-value.
Definition: Specifiers.h:125
clang::TST_enum
@ TST_enum
Definition: Specifiers.h:67
clang::TST_error
@ TST_error
Definition: Specifiers.h:84
clang::TST_auto
@ TST_auto
Definition: Specifiers.h:77
clang::TSCS_thread_local
@ TSCS_thread_local
C++11 thread_local.
Definition: Specifiers.h:217
clang::CC_X86ThisCall
@ CC_X86ThisCall
Definition: Specifiers.h:258
clang::ICIS_CopyInit
@ ICIS_CopyInit
Copy initialization.
Definition: Specifiers.h:249
clang::SD_Automatic
@ SD_Automatic
Automatic storage duration (most local variables).
Definition: Specifiers.h:299
clang::TST_auto_type
@ TST_auto_type
Definition: Specifiers.h:79
clang::TST_unknown_anytype
@ TST_unknown_anytype
Definition: Specifiers.h:80
clang::SD_Dynamic
@ SD_Dynamic
Dynamic storage duration.
Definition: Specifiers.h:302
clang::CC_X86StdCall
@ CC_X86StdCall
Definition: Specifiers.h:256
clang::CC_OpenCLKernel
@ CC_OpenCLKernel
Definition: Specifiers.h:268
clang::StorageDuration
StorageDuration
The storage duration for an object (per C++ [basic.stc]).
Definition: Specifiers.h:297
clang::ConstexprSpecKind::Constinit
@ Constinit
clang::AS_none
@ AS_none
Definition: Specifiers.h:103
clang::MSInheritanceModel::Unspecified
@ Unspecified
clang::TSK_ExplicitInstantiationDeclaration
@ TSK_ExplicitInstantiationDeclaration
This template specialization was instantiated from a template due to an explicit instantiation declar...
Definition: Specifiers.h:178
clang::CC_Swift
@ CC_Swift
Definition: Specifiers.h:269
clang::ParameterABI
ParameterABI
Kinds of parameter ABI.
Definition: Specifiers.h:334
clang::ThreadStorageClassSpecifier
ThreadStorageClassSpecifier
Thread storage-class-specifier.
Definition: Specifiers.h:211
clang::ConstexprSpecKind::Consteval
@ Consteval
clang::TST_decltype
@ TST_decltype
Definition: Specifiers.h:75
clang::TypeSpecifierSign::Signed
@ Signed
clang::isLegalForVariable
bool isLegalForVariable(StorageClass SC)
Checks whether the given storage class is legal for variables.
Definition: Specifiers.h:242
clang::AS_public
@ AS_public
Definition: Specifiers.h:100
clang::SC_Extern
@ SC_Extern
Definition: Specifiers.h:227
clang::TST_atomic
@ TST_atomic
Definition: Specifiers.h:81
clang::OK_BitField
@ OK_BitField
A bitfield object is a bitfield on a C or C++ record.
Definition: Specifiers.h:130
clang::ParameterABI::SwiftIndirectResult
@ SwiftIndirectResult
This parameter (which must have pointer type) is a Swift indirect result parameter.
clang::MSInheritanceModel::Single
@ Single
clang::TypeSpecifierSign::Unspecified
@ Unspecified
clang::WrittenBuiltinSpecs::Type
unsigned Type
Definition: Specifiers.h:90
clang::ICIS_ListInit
@ ICIS_ListInit
Direct list-initialization.
Definition: Specifiers.h:250
clang::CallingConv
CallingConv
CallingConv - Specifies the calling convention that a function uses.
Definition: Specifiers.h:254
clang::ConstexprSpecKind::Constexpr
@ Constexpr
clang::TSK_ExplicitInstantiationDefinition
@ TSK_ExplicitInstantiationDefinition
This template specialization was instantiated from a template due to an explicit instantiation defini...
Definition: Specifiers.h:182
clang::SD_FullExpression
@ SD_FullExpression
Full-expression storage duration (for temporaries).
Definition: Specifiers.h:298
clang::TST_char
@ TST_char
Definition: Specifiers.h:46
clang::TST_int
@ TST_int
Definition: Specifiers.h:51
clang::SC_Register
@ SC_Register
Definition: Specifiers.h:233
clang::TST_int128
@ TST_int128
Definition: Specifiers.h:52
clang::OK_MatrixComponent
@ OK_MatrixComponent
A matrix component is a single element of a matrix.
Definition: Specifiers.h:145
clang::SC_Static
@ SC_Static
Definition: Specifiers.h:228
clang::CC_C
@ CC_C
Definition: Specifiers.h:255
clang::TST_decimal32
@ TST_decimal32
Definition: Specifiers.h:64
clang::supportsVariadicCall
bool supportsVariadicCall(CallingConv CC)
Checks whether the given calling convention supports variadic calls.
Definition: Specifiers.h:278
clang::VK_LValue
@ VK_LValue
An l-value expression is a reference to an object with independent storage.
Definition: Specifiers.h:115
clang::ConstexprSpecKind
ConstexprSpecKind
Define the kind of constexpr specifier.
Definition: Specifiers.h:32
clang::AccessSpecifier
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
Definition: Specifiers.h:99
clang::TST_float
@ TST_float
Definition: Specifiers.h:59
clang::TST_typeofExpr
@ TST_typeofExpr
Definition: Specifiers.h:74
clang::ExplicitSpecKind
ExplicitSpecKind
Define the meaning of possible values of the kind in ExplicitSpecifier.
Definition: Specifiers.h:25
clang::TypeSpecifiersPipe::Pipe
@ Pipe
clang::VK_PRValue
@ VK_PRValue
A pr-value expression (in the C++11 taxonomy) produces a temporary value.
Definition: Specifiers.h:111
clang::TemplateSpecializationKind
TemplateSpecializationKind
Describes the kind of template specialization that a particular template specialization declaration r...
Definition: Specifiers.h:164
clang::TST_Accum
@ TST_Accum
Definition: Specifiers.h:56
clang::getNullabilitySpelling
llvm::StringRef getNullabilitySpelling(NullabilityKind kind, bool isContextSensitive=false)
Retrieve the spelling of the given nullability kind.
Definition: IdentifierTable.cpp:749
clang::CC_SpirFunction
@ CC_SpirFunction
Definition: Specifiers.h:267
clang::AS_protected
@ AS_protected
Definition: Specifiers.h:101
clang::NullabilityKind::Unspecified
@ Unspecified
Whether values of this type can be null is (explicitly) unspecified.
clang::CC_PreserveAll
@ CC_PreserveAll
Definition: Specifiers.h:272
clang::isLegalForFunction
bool isLegalForFunction(StorageClass SC)
Checks whether the given storage class is legal for functions.
Definition: Specifiers.h:237
clang::NOUR_None
@ NOUR_None
This is an odr-use.
Definition: Specifiers.h:151
clang::TST_decimal64
@ TST_decimal64
Definition: Specifiers.h:65
clang::SD_Static
@ SD_Static
Static storage duration.
Definition: Specifiers.h:301
clang::SC_PrivateExtern
@ SC_PrivateExtern
Definition: Specifiers.h:229
clang::hasWeakerNullability
bool hasWeakerNullability(NullabilityKind L, NullabilityKind R)
Return true if L has a weaker nullability annotation than R.
Definition: Specifiers.h:325
clang::TSK_ExplicitSpecialization
@ TSK_ExplicitSpecialization
This template specialization was declared or defined by an explicit specialization (C++ [temp....
Definition: Specifiers.h:174
clang::CC_AAPCS
@ CC_AAPCS
Definition: Specifiers.h:264
clang::TST_wchar
@ TST_wchar
Definition: Specifiers.h:47
clang::ExplicitSpecKind::ResolvedTrue
@ ResolvedTrue
clang::OK_VectorComponent
@ OK_VectorComponent
A vector component is an element or range of elements on a vector.
Definition: Specifiers.h:133
clang::CC_X86VectorCall
@ CC_X86VectorCall
Definition: Specifiers.h:259
clang::NOUR_Unevaluated
@ NOUR_Unevaluated
This name appears in an unevaluated operand.
Definition: Specifiers.h:153
clang::ExprValueKind
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
Definition: Specifiers.h:108
clang::TST_decimal128
@ TST_decimal128
Definition: Specifiers.h:66
clang::TypeSpecifierWidth
TypeSpecifierWidth
Specifies the width of a type, e.g., short, long, or long long.
Definition: Specifiers.h:35
clang::MSInheritanceModel::Virtual
@ Virtual
clang::ObjCPropertyAttribute::Kind
Kind
Definition: DeclObjCCommon.h:22
clang::CC_IntelOclBicc
@ CC_IntelOclBicc
Definition: Specifiers.h:266
clang::TST_ibm128
@ TST_ibm128
Definition: Specifiers.h:62
clang::OK_ObjCProperty
@ OK_ObjCProperty
An Objective-C property is a logical field of an Objective-C object which is read and written via Obj...
Definition: Specifiers.h:137
clang::TST_class
@ TST_class
Definition: Specifiers.h:70
clang::NullabilityKind
NullabilityKind
Describes the nullability of a particular type.
Definition: Specifiers.h:306
clang::TypeSpecifierSign::Unsigned
@ Unsigned
clang::TST_char32
@ TST_char32
Definition: Specifiers.h:50
clang::CC_AArch64VectorCall
@ CC_AArch64VectorCall
Definition: Specifiers.h:273
clang::TSCS__Thread_local
@ TSCS__Thread_local
C11 _Thread_local.
Definition: Specifiers.h:220
clang
Definition: CalledOnceCheck.h:17
clang::TST_extint
@ TST_extint
Definition: Specifiers.h:53
clang::CC_X86Pascal
@ CC_X86Pascal
Definition: Specifiers.h:260
clang::ParameterABI::SwiftErrorResult
@ SwiftErrorResult
This parameter (which must have pointer-to-pointer type) uses the special Swift error-result ABI trea...
clang::CC_X86RegCall
@ CC_X86RegCall
Definition: Specifiers.h:263
clang::TypeSpecifiersPipe::Unspecified
@ Unspecified
clang::CC_SwiftAsync
@ CC_SwiftAsync
Definition: Specifiers.h:270
clang::TST_char16
@ TST_char16
Definition: Specifiers.h:49
clang::CC_PreserveMost
@ CC_PreserveMost
Definition: Specifiers.h:271
clang::NullabilityKind::NullableResult
@ NullableResult
clang::ParameterABI::SwiftContext
@ SwiftContext
This parameter (which must have pointer type) uses the special Swift context-pointer ABI treatment.
unsigned
clang::SD_Thread
@ SD_Thread
Thread storage duration.
Definition: Specifiers.h:300
clang::SC_Auto
@ SC_Auto
Definition: Specifiers.h:232
clang::CC_AAPCS_VFP
@ CC_AAPCS_VFP
Definition: Specifiers.h:265
clang::TSCS___thread
@ TSCS___thread
GNU __thread.
Definition: Specifiers.h:214
clang::MSInheritanceModel
MSInheritanceModel
Assigned inheritance model for a class in the MS C++ ABI.
Definition: Specifiers.h:360
clang::NullabilityKind::Nullable
@ Nullable
Values of this type can be null.
clang::TST_BFloat16
@ TST_BFloat16
Definition: Specifiers.h:58
clang::InClassInitStyle
InClassInitStyle
In-class initialization styles for non-static data members.
Definition: Specifiers.h:247
clang::TST_typeofType
@ TST_typeofType
Definition: Specifiers.h:73
clang::TST_float128
@ TST_float128
Definition: Specifiers.h:61
clang::getAccessSpelling
llvm::StringRef getAccessSpelling(AccessSpecifier AS)
Definition: Specifiers.h:369
clang::isTemplateInstantiation
bool isTemplateInstantiation(TemplateSpecializationKind Kind)
Determine whether this template specialization kind refers to an instantiation of an entity (as oppos...
Definition: Specifiers.h:188
clang::SC_None
@ SC_None
Definition: Specifiers.h:226
clang::CC_X86_64SysV
@ CC_X86_64SysV
Definition: Specifiers.h:262
clang::TST_Fract
@ TST_Fract
Definition: Specifiers.h:57
clang::TSK_ImplicitInstantiation
@ TSK_ImplicitInstantiation
This template specialization was implicitly instantiated from a template.
Definition: Specifiers.h:170
clang::TypeSpecifierWidth::Short
@ Short
clang::WrittenBuiltinSpecs::Width
unsigned Width
Definition: Specifiers.h:93
clang::TST_decltype_auto
@ TST_decltype_auto
Definition: Specifiers.h:78
clang::NullabilityKind::NonNull
@ NonNull
Values of this type can never be null.
clang::TST_union
@ TST_union
Definition: Specifiers.h:68
clang::TST_double
@ TST_double
Definition: Specifiers.h:60
clang::TSCS_unspecified
@ TSCS_unspecified
Definition: Specifiers.h:212
clang::diag::kind
unsigned kind
All of the diagnostics that can be emitted by the frontend.
Definition: DiagnosticIDs.h:60
clang::TypeSpecifierWidth::Long
@ Long
clang::WrittenBuiltinSpecs::ModeAttr
unsigned ModeAttr
Definition: Specifiers.h:94
clang::NOUR_Constant
@ NOUR_Constant
This name appears as a potential result of an lvalue-to-rvalue conversion that is a constant expressi...
Definition: Specifiers.h:156
clang::WrittenBuiltinSpecs
Structure that packs information about the type specifiers that were written in a particular type spe...
Definition: Specifiers.h:89
clang::ICIS_NoInit
@ ICIS_NoInit
No in-class initializer.
Definition: Specifiers.h:248
clang::TypeSpecifierType
TypeSpecifierType
Specifies the kind of type.
Definition: Specifiers.h:43
clang::ConstexprSpecKind::Unspecified
@ Unspecified
clang::StorageClass
StorageClass
Storage classes.
Definition: Specifiers.h:224