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