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