14 #ifndef LLVM_CLANG_LIB_SERIALIZATION_ASTCOMMON_H
15 #define LLVM_CLANG_LIB_SERIALIZATION_ASTCOMMON_H
23 namespace serialization {
45 template <
typename IdxForTypeTy>
54 return IdxForType(T).asTypeID(FastQuals);
68 return IdxForType(T).asTypeID(FastQuals);
99 if (
auto *FD = dyn_cast<FriendDecl>(LexicalD))
100 LexicalD = FD->getFriendDecl();
102 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD);
Defines the clang::ASTContext interface.
Smart pointer class that efficiently represents Objective-C method names.
bool isRedeclarableDeclKind(unsigned Kind)
Determine whether the given declaration kind is redeclarable.
const DeclContext * getDefinitiveDeclContext(const DeclContext *DC)
Retrieve the "definitive" declaration that provides all of the visible entries for the given declarat...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
TypeID MakeTypeID(ASTContext &Context, QualType T, IdxForTypeTy IdxForType)
The "auto &&" deduction type.
bool hasLocalQualifiers() const
Determine whether this particular QualType instance has any qualifiers, without looking through any t...
The "auto" deduction type.
unsigned getLocalFastQualifiers() const
const Type * getTypePtr() const
TypeIdx TypeIdxFromBuiltin(const BuiltinType *BT)
The __va_list_tag placeholder type.
unsigned ComputeHash(Selector Sel)
void removeLocalFastQualifiers()
bool hasLocalNonFastQualifiers() const
Determine whether this particular QualType instance has any "non-fast" qualifiers, e.g., those that are stored in an ExtQualType instance.
QualType AutoRRefDeductTy
TypeID asTypeID(unsigned FastQuals) const
bool needsAnonymousDeclarationNumber(const NamedDecl *D)
Determine whether the given declaration needs an anonymous declaration number.
uint32_t TypeID
An ID number that refers to a type in an AST file.
void numberAnonymousDeclsWithin(const DeclContext *DC, Fn Visit)
Visit each declaration within DC that needs an anonymous declaration number and call Visit with the d...
bool isNull() const
isNull - Return true if this QualType doesn't point to a type yet.
A type index; the type ID with the qualifier bits removed.