;
32 caseBuiltinType::Void:
35 caseBuiltinType::Bool:
38 caseBuiltinType::Char_U:
41 caseBuiltinType::UChar:
44 caseBuiltinType::UShort:
47 caseBuiltinType::UInt:
50 caseBuiltinType::ULong:
53 caseBuiltinType::ULongLong:
56 caseBuiltinType::UInt128:
59 caseBuiltinType::Char_S:
62 caseBuiltinType::SChar:
65 caseBuiltinType::WChar_S:
66 caseBuiltinType::WChar_U:
69 caseBuiltinType::Short:
72 caseBuiltinType::Int:
75 caseBuiltinType::Long:
78 caseBuiltinType::LongLong:
81 caseBuiltinType::Int128:
84 caseBuiltinType::Half:
87 caseBuiltinType::Float:
90 caseBuiltinType::Double:
93 caseBuiltinType::LongDouble:
96 caseBuiltinType::ShortAccum:
99 caseBuiltinType::Accum:
102 caseBuiltinType::LongAccum:
105 caseBuiltinType::UShortAccum:
108 caseBuiltinType::UAccum:
111 caseBuiltinType::ULongAccum:
114 caseBuiltinType::ShortFract:
117 caseBuiltinType::Fract:
120 caseBuiltinType::LongFract:
123 caseBuiltinType::UShortFract:
126 caseBuiltinType::UFract:
129 caseBuiltinType::ULongFract:
132 caseBuiltinType::SatShortAccum:
135 caseBuiltinType::SatAccum:
138 caseBuiltinType::SatLongAccum:
141 caseBuiltinType::SatUShortAccum:
144 caseBuiltinType::SatUAccum:
147 caseBuiltinType::SatULongAccum:
150 caseBuiltinType::SatShortFract:
153 caseBuiltinType::SatFract:
156 caseBuiltinType::SatLongFract:
159 caseBuiltinType::SatUShortFract:
162 caseBuiltinType::SatUFract:
165 caseBuiltinType::SatULongFract:
168 caseBuiltinType::Float16:
171 caseBuiltinType::Float128:
174 caseBuiltinType::Ibm128:
177 caseBuiltinType::NullPtr:
180 caseBuiltinType::Char8:
183 caseBuiltinType::Char16:
186 caseBuiltinType::Char32:
189 caseBuiltinType::Overload:
192 caseBuiltinType::UnresolvedTemplate:
195 caseBuiltinType::BoundMember:
198 caseBuiltinType::PseudoObject:
201 caseBuiltinType::Dependent:
204 caseBuiltinType::UnknownAny:
207 caseBuiltinType::ARCUnbridgedCast:
210 caseBuiltinType::ObjCId:
213 caseBuiltinType::ObjCClass:
216 caseBuiltinType::ObjCSel:
219#define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix) \ 220 case BuiltinType::Id: \ 221 ID = PREDEF_TYPE_##Id##_ID; \ 223#include "clang/Basic/OpenCLImageTypes.def" 224#define EXT_OPAQUE_TYPE(ExtType, Id, Ext) \ 225 case BuiltinType::Id: \ 226 ID = PREDEF_TYPE_##Id##_ID; \ 228#include "clang/Basic/OpenCLExtensionTypes.def" 229 caseBuiltinType::OCLSampler:
232 caseBuiltinType::OCLEvent:
235 caseBuiltinType::OCLClkEvent:
238 caseBuiltinType::OCLQueue:
241 caseBuiltinType::OCLReserveID:
244#define SVE_TYPE(Name, Id, SingletonId) \ 245 case BuiltinType::Id: \ 246 ID = PREDEF_TYPE_##Id##_ID; \ 248#include "clang/Basic/AArch64SVEACLETypes.def" 249#define PPC_VECTOR_TYPE(Name, Id, Size) \ 250 case BuiltinType::Id: \ 251 ID = PREDEF_TYPE_##Id##_ID; \ 253#include "clang/Basic/PPCTypes.def" 254#define RVV_TYPE(Name, Id, SingletonId) \ 255 case BuiltinType::Id: \ 256 ID = PREDEF_TYPE_##Id##_ID; \ 258#include "clang/Basic/RISCVVTypes.def" 259#define WASM_TYPE(Name, Id, SingletonId) \ 260 case BuiltinType::Id: \ 261 ID = PREDEF_TYPE_##Id##_ID; \ 263#include "clang/Basic/WebAssemblyReferenceTypes.def" 264#define AMDGPU_TYPE(Name, Id, SingletonId, Width, Align) \ 265 case BuiltinType::Id: \ 266 ID = PREDEF_TYPE_##Id##_ID; \ 268#include "clang/Basic/AMDGPUTypes.def" 269#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId) \ 270 case BuiltinType::Id: \ 271 ID = PREDEF_TYPE_##Id##_ID; \ 273#include "clang/Basic/HLSLIntangibleTypes.def" 274 caseBuiltinType::BuiltinFn:
277 caseBuiltinType::IncompleteMatrixIdx:
280 caseBuiltinType::ArraySection:
283 caseBuiltinType::OMPArrayShaping:
286 caseBuiltinType::OMPIterator:
289 caseBuiltinType::BFloat16:
302 for(
unsignedI = 0; I != N; ++I)
304R = llvm::djbHash(II->getName(), R);
312 caseDecl::TranslationUnit:
313 caseDecl::ExternCContext:
314 caseDecl::Namespace:
315 caseDecl::LinkageSpec:
328 caseDecl::CXXRecord:
329 caseDecl::ClassTemplateSpecialization:
330 caseDecl::ClassTemplatePartialSpecialization:
335 caseDecl::CXXMethod:
336 caseDecl::CXXConstructor:
337 caseDecl::CXXDestructor:
338 caseDecl::CXXConversion:
339 caseDecl::ObjCMethod:
341 caseDecl::OutlinedFunction:
345 caseDecl::ObjCCategory:
346 caseDecl::ObjCCategoryImpl:
347 caseDecl::ObjCImplementation:
350 caseDecl::ObjCProtocol:
359 caseDecl::ObjCInterface:
363llvm_unreachable(
"Unhandled DeclContext in AST reader");
366llvm_unreachable(
"Unhandled decl kind");
371 caseDecl::TranslationUnit:
372 caseDecl::ExternCContext:
376 caseDecl::Namespace:
377 caseDecl::NamespaceAlias:
379 caseDecl::TypeAlias:
382 caseDecl::CXXRecord:
383 caseDecl::ClassTemplateSpecialization:
384 caseDecl::ClassTemplatePartialSpecialization:
385 caseDecl::VarTemplateSpecialization:
386 caseDecl::VarTemplatePartialSpecialization:
388 caseDecl::CXXDeductionGuide:
389 caseDecl::CXXMethod:
390 caseDecl::CXXConstructor:
391 caseDecl::CXXDestructor:
392 caseDecl::CXXConversion:
393 caseDecl::UsingShadow:
394 caseDecl::ConstructorUsingShadow:
396 caseDecl::FunctionTemplate:
397 caseDecl::ClassTemplate:
398 caseDecl::VarTemplate:
399 caseDecl::TypeAliasTemplate:
400 caseDecl::ObjCProtocol:
401 caseDecl::ObjCInterface:
406 caseDecl::UsingDirective:
408 caseDecl::UnresolvedUsingTypename:
409 caseDecl::TemplateTypeParm:
410 caseDecl::EnumConstant:
411 caseDecl::UnresolvedUsingValue:
412 caseDecl::IndirectField:
414 caseDecl::MSProperty:
416 caseDecl::UnnamedGlobalConstant:
417 caseDecl::TemplateParamObject:
419 caseDecl::ObjCAtDefsField:
420 caseDecl::NonTypeTemplateParm:
421 caseDecl::TemplateTemplateParm:
423 caseDecl::UsingEnum:
424 caseDecl::UsingPack:
425 caseDecl::ObjCMethod:
426 caseDecl::ObjCCategory:
427 caseDecl::ObjCCategoryImpl:
428 caseDecl::ObjCImplementation:
429 caseDecl::ObjCProperty:
430 caseDecl::ObjCCompatibleAlias:
431 caseDecl::LinkageSpec:
433 caseDecl::ObjCPropertyImpl:
434 caseDecl::PragmaComment:
435 caseDecl::PragmaDetectMismatch:
436 caseDecl::FileScopeAsm:
437 caseDecl::TopLevelStmt:
438 caseDecl::AccessSpec:
440 caseDecl::FriendTemplate:
441 caseDecl::StaticAssert:
443 caseDecl::OutlinedFunction:
446 caseDecl::OMPThreadPrivate:
447 caseDecl::OMPAllocate:
448 caseDecl::OMPRequires:
449 caseDecl::OMPCapturedExpr:
450 caseDecl::OMPDeclareReduction:
451 caseDecl::OMPDeclareMapper:
452 caseDecl::BuiltinTemplate:
453 caseDecl::Decomposition:
456 caseDecl::ImplicitConceptSpecialization:
457 caseDecl::LifetimeExtendedTemporary:
458 caseDecl::RequiresExprBody:
459 caseDecl::UnresolvedUsingIfExists:
460 caseDecl::HLSLBuffer:
465 caseDecl::ImplicitParam:
467 caseDecl::ObjCTypeParam:
471llvm_unreachable(
"Unhandled declaration kind");
485 if(
auto*FD = dyn_cast<FunctionDecl>(
D))
486 return!FD->getDescribedFunctionTemplate();
487 if(
auto*RD = dyn_cast<CXXRecordDecl>(
D))
488 return!RD->getDescribedClassTemplate();
497 if(
auto*VD = dyn_cast<VarDecl>(
D))
498 returnVD->isStaticLocal();
500 returnisa<TagDecl, BlockDecl>(
D);
505 if(
D->getDeclName())
509 returnisa<TagDecl, FieldDecl>(
D);
515llvm::raw_fd_ostream OS(ModuleFile::getTimestampFilename(ModuleFilename), EC,
516llvm::sys::fs::OF_TextWithCRLF);
519OS <<
"Timestamp file\n";
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
static const NamedDecl * getDefinition(const Decl *D)
virtual ~ASTDeserializationListener()
This class is used for builtin types like 'int'.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
bool isDependentContext() const
Determines whether this context is dependent on a template parameter.
bool isFunctionOrMethod() const
Decl::Kind getDeclKind() const
FriendObjectKind getFriendObjectKind() const
Determines whether this declaration is the object of a friend declaration and, if so,...
Kind
Lists the kind of concrete classes of Decl.
DeclContext * getLexicalDeclContext()
getLexicalDeclContext - The declaration context where this Decl was lexically declared (LexicalDC).
One of these records is kept for each identifier that is lexed.
This represents a decl that may have a name.
Represents an Objective-C protocol declaration.
Smart pointer class that efficiently represents Objective-C method names.
const IdentifierInfo * getIdentifierInfoForSlot(unsigned argIndex) const
Retrieve the identifier at a given position in the selector.
unsigned getNumArgs() const
Represents the declaration of a struct/union/class/enum.
A type index; the type ID with the qualifier bits removed.
@ PREDEF_TYPE_LONG_ACCUM_ID
The 'long _Accum' type.
@ PREDEF_TYPE_SAMPLER_ID
OpenCL sampler type.
@ PREDEF_TYPE_INT128_ID
The '__int128_t' type.
@ PREDEF_TYPE_CHAR32_ID
The C++ 'char32_t' type.
@ PREDEF_TYPE_SAT_SHORT_ACCUM_ID
The '_Sat short _Accum' type.
@ PREDEF_TYPE_IBM128_ID
The '__ibm128' type.
@ PREDEF_TYPE_SHORT_FRACT_ID
The 'short _Fract' type.
@ PREDEF_TYPE_BOUND_MEMBER
The placeholder type for bound member functions.
@ PREDEF_TYPE_LONGLONG_ID
The (signed) 'long long' type.
@ PREDEF_TYPE_FRACT_ID
The '_Fract' type.
@ PREDEF_TYPE_ARC_UNBRIDGED_CAST
ARC's unbridged-cast placeholder type.
@ PREDEF_TYPE_USHORT_FRACT_ID
The 'unsigned short _Fract' type.
@ PREDEF_TYPE_SAT_ULONG_FRACT_ID
The '_Sat unsigned long _Fract' type.
@ PREDEF_TYPE_BOOL_ID
The 'bool' or '_Bool' type.
@ PREDEF_TYPE_SAT_LONG_ACCUM_ID
The '_Sat long _Accum' type.
@ PREDEF_TYPE_SAT_LONG_FRACT_ID
The '_Sat long _Fract' type.
@ PREDEF_TYPE_SAT_SHORT_FRACT_ID
The '_Sat short _Fract' type.
@ PREDEF_TYPE_CHAR_U_ID
The 'char' type, when it is unsigned.
@ PREDEF_TYPE_RESERVE_ID_ID
OpenCL reserve_id type.
@ PREDEF_TYPE_SAT_ACCUM_ID
The '_Sat _Accum' type.
@ PREDEF_TYPE_BUILTIN_FN
The placeholder type for builtin functions.
@ PREDEF_TYPE_SHORT_ACCUM_ID
The 'short _Accum' type.
@ PREDEF_TYPE_FLOAT_ID
The 'float' type.
@ PREDEF_TYPE_QUEUE_ID
OpenCL queue type.
@ PREDEF_TYPE_INT_ID
The (signed) 'int' type.
@ PREDEF_TYPE_OBJC_SEL
The ObjC 'SEL' type.
@ PREDEF_TYPE_BFLOAT16_ID
The '__bf16' type.
@ PREDEF_TYPE_WCHAR_ID
The C++ 'wchar_t' type.
@ PREDEF_TYPE_UCHAR_ID
The 'unsigned char' type.
@ PREDEF_TYPE_UACCUM_ID
The 'unsigned _Accum' type.
@ PREDEF_TYPE_SCHAR_ID
The 'signed char' type.
@ PREDEF_TYPE_CHAR_S_ID
The 'char' type, when it is signed.
@ PREDEF_TYPE_NULLPTR_ID
The type of 'nullptr'.
@ PREDEF_TYPE_ULONG_FRACT_ID
The 'unsigned long _Fract' type.
@ PREDEF_TYPE_FLOAT16_ID
The '_Float16' type.
@ PREDEF_TYPE_UINT_ID
The 'unsigned int' type.
@ PREDEF_TYPE_FLOAT128_ID
The '__float128' type.
@ PREDEF_TYPE_OBJC_ID
The ObjC 'id' type.
@ PREDEF_TYPE_CHAR16_ID
The C++ 'char16_t' type.
@ PREDEF_TYPE_ARRAY_SECTION
The placeholder type for an array section.
@ PREDEF_TYPE_ULONGLONG_ID
The 'unsigned long long' type.
@ PREDEF_TYPE_SAT_UFRACT_ID
The '_Sat unsigned _Fract' type.
@ PREDEF_TYPE_USHORT_ID
The 'unsigned short' type.
@ PREDEF_TYPE_SHORT_ID
The (signed) 'short' type.
@ PREDEF_TYPE_OMP_ARRAY_SHAPING
The placeholder type for OpenMP array shaping operation.
@ PREDEF_TYPE_DEPENDENT_ID
The placeholder type for dependent types.
@ PREDEF_TYPE_LONGDOUBLE_ID
The 'long double' type.
@ PREDEF_TYPE_DOUBLE_ID
The 'double' type.
@ PREDEF_TYPE_UINT128_ID
The '__uint128_t' type.
@ PREDEF_TYPE_HALF_ID
The OpenCL 'half' / ARM NEON __fp16 type.
@ PREDEF_TYPE_VOID_ID
The void type.
@ PREDEF_TYPE_SAT_USHORT_FRACT_ID
The '_Sat unsigned short _Fract' type.
@ PREDEF_TYPE_ACCUM_ID
The '_Accum' type.
@ PREDEF_TYPE_SAT_FRACT_ID
The '_Sat _Fract' type.
@ PREDEF_TYPE_USHORT_ACCUM_ID
The 'unsigned short _Accum' type.
@ PREDEF_TYPE_CHAR8_ID
The C++ 'char8_t' type.
@ PREDEF_TYPE_UFRACT_ID
The 'unsigned _Fract' type.
@ PREDEF_TYPE_OVERLOAD_ID
The placeholder type for overloaded function sets.
@ PREDEF_TYPE_INCOMPLETE_MATRIX_IDX
A placeholder type for incomplete matrix index operations.
@ PREDEF_TYPE_UNRESOLVED_TEMPLATE
The placeholder type for unresolved templates.
@ PREDEF_TYPE_SAT_USHORT_ACCUM_ID
The '_Sat unsigned short _Accum' type.
@ PREDEF_TYPE_LONG_ID
The (signed) 'long' type.
@ PREDEF_TYPE_SAT_ULONG_ACCUM_ID
The '_Sat unsigned long _Accum' type.
@ PREDEF_TYPE_LONG_FRACT_ID
The 'long _Fract' type.
@ PREDEF_TYPE_UNKNOWN_ANY
The 'unknown any' placeholder type.
@ PREDEF_TYPE_OMP_ITERATOR
The placeholder type for OpenMP iterator expression.
@ PREDEF_TYPE_PSEUDO_OBJECT
The pseudo-object placeholder type.
@ PREDEF_TYPE_OBJC_CLASS
The ObjC 'Class' type.
@ PREDEF_TYPE_ULONG_ID
The 'unsigned long' type.
@ PREDEF_TYPE_SAT_UACCUM_ID
The '_Sat unsigned _Accum' type.
@ PREDEF_TYPE_CLK_EVENT_ID
OpenCL clk event type.
@ PREDEF_TYPE_EVENT_ID
OpenCL event type.
@ PREDEF_TYPE_ULONG_ACCUM_ID
The 'unsigned long _Accum' type.
bool isRedeclarableDeclKind(unsigned Kind)
Determine whether the given declaration kind is redeclarable.
TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT)
bool needsAnonymousDeclarationNumber(const NamedDecl *D)
Determine whether the given declaration needs an anonymous declaration number.
const DeclContext * getDefinitiveDeclContext(const DeclContext *DC)
Retrieve the "definitive" declaration that provides all of the visible entries for the given declarat...
void updateModuleTimestamp(StringRef ModuleFilename)
unsigned ComputeHash(Selector Sel)
The JSON file list parser is used to communicate input to InstallAPI.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4