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