clang 24.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/BuiltinTraits.inc"
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#define HLSL_PACKED_TYPE(Name, Id, SingletonId) \
106 TST_##Name, // HLSL Packed Types
107#include "clang/Basic/HLSLPackedTypes.def"
108 TST_error // erroneous type
109 };
110
111 /// Structure that packs information about the type specifiers that
112 /// were written in a particular type specifier sequence.
114 static_assert(TST_error < 1 << 7, "Type bitfield not wide enough for TST");
115 LLVM_PREFERRED_TYPE(TypeSpecifierType)
117 LLVM_PREFERRED_TYPE(TypeSpecifierSign)
118 unsigned Sign : 2;
119 LLVM_PREFERRED_TYPE(TypeSpecifierWidth)
120 unsigned Width : 2;
121 LLVM_PREFERRED_TYPE(bool)
122 unsigned ModeAttr : 1;
123 };
124
125 /// A C++ access specifier (public, private, protected), plus the
126 /// special value "none" which means different things in different contexts.
133
134 /// The categorization of expression values, currently following the
135 /// C++11 scheme.
137 /// A pr-value expression (in the C++11 taxonomy)
138 /// produces a temporary value.
140
141 /// An l-value expression is a reference to an object with
142 /// independent storage.
144
145 /// An x-value expression is a reference to an object with
146 /// independent storage but which can be "moved", i.e.
147 /// efficiently cannibalized for its resources.
149 };
150
151 /// A further classification of the kind of object referenced by an
152 /// l-value or x-value.
154 /// An ordinary object is located at an address in memory.
156
157 /// A bitfield object is a bitfield on a C or C++ record.
159
160 /// A vector component is an element or range of elements of a vector.
162
163 /// An Objective-C property is a logical field of an Objective-C
164 /// object which is read and written via Objective-C method calls.
166
167 /// An Objective-C array/dictionary subscripting which reads an
168 /// object or writes at the subscripted array/dictionary element via
169 /// Objective-C method calls.
171
172 /// A matrix component is a single element or range of elements of a matrix.
174 };
175
176 /// The reason why a DeclRefExpr does not constitute an odr-use.
178 /// This is an odr-use.
180 /// This name appears in an unevaluated operand.
182 /// This name appears as a potential result of an lvalue-to-rvalue
183 /// conversion that is a constant expression.
185 /// This name appears as a potential result of a discarded value
186 /// expression.
188 };
189
190 /// Describes the kind of template specialization that a
191 /// particular template specialization declaration represents.
193 /// This template specialization was formed from a template-id but
194 /// has not yet been declared, defined, or instantiated.
196 /// This template specialization was implicitly instantiated from a
197 /// template. (C++ [temp.inst]).
199 /// This template specialization was declared or defined by an
200 /// explicit specialization (C++ [temp.expl.spec]) or partial
201 /// specialization (C++ [temp.class.spec]).
203 /// This template specialization was instantiated from a template
204 /// due to an explicit instantiation declaration request
205 /// (C++11 [temp.explicit]).
207 /// This template specialization was instantiated from a template
208 /// due to an explicit instantiation definition request
209 /// (C++ [temp.explicit]).
211 };
212
213 /// Determine whether this template specialization kind refers
214 /// to an instantiation of an entity (as opposed to a non-template or
215 /// an explicit specialization).
217 return Kind != TSK_Undeclared && Kind != TSK_ExplicitSpecialization;
218 }
219
220 /// True if this template specialization kind is an explicit
221 /// specialization, explicit instantiation declaration, or explicit
222 /// instantiation definition.
225 switch (Kind) {
229 return true;
230
231 case TSK_Undeclared:
233 return false;
234 }
235 llvm_unreachable("bad template specialization kind");
236 }
237
238 /// Thread storage-class-specifier.
241 /// GNU __thread.
243 /// C++11 thread_local. Implies 'static' at block scope, but not at
244 /// class scope.
246 /// C11 _Thread_local. Must be combined with either 'static' or 'extern'
247 /// if used at block scope.
249 };
250
251 /// Storage classes.
253 // These are legal on both functions and variables.
258
259 // These are only legal on variables.
262 };
263
264 /// Checks whether the given storage class is legal for functions.
266 return SC <= SC_PrivateExtern;
267 }
268
269 /// Checks whether the given storage class is legal for variables.
271 return true;
272 }
273
274 /// In-class initialization styles for non-static data members.
276 ICIS_NoInit, ///< No in-class initializer.
277 ICIS_CopyInit, ///< Copy initialization.
278 ICIS_ListInit ///< Direct list-initialization.
279 };
280
281 /// CallingConv - Specifies the calling convention that a function uses.
283 CC_C, // __attribute__((cdecl))
284 CC_X86StdCall, // __attribute__((stdcall))
285 CC_X86FastCall, // __attribute__((fastcall))
286 CC_X86ThisCall, // __attribute__((thiscall))
287 CC_X86VectorCall, // __attribute__((vectorcall))
288 CC_X86Pascal, // __attribute__((pascal))
289 CC_Win64, // __attribute__((ms_abi))
290 CC_X86_64SysV, // __attribute__((sysv_abi))
291 CC_X86RegCall, // __attribute__((regcall))
292 CC_AAPCS, // __attribute__((pcs("aapcs")))
293 CC_AAPCS_VFP, // __attribute__((pcs("aapcs-vfp")))
294 CC_IntelOclBicc, // __attribute__((intel_ocl_bicc))
295 CC_DeviceKernel, // __attribute__((device_kernel))
296 CC_Swift, // __attribute__((swiftcall))
297 CC_SwiftAsync, // __attribute__((swiftasynccall))
298 CC_PreserveMost, // __attribute__((preserve_most))
299 CC_PreserveAll, // __attribute__((preserve_all))
300 CC_AArch64VectorCall, // __attribute__((aarch64_vector_pcs))
301 CC_AArch64SVEPCS, // __attribute__((aarch64_sve_pcs))
302 CC_M68kRTD, // __attribute__((m68k_rtd))
303 CC_PreserveNone, // __attribute__((preserve_none))
304 CC_RISCVVectorCall, // __attribute__((riscv_vector_cc))
305 CC_RISCVVLSCall_32, // __attribute__((riscv_vls_cc(32)))
306 CC_RISCVVLSCall_64, // __attribute__((riscv_vls_cc(64)))
307 CC_RISCVVLSCall_128, // __attribute__((riscv_vls_cc)) or
308 // __attribute__((riscv_vls_cc(128)))
309 CC_RISCVVLSCall_256, // __attribute__((riscv_vls_cc(256)))
310 CC_RISCVVLSCall_512, // __attribute__((riscv_vls_cc(512)))
311 CC_RISCVVLSCall_1024, // __attribute__((riscv_vls_cc(1024)))
312 CC_RISCVVLSCall_2048, // __attribute__((riscv_vls_cc(2048)))
313 CC_RISCVVLSCall_4096, // __attribute__((riscv_vls_cc(4096)))
314 CC_RISCVVLSCall_8192, // __attribute__((riscv_vls_cc(8192)))
315 CC_RISCVVLSCall_16384, // __attribute__((riscv_vls_cc(16384)))
316 CC_RISCVVLSCall_32768, // __attribute__((riscv_vls_cc(32768)))
317 CC_RISCVVLSCall_65536, // __attribute__((riscv_vls_cc(65536)))
318 };
319
320 /// Checks whether the given calling convention supports variadic
321 /// calls. Unprototyped calls also use the variadic call rules.
323 switch (CC) {
324 case CC_X86StdCall:
325 case CC_X86FastCall:
326 case CC_X86ThisCall:
327 case CC_X86RegCall:
328 case CC_X86Pascal:
329 case CC_X86VectorCall:
330 case CC_DeviceKernel:
331 case CC_Swift:
332 case CC_SwiftAsync:
333 case CC_M68kRTD:
334 return false;
335 default:
336 return true;
337 }
338 }
339
340 /// The storage duration for an object (per C++ [basic.stc]).
342 SD_FullExpression, ///< Full-expression storage duration (for temporaries).
343 SD_Automatic, ///< Automatic storage duration (most local variables).
344 SD_Thread, ///< Thread storage duration.
345 SD_Static, ///< Static storage duration.
346 SD_Dynamic ///< Dynamic storage duration.
347 };
348
349 /// Describes the nullability of a particular type.
351 /// Values of this type can never be null.
353 /// Values of this type can be null.
355 /// Whether values of this type can be null is (explicitly)
356 /// unspecified. This captures a (fairly rare) case where we
357 /// can't conclude anything about the nullability of the type even
358 /// though it has been considered.
360 // Generally behaves like Nullable, except when used in a block parameter
361 // that was imported into a swift async method. There, swift will assume
362 // that the parameter can get null even if no error occurred. _Nullable
363 // parameters are assumed to only get null on error.
365 };
367
368 /// Prints human-readable debug representation.
369 llvm::raw_ostream &operator<<(llvm::raw_ostream&, NullabilityKind);
370
371 /// Return true if \p L has a weaker nullability annotation than \p R. The
372 /// ordering is: Unspecified < Nullable < NonNull.
374 return uint8_t(L) > uint8_t(R);
375 }
376
377 /// Retrieve the spelling of the given nullability kind.
379 bool isContextSensitive = false);
380
381 /// Kinds of parameter ABI.
382 enum class ParameterABI {
383 /// This parameter uses ordinary ABI rules for its type.
385
386 /// This parameter (which must have pointer type) is a Swift
387 /// indirect result parameter.
389
390 /// This parameter (which must have pointer-to-pointer type) uses
391 /// the special Swift error-result ABI treatment. There can be at
392 /// most one parameter on a given function that uses this treatment.
394
395 /// This parameter (which must have pointer type) uses the special
396 /// Swift context-pointer ABI treatment. There can be at
397 /// most one parameter on a given function that uses this treatment.
399
400 /// This parameter (which must have pointer type) uses the special
401 /// Swift asynchronous context-pointer ABI treatment. There can be at
402 /// most one parameter on a given function that uses this treatment.
404
405 // This parameter is a copy-out HLSL parameter.
407
408 // This parameter is a copy-in/copy-out HLSL parameter.
410 };
411
412 /// Assigned inheritance model for a class in the MS C++ ABI. Must match order
413 /// of spellings in MSInheritanceAttr.
420
422
423 inline llvm::StringRef getAccessSpelling(AccessSpecifier AS) {
424 switch (AS) {
426 return "public";
428 return "protected";
430 return "private";
432 return {};
433 }
434 llvm_unreachable("Unknown AccessSpecifier");
435 }
436} // end namespace clang
437
438#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.
Top level wrappers for InstallAPI frontend operations.
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:108
@ 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:216
llvm::StringRef getAccessSpelling(AccessSpecifier AS)
Definition Specifiers.h:423
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:350
@ Nullable
Values of this type can be null.
Definition Specifiers.h:354
@ NonNull
Values of this type can never be null.
Definition Specifiers.h:352
InClassInitStyle
In-class initialization styles for non-static data members.
Definition Specifiers.h:275
@ ICIS_CopyInit
Copy initialization.
Definition Specifiers.h:277
@ ICIS_ListInit
Direct list-initialization.
Definition Specifiers.h:278
@ ICIS_NoInit
No in-class initializer.
Definition Specifiers.h:276
ExprObjectKind
A further classification of the kind of object referenced by an l-value or x-value.
Definition Specifiers.h:153
@ OK_VectorComponent
A vector component is an element or range of elements of a vector.
Definition Specifiers.h:161
@ 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:165
@ OK_ObjCSubscript
An Objective-C array/dictionary subscripting which reads an object or writes at the subscripted array...
Definition Specifiers.h:170
@ OK_Ordinary
An ordinary object is located at an address in memory.
Definition Specifiers.h:155
@ OK_BitField
A bitfield object is a bitfield on a C or C++ record.
Definition Specifiers.h:158
@ OK_MatrixComponent
A matrix component is a single element or range of elements of a matrix.
Definition Specifiers.h:173
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
Definition Specifiers.h:127
@ AS_public
Definition Specifiers.h:128
@ AS_protected
Definition Specifiers.h:129
@ AS_none
Definition Specifiers.h:131
@ AS_private
Definition Specifiers.h:130
StorageClass
Storage classes.
Definition Specifiers.h:252
@ SC_Auto
Definition Specifiers.h:260
@ SC_PrivateExtern
Definition Specifiers.h:257
@ SC_Extern
Definition Specifiers.h:255
@ SC_Register
Definition Specifiers.h:261
@ SC_Static
Definition Specifiers.h:256
@ SC_None
Definition Specifiers.h:254
ThreadStorageClassSpecifier
Thread storage-class-specifier.
Definition Specifiers.h:239
@ TSCS_thread_local
C++11 thread_local.
Definition Specifiers.h:245
@ TSCS_unspecified
Definition Specifiers.h:240
@ TSCS__Thread_local
C11 _Thread_local.
Definition Specifiers.h:248
@ TSCS___thread
GNU __thread.
Definition Specifiers.h:242
TypeSpecifiersPipe
Definition Specifiers.h:53
StorageDuration
The storage duration for an object (per C++ [basic.stc]).
Definition Specifiers.h:341
@ SD_Thread
Thread storage duration.
Definition Specifiers.h:344
@ SD_Static
Static storage duration.
Definition Specifiers.h:345
@ SD_FullExpression
Full-expression storage duration (for temporaries).
Definition Specifiers.h:342
@ SD_Automatic
Automatic storage duration (most local variables).
Definition Specifiers.h:343
@ SD_Dynamic
Dynamic storage duration.
Definition Specifiers.h:346
llvm::StringRef getNullabilitySpelling(NullabilityKind kind, bool isContextSensitive=false)
Retrieve the spelling of the given nullability kind.
ParameterABI
Kinds of parameter ABI.
Definition Specifiers.h:382
@ SwiftAsyncContext
This parameter (which must have pointer type) uses the special Swift asynchronous context-pointer ABI...
Definition Specifiers.h:403
@ SwiftErrorResult
This parameter (which must have pointer-to-pointer type) uses the special Swift error-result ABI trea...
Definition Specifiers.h:393
@ SwiftIndirectResult
This parameter (which must have pointer type) is a Swift indirect result parameter.
Definition Specifiers.h:388
@ SwiftContext
This parameter (which must have pointer type) uses the special Swift context-pointer ABI treatment.
Definition Specifiers.h:398
bool supportsVariadicCall(CallingConv CC)
Checks whether the given calling convention supports variadic calls.
Definition Specifiers.h:322
bool hasWeakerNullability(NullabilityKind L, NullabilityKind R)
Return true if L has a weaker nullability annotation than R.
Definition Specifiers.h:373
bool isLegalForFunction(StorageClass SC)
Checks whether the given storage class is legal for functions.
Definition Specifiers.h:265
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:270
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
Definition Specifiers.h:136
@ VK_PRValue
A pr-value expression (in the C++11 taxonomy) produces a temporary value.
Definition Specifiers.h:139
@ VK_XValue
An x-value expression is a reference to an object with independent storage but which can be "moved",...
Definition Specifiers.h:148
@ VK_LValue
An l-value expression is a reference to an object with independent storage.
Definition Specifiers.h:143
MSInheritanceModel
Assigned inheritance model for a class in the MS C++ ABI.
Definition Specifiers.h:414
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:192
@ TSK_ExplicitInstantiationDefinition
This template specialization was instantiated from a template due to an explicit instantiation defini...
Definition Specifiers.h:210
@ TSK_ExplicitInstantiationDeclaration
This template specialization was instantiated from a template due to an explicit instantiation declar...
Definition Specifiers.h:206
@ TSK_ExplicitSpecialization
This template specialization was declared or defined by an explicit specialization (C++ [temp....
Definition Specifiers.h:202
@ TSK_ImplicitInstantiation
This template specialization was implicitly instantiated from a template.
Definition Specifiers.h:198
@ TSK_Undeclared
This template specialization was formed from a template-id but has not yet been declared,...
Definition Specifiers.h:195
CallingConv
CallingConv - Specifies the calling convention that a function uses.
Definition Specifiers.h:282
@ CC_RISCVVLSCall_64
Definition Specifiers.h:306
@ CC_X86Pascal
Definition Specifiers.h:288
@ CC_RISCVVLSCall_128
Definition Specifiers.h:307
@ CC_RISCVVLSCall_65536
Definition Specifiers.h:317
@ CC_Swift
Definition Specifiers.h:296
@ CC_IntelOclBicc
Definition Specifiers.h:294
@ CC_RISCVVLSCall_4096
Definition Specifiers.h:313
@ CC_PreserveMost
Definition Specifiers.h:298
@ CC_Win64
Definition Specifiers.h:289
@ CC_RISCVVLSCall_8192
Definition Specifiers.h:314
@ CC_RISCVVLSCall_512
Definition Specifiers.h:310
@ CC_X86ThisCall
Definition Specifiers.h:286
@ CC_AArch64VectorCall
Definition Specifiers.h:300
@ CC_DeviceKernel
Definition Specifiers.h:295
@ CC_AAPCS
Definition Specifiers.h:292
@ CC_PreserveNone
Definition Specifiers.h:303
@ CC_M68kRTD
Definition Specifiers.h:302
@ CC_SwiftAsync
Definition Specifiers.h:297
@ CC_X86RegCall
Definition Specifiers.h:291
@ CC_RISCVVectorCall
Definition Specifiers.h:304
@ CC_X86VectorCall
Definition Specifiers.h:287
@ CC_AArch64SVEPCS
Definition Specifiers.h:301
@ CC_RISCVVLSCall_32
Definition Specifiers.h:305
@ CC_X86StdCall
Definition Specifiers.h:284
@ CC_RISCVVLSCall_16384
Definition Specifiers.h:315
@ CC_RISCVVLSCall_2048
Definition Specifiers.h:312
@ CC_RISCVVLSCall_256
Definition Specifiers.h:309
@ CC_X86_64SysV
Definition Specifiers.h:290
@ CC_RISCVVLSCall_1024
Definition Specifiers.h:311
@ CC_RISCVVLSCall_32768
Definition Specifiers.h:316
@ CC_PreserveAll
Definition Specifiers.h:299
@ CC_X86FastCall
Definition Specifiers.h:285
@ CC_AAPCS_VFP
Definition Specifiers.h:293
bool isTemplateExplicitInstantiationOrSpecialization(TemplateSpecializationKind Kind)
True if this template specialization kind is an explicit specialization, explicit instantiation decla...
Definition Specifiers.h:223
OptionalUnsigned< NullabilityKind > NullabilityKindOrNone
Definition Specifiers.h:366
NonOdrUseReason
The reason why a DeclRefExpr does not constitute an odr-use.
Definition Specifiers.h:177
@ NOUR_Discarded
This name appears as a potential result of a discarded value expression.
Definition Specifiers.h:187
@ NOUR_Unevaluated
This name appears in an unevaluated operand.
Definition Specifiers.h:181
@ NOUR_None
This is an odr-use.
Definition Specifiers.h:179
@ NOUR_Constant
This name appears as a potential result of an lvalue-to-rvalue conversion that is a constant expressi...
Definition Specifiers.h:184
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30
int32_t uint32_t uint32_t __packed_splat4 __packed_splat2 __packed_splat8 __packed_splat4 __packed_splat2 uint8_t
Structure that packs information about the type specifiers that were written in a particular type spe...
Definition Specifiers.h:113