clang 23.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
19#include "llvm/ADT/StringRef.h"
20#include "llvm/Support/DataTypes.h"
21#include "llvm/Support/ErrorHandling.h"
22
23namespace llvm {
24class raw_ostream;
25} // namespace llvm
26namespace clang {
27
28 /// Define the meaning of possible values of the kind in ExplicitSpecifier.
34
35 /// Define the kind of constexpr specifier.
37
38 /// In an if statement, this denotes whether the statement is
39 /// a constexpr or consteval if statement.
46
47 /// Specifies the width of a type, e.g., short, long, or long long.
49
50 /// Specifies the signedness of a type, e.g., signed or unsigned.
52
54
55 /// Specifies the kind of type.
60 TST_wchar, // C++ wchar_t
61 TST_char8, // C++20 char8_t (proposed)
62 TST_char16, // C++11 char16_t
63 TST_char32, // C++11 char32_t
66 TST_bitint, // Bit-precise integer types.
67 TST_half, // OpenCL half, ARM NEON __fp16
68 TST_Float16, // C11 extension ISO/IEC TS 18661-3
69 TST_Accum, // ISO/IEC JTC1 SC22 WG14 N1169 Extension
76 TST_bool, // _Bool
77 TST_decimal32, // _Decimal32
78 TST_decimal64, // _Decimal64
79 TST_decimal128, // _Decimal128
83 TST_class, // C++ class type
84 TST_interface, // C++ (Microsoft-specific) __interface type
85 TST_typename, // Typedef, C++ class-name or enum name, etc.
86 TST_typeofType, // C23 (and GNU extension) typeof(type-name)
87 TST_typeofExpr, // C23 (and GNU extension) typeof(expression)
88 TST_typeof_unqualType, // C23 typeof_unqual(type-name)
89 TST_typeof_unqualExpr, // C23 typeof_unqual(expression)
90 TST_decltype, // C++11 decltype
91#define TRANSFORM_TYPE_TRAIT_DEF(_, Trait) TST_##Trait,
92#include "clang/Basic/TransformTypeTraits.def"
93 TST_auto, // C++11 auto
94 TST_decltype_auto, // C++1y decltype(auto)
95 TST_auto_type, // __auto_type extension
96 TST_unknown_anytype, // __unknown_anytype extension
97 TST_atomic, // C11 _Atomic
99#define GENERIC_IMAGE_TYPE(ImgType, Id) \
100 TST_##ImgType##_t, // OpenCL image types
101#include "clang/Basic/OpenCLImageTypes.def"
102#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) \
103 TST_##Name, // HLSL Intangible Types
104#include "clang/Basic/HLSLIntangibleTypes.def"
105 TST_error // erroneous type
106 };
107
108 /// Structure that packs information about the type specifiers that
109 /// were written in a particular type specifier sequence.
111 static_assert(TST_error < 1 << 7, "Type bitfield not wide enough for TST");
112 LLVM_PREFERRED_TYPE(TypeSpecifierType)
114 LLVM_PREFERRED_TYPE(TypeSpecifierSign)
115 unsigned Sign : 2;
116 LLVM_PREFERRED_TYPE(TypeSpecifierWidth)
117 unsigned Width : 2;
118 LLVM_PREFERRED_TYPE(bool)
119 unsigned ModeAttr : 1;
120 };
121
122 /// A C++ access specifier (public, private, protected), plus the
123 /// special value "none" which means different things in different contexts.
130
131 /// The categorization of expression values, currently following the
132 /// C++11 scheme.
134 /// A pr-value expression (in the C++11 taxonomy)
135 /// produces a temporary value.
137
138 /// An l-value expression is a reference to an object with
139 /// independent storage.
141
142 /// An x-value expression is a reference to an object with
143 /// independent storage but which can be "moved", i.e.
144 /// efficiently cannibalized for its resources.
146 };
147
148 /// A further classification of the kind of object referenced by an
149 /// l-value or x-value.
151 /// An ordinary object is located at an address in memory.
153
154 /// A bitfield object is a bitfield on a C or C++ record.
156
157 /// A vector component is an element or range of elements of a vector.
159
160 /// An Objective-C property is a logical field of an Objective-C
161 /// object which is read and written via Objective-C method calls.
163
164 /// An Objective-C array/dictionary subscripting which reads an
165 /// object or writes at the subscripted array/dictionary element via
166 /// Objective-C method calls.
168
169 /// A matrix component is a single element or range of elements of a matrix.
171 };
172
173 /// The reason why a DeclRefExpr does not constitute an odr-use.
175 /// This is an odr-use.
177 /// This name appears in an unevaluated operand.
179 /// This name appears as a potential result of an lvalue-to-rvalue
180 /// conversion that is a constant expression.
182 /// This name appears as a potential result of a discarded value
183 /// expression.
185 };
186
187 /// Describes the kind of template specialization that a
188 /// particular template specialization declaration represents.
190 /// This template specialization was formed from a template-id but
191 /// has not yet been declared, defined, or instantiated.
193 /// This template specialization was implicitly instantiated from a
194 /// template. (C++ [temp.inst]).
196 /// This template specialization was declared or defined by an
197 /// explicit specialization (C++ [temp.expl.spec]) or partial
198 /// specialization (C++ [temp.class.spec]).
200 /// This template specialization was instantiated from a template
201 /// due to an explicit instantiation declaration request
202 /// (C++11 [temp.explicit]).
204 /// This template specialization was instantiated from a template
205 /// due to an explicit instantiation definition request
206 /// (C++ [temp.explicit]).
208 };
209
210 /// Determine whether this template specialization kind refers
211 /// to an instantiation of an entity (as opposed to a non-template or
212 /// an explicit specialization).
214 return Kind != TSK_Undeclared && Kind != TSK_ExplicitSpecialization;
215 }
216
217 /// True if this template specialization kind is an explicit
218 /// specialization, explicit instantiation declaration, or explicit
219 /// instantiation definition.
222 switch (Kind) {
226 return true;
227
228 case TSK_Undeclared:
230 return false;
231 }
232 llvm_unreachable("bad template specialization kind");
233 }
234
235 /// Thread storage-class-specifier.
238 /// GNU __thread.
240 /// C++11 thread_local. Implies 'static' at block scope, but not at
241 /// class scope.
243 /// C11 _Thread_local. Must be combined with either 'static' or 'extern'
244 /// if used at block scope.
246 };
247
248 /// Storage classes.
250 // These are legal on both functions and variables.
255
256 // These are only legal on variables.
259 };
260
261 /// Checks whether the given storage class is legal for functions.
263 return SC <= SC_PrivateExtern;
264 }
265
266 /// Checks whether the given storage class is legal for variables.
268 return true;
269 }
270
271 /// In-class initialization styles for non-static data members.
273 ICIS_NoInit, ///< No in-class initializer.
274 ICIS_CopyInit, ///< Copy initialization.
275 ICIS_ListInit ///< Direct list-initialization.
276 };
277
278 /// CallingConv - Specifies the calling convention that a function uses.
280 CC_C, // __attribute__((cdecl))
281 CC_X86StdCall, // __attribute__((stdcall))
282 CC_X86FastCall, // __attribute__((fastcall))
283 CC_X86ThisCall, // __attribute__((thiscall))
284 CC_X86VectorCall, // __attribute__((vectorcall))
285 CC_X86Pascal, // __attribute__((pascal))
286 CC_Win64, // __attribute__((ms_abi))
287 CC_X86_64SysV, // __attribute__((sysv_abi))
288 CC_X86RegCall, // __attribute__((regcall))
289 CC_AAPCS, // __attribute__((pcs("aapcs")))
290 CC_AAPCS_VFP, // __attribute__((pcs("aapcs-vfp")))
291 CC_IntelOclBicc, // __attribute__((intel_ocl_bicc))
292 CC_SpirFunction, // default for OpenCL functions on SPIR target
293 CC_DeviceKernel, // __attribute__((device_kernel))
294 CC_Swift, // __attribute__((swiftcall))
295 CC_SwiftAsync, // __attribute__((swiftasynccall))
296 CC_PreserveMost, // __attribute__((preserve_most))
297 CC_PreserveAll, // __attribute__((preserve_all))
298 CC_AArch64VectorCall, // __attribute__((aarch64_vector_pcs))
299 CC_AArch64SVEPCS, // __attribute__((aarch64_sve_pcs))
300 CC_M68kRTD, // __attribute__((m68k_rtd))
301 CC_PreserveNone, // __attribute__((preserve_none))
302 CC_RISCVVectorCall, // __attribute__((riscv_vector_cc))
303 CC_RISCVVLSCall_32, // __attribute__((riscv_vls_cc(32)))
304 CC_RISCVVLSCall_64, // __attribute__((riscv_vls_cc(64)))
305 CC_RISCVVLSCall_128, // __attribute__((riscv_vls_cc)) or
306 // __attribute__((riscv_vls_cc(128)))
307 CC_RISCVVLSCall_256, // __attribute__((riscv_vls_cc(256)))
308 CC_RISCVVLSCall_512, // __attribute__((riscv_vls_cc(512)))
309 CC_RISCVVLSCall_1024, // __attribute__((riscv_vls_cc(1024)))
310 CC_RISCVVLSCall_2048, // __attribute__((riscv_vls_cc(2048)))
311 CC_RISCVVLSCall_4096, // __attribute__((riscv_vls_cc(4096)))
312 CC_RISCVVLSCall_8192, // __attribute__((riscv_vls_cc(8192)))
313 CC_RISCVVLSCall_16384, // __attribute__((riscv_vls_cc(16384)))
314 CC_RISCVVLSCall_32768, // __attribute__((riscv_vls_cc(32768)))
315 CC_RISCVVLSCall_65536, // __attribute__((riscv_vls_cc(65536)))
316 };
317
318 /// Checks whether the given calling convention supports variadic
319 /// calls. Unprototyped calls also use the variadic call rules.
321 switch (CC) {
322 case CC_X86StdCall:
323 case CC_X86FastCall:
324 case CC_X86ThisCall:
325 case CC_X86RegCall:
326 case CC_X86Pascal:
327 case CC_X86VectorCall:
328 case CC_SpirFunction:
329 case CC_DeviceKernel:
330 case CC_Swift:
331 case CC_SwiftAsync:
332 case CC_M68kRTD:
333 return false;
334 default:
335 return true;
336 }
337 }
338
339 /// The storage duration for an object (per C++ [basic.stc]).
341 SD_FullExpression, ///< Full-expression storage duration (for temporaries).
342 SD_Automatic, ///< Automatic storage duration (most local variables).
343 SD_Thread, ///< Thread storage duration.
344 SD_Static, ///< Static storage duration.
345 SD_Dynamic ///< Dynamic storage duration.
346 };
347
348 /// Describes the nullability of a particular type.
349 enum class NullabilityKind : uint8_t {
350 /// Values of this type can never be null.
352 /// Values of this type can be null.
354 /// Whether values of this type can be null is (explicitly)
355 /// unspecified. This captures a (fairly rare) case where we
356 /// can't conclude anything about the nullability of the type even
357 /// though it has been considered.
359 // Generally behaves like Nullable, except when used in a block parameter
360 // that was imported into a swift async method. There, swift will assume
361 // that the parameter can get null even if no error occurred. _Nullable
362 // parameters are assumed to only get null on error.
364 };
366
367 /// Prints human-readable debug representation.
368 llvm::raw_ostream &operator<<(llvm::raw_ostream&, NullabilityKind);
369
370 /// Return true if \p L has a weaker nullability annotation than \p R. The
371 /// ordering is: Unspecified < Nullable < NonNull.
373 return uint8_t(L) > uint8_t(R);
374 }
375
376 /// Retrieve the spelling of the given nullability kind.
378 bool isContextSensitive = false);
379
380 /// Kinds of parameter ABI.
381 enum class ParameterABI {
382 /// This parameter uses ordinary ABI rules for its type.
384
385 /// This parameter (which must have pointer type) is a Swift
386 /// indirect result parameter.
388
389 /// This parameter (which must have pointer-to-pointer type) uses
390 /// the special Swift error-result ABI treatment. There can be at
391 /// most one parameter on a given function that uses this treatment.
393
394 /// This parameter (which must have pointer type) uses the special
395 /// Swift context-pointer ABI treatment. There can be at
396 /// most one parameter on a given function that uses this treatment.
398
399 /// This parameter (which must have pointer type) uses the special
400 /// Swift asynchronous context-pointer ABI treatment. There can be at
401 /// most one parameter on a given function that uses this treatment.
403
404 // This parameter is a copy-out HLSL parameter.
406
407 // This parameter is a copy-in/copy-out HLSL parameter.
409 };
410
411 /// Assigned inheritance model for a class in the MS C++ ABI. Must match order
412 /// of spellings in MSInheritanceAttr.
419
421
422 inline llvm::StringRef getAccessSpelling(AccessSpecifier AS) {
423 switch (AS) {
425 return "public";
427 return "protected";
429 return "private";
431 return {};
432 }
433 llvm_unreachable("Unknown AccessSpecifier");
434 }
435} // end namespace clang
436
437#endif // LLVM_CLANG_BASIC_SPECIFIERS_H
*collection of selector each with an associated kind and an ordered *collection of selectors A selector has a kind
Defines clang::OptionalUnsigned.
The JSON file list parser is used to communicate input to InstallAPI.
TypeSpecifierType
Specifies the kind of type.
Definition Specifiers.h:56
@ TST_typeof_unqualType
Definition Specifiers.h:88
@ TST_ibm128
Definition Specifiers.h:75
@ TST_decimal64
Definition Specifiers.h:78
@ TST_float
Definition Specifiers.h:72
@ TST_auto_type
Definition Specifiers.h:95
@ TST_auto
Definition Specifiers.h:93
@ TST_typeof_unqualExpr
Definition Specifiers.h:89
@ TST_decimal32
Definition Specifiers.h:77
@ TST_int128
Definition Specifiers.h:65
@ TST_atomic
Definition Specifiers.h:97
@ TST_half
Definition Specifiers.h:67
@ TST_decltype
Definition Specifiers.h:90
@ TST_typename_pack_indexing
Definition Specifiers.h:98
@ TST_char32
Definition Specifiers.h:63
@ TST_struct
Definition Specifiers.h:82
@ TST_typeofType
Definition Specifiers.h:86
@ TST_bitint
Definition Specifiers.h:66
@ TST_wchar
Definition Specifiers.h:60
@ TST_BFloat16
Definition Specifiers.h:71
@ TST_char16
Definition Specifiers.h:62
@ TST_char
Definition Specifiers.h:59
@ TST_unspecified
Definition Specifiers.h:57
@ TST_class
Definition Specifiers.h:83
@ TST_union
Definition Specifiers.h:81
@ TST_Fract
Definition Specifiers.h:70
@ TST_float128
Definition Specifiers.h:74
@ TST_double
Definition Specifiers.h:73
@ TST_Accum
Definition Specifiers.h:69
@ TST_int
Definition Specifiers.h:64
@ TST_bool
Definition Specifiers.h:76
@ TST_typeofExpr
Definition Specifiers.h:87
@ TST_typename
Definition Specifiers.h:85
@ TST_void
Definition Specifiers.h:58
@ TST_unknown_anytype
Definition Specifiers.h:96
@ TST_enum
Definition Specifiers.h:80
@ TST_error
Definition Specifiers.h:105
@ TST_decltype_auto
Definition Specifiers.h:94
@ TST_interface
Definition Specifiers.h:84
@ TST_Float16
Definition Specifiers.h:68
@ TST_char8
Definition Specifiers.h:61
@ TST_decimal128
Definition Specifiers.h:79
bool isTemplateInstantiation(TemplateSpecializationKind Kind)
Determine whether this template specialization kind refers to an instantiation of an entity (as oppos...
Definition Specifiers.h:213
llvm::StringRef getAccessSpelling(AccessSpecifier AS)
Definition Specifiers.h:422
llvm::StringRef getParameterABISpelling(ParameterABI kind)
ConstexprSpecKind
Define the kind of constexpr specifier.
Definition Specifiers.h:36
IfStatementKind
In an if statement, this denotes whether the statement is a constexpr or consteval if statement.
Definition Specifiers.h:40
NullabilityKind
Describes the nullability of a particular type.
Definition Specifiers.h:349
@ Nullable
Values of this type can be null.
Definition Specifiers.h:353
@ NonNull
Values of this type can never be null.
Definition Specifiers.h:351
InClassInitStyle
In-class initialization styles for non-static data members.
Definition Specifiers.h:272
@ ICIS_CopyInit
Copy initialization.
Definition Specifiers.h:274
@ ICIS_ListInit
Direct list-initialization.
Definition Specifiers.h:275
@ ICIS_NoInit
No in-class initializer.
Definition Specifiers.h:273
ExprObjectKind
A further classification of the kind of object referenced by an l-value or x-value.
Definition Specifiers.h:150
@ OK_VectorComponent
A vector component is an element or range of elements of a vector.
Definition Specifiers.h:158
@ 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:162
@ OK_ObjCSubscript
An Objective-C array/dictionary subscripting which reads an object or writes at the subscripted array...
Definition Specifiers.h:167
@ OK_Ordinary
An ordinary object is located at an address in memory.
Definition Specifiers.h:152
@ OK_BitField
A bitfield object is a bitfield on a C or C++ record.
Definition Specifiers.h:155
@ OK_MatrixComponent
A matrix component is a single element or range of elements of a matrix.
Definition Specifiers.h:170
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
Definition Specifiers.h:124
@ AS_public
Definition Specifiers.h:125
@ AS_protected
Definition Specifiers.h:126
@ AS_none
Definition Specifiers.h:128
@ AS_private
Definition Specifiers.h:127
StorageClass
Storage classes.
Definition Specifiers.h:249
@ SC_Auto
Definition Specifiers.h:257
@ SC_PrivateExtern
Definition Specifiers.h:254
@ SC_Extern
Definition Specifiers.h:252
@ SC_Register
Definition Specifiers.h:258
@ SC_Static
Definition Specifiers.h:253
@ SC_None
Definition Specifiers.h:251
ThreadStorageClassSpecifier
Thread storage-class-specifier.
Definition Specifiers.h:236
@ TSCS_thread_local
C++11 thread_local.
Definition Specifiers.h:242
@ TSCS_unspecified
Definition Specifiers.h:237
@ TSCS__Thread_local
C11 _Thread_local.
Definition Specifiers.h:245
@ TSCS___thread
GNU __thread.
Definition Specifiers.h:239
TypeSpecifiersPipe
Definition Specifiers.h:53
StorageDuration
The storage duration for an object (per C++ [basic.stc]).
Definition Specifiers.h:340
@ SD_Thread
Thread storage duration.
Definition Specifiers.h:343
@ SD_Static
Static storage duration.
Definition Specifiers.h:344
@ SD_FullExpression
Full-expression storage duration (for temporaries).
Definition Specifiers.h:341
@ SD_Automatic
Automatic storage duration (most local variables).
Definition Specifiers.h:342
@ SD_Dynamic
Dynamic storage duration.
Definition Specifiers.h:345
llvm::StringRef getNullabilitySpelling(NullabilityKind kind, bool isContextSensitive=false)
Retrieve the spelling of the given nullability kind.
ParameterABI
Kinds of parameter ABI.
Definition Specifiers.h:381
@ SwiftAsyncContext
This parameter (which must have pointer type) uses the special Swift asynchronous context-pointer ABI...
Definition Specifiers.h:402
@ SwiftErrorResult
This parameter (which must have pointer-to-pointer type) uses the special Swift error-result ABI trea...
Definition Specifiers.h:392
@ SwiftIndirectResult
This parameter (which must have pointer type) is a Swift indirect result parameter.
Definition Specifiers.h:387
@ SwiftContext
This parameter (which must have pointer type) uses the special Swift context-pointer ABI treatment.
Definition Specifiers.h:397
bool supportsVariadicCall(CallingConv CC)
Checks whether the given calling convention supports variadic calls.
Definition Specifiers.h:320
bool hasWeakerNullability(NullabilityKind L, NullabilityKind R)
Return true if L has a weaker nullability annotation than R.
Definition Specifiers.h:372
bool isLegalForFunction(StorageClass SC)
Checks whether the given storage class is legal for functions.
Definition Specifiers.h:262
TypeSpecifierWidth
Specifies the width of a type, e.g., short, long, or long long.
Definition Specifiers.h:48
TypeSpecifierSign
Specifies the signedness of a type, e.g., signed or unsigned.
Definition Specifiers.h:51
bool isLegalForVariable(StorageClass SC)
Checks whether the given storage class is legal for variables.
Definition Specifiers.h:267
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
Definition Specifiers.h:133
@ VK_PRValue
A pr-value expression (in the C++11 taxonomy) produces a temporary value.
Definition Specifiers.h:136
@ VK_XValue
An x-value expression is a reference to an object with independent storage but which can be "moved",...
Definition Specifiers.h:145
@ VK_LValue
An l-value expression is a reference to an object with independent storage.
Definition Specifiers.h:140
MSInheritanceModel
Assigned inheritance model for a class in the MS C++ ABI.
Definition Specifiers.h:413
ExplicitSpecKind
Define the meaning of possible values of the kind in ExplicitSpecifier.
Definition Specifiers.h:29
const StreamingDiagnostic & operator<<(const StreamingDiagnostic &DB, const ConceptReference *C)
Insertion operator for diagnostics.
TemplateSpecializationKind
Describes the kind of template specialization that a particular template specialization declaration r...
Definition Specifiers.h:189
@ TSK_ExplicitInstantiationDefinition
This template specialization was instantiated from a template due to an explicit instantiation defini...
Definition Specifiers.h:207
@ TSK_ExplicitInstantiationDeclaration
This template specialization was instantiated from a template due to an explicit instantiation declar...
Definition Specifiers.h:203
@ TSK_ExplicitSpecialization
This template specialization was declared or defined by an explicit specialization (C++ [temp....
Definition Specifiers.h:199
@ TSK_ImplicitInstantiation
This template specialization was implicitly instantiated from a template.
Definition Specifiers.h:195
@ TSK_Undeclared
This template specialization was formed from a template-id but has not yet been declared,...
Definition Specifiers.h:192
CallingConv
CallingConv - Specifies the calling convention that a function uses.
Definition Specifiers.h:279
@ CC_RISCVVLSCall_64
Definition Specifiers.h:304
@ CC_X86Pascal
Definition Specifiers.h:285
@ CC_RISCVVLSCall_128
Definition Specifiers.h:305
@ CC_RISCVVLSCall_65536
Definition Specifiers.h:315
@ CC_Swift
Definition Specifiers.h:294
@ CC_IntelOclBicc
Definition Specifiers.h:291
@ CC_RISCVVLSCall_4096
Definition Specifiers.h:311
@ CC_PreserveMost
Definition Specifiers.h:296
@ CC_Win64
Definition Specifiers.h:286
@ CC_RISCVVLSCall_8192
Definition Specifiers.h:312
@ CC_RISCVVLSCall_512
Definition Specifiers.h:308
@ CC_X86ThisCall
Definition Specifiers.h:283
@ CC_AArch64VectorCall
Definition Specifiers.h:298
@ CC_DeviceKernel
Definition Specifiers.h:293
@ CC_AAPCS
Definition Specifiers.h:289
@ CC_PreserveNone
Definition Specifiers.h:301
@ CC_M68kRTD
Definition Specifiers.h:300
@ CC_SwiftAsync
Definition Specifiers.h:295
@ CC_X86RegCall
Definition Specifiers.h:288
@ CC_RISCVVectorCall
Definition Specifiers.h:302
@ CC_X86VectorCall
Definition Specifiers.h:284
@ CC_SpirFunction
Definition Specifiers.h:292
@ CC_AArch64SVEPCS
Definition Specifiers.h:299
@ CC_RISCVVLSCall_32
Definition Specifiers.h:303
@ CC_X86StdCall
Definition Specifiers.h:281
@ CC_RISCVVLSCall_16384
Definition Specifiers.h:313
@ CC_RISCVVLSCall_2048
Definition Specifiers.h:310
@ CC_RISCVVLSCall_256
Definition Specifiers.h:307
@ CC_X86_64SysV
Definition Specifiers.h:287
@ CC_RISCVVLSCall_1024
Definition Specifiers.h:309
@ CC_RISCVVLSCall_32768
Definition Specifiers.h:314
@ CC_PreserveAll
Definition Specifiers.h:297
@ CC_X86FastCall
Definition Specifiers.h:282
@ CC_AAPCS_VFP
Definition Specifiers.h:290
bool isTemplateExplicitInstantiationOrSpecialization(TemplateSpecializationKind Kind)
True if this template specialization kind is an explicit specialization, explicit instantiation decla...
Definition Specifiers.h:220
OptionalUnsigned< NullabilityKind > NullabilityKindOrNone
Definition Specifiers.h:365
NonOdrUseReason
The reason why a DeclRefExpr does not constitute an odr-use.
Definition Specifiers.h:174
@ NOUR_Discarded
This name appears as a potential result of a discarded value expression.
Definition Specifiers.h:184
@ NOUR_Unevaluated
This name appears in an unevaluated operand.
Definition Specifiers.h:178
@ NOUR_None
This is an odr-use.
Definition Specifiers.h:176
@ NOUR_Constant
This name appears as a potential result of an lvalue-to-rvalue conversion that is a constant expressi...
Definition Specifiers.h:181
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30
Structure that packs information about the type specifiers that were written in a particular type spe...
Definition Specifiers.h:110