clang 22.0.0git
ASTCommon.h File Reference

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::serialization

Enumerations

enum class  clang::serialization::DeclUpdateKind {
  clang::serialization::CXXAddedImplicitMember , clang::serialization::CXXAddedAnonymousNamespace , clang::serialization::CXXAddedFunctionDefinition , clang::serialization::CXXAddedVarDefinition ,
  clang::serialization::CXXPointOfInstantiation , clang::serialization::CXXInstantiatedClassDefinition , clang::serialization::CXXInstantiatedDefaultArgument , clang::serialization::CXXInstantiatedDefaultMemberInitializer ,
  clang::serialization::CXXResolvedDtorDelete , clang::serialization::CXXResolvedExceptionSpec , clang::serialization::CXXDeducedReturnType , clang::serialization::DeclMarkedUsed ,
  clang::serialization::ManglingNumber , clang::serialization::StaticLocalNumber , clang::serialization::DeclMarkedOpenMPThreadPrivate , clang::serialization::DeclMarkedOpenMPAllocate ,
  clang::serialization::DeclMarkedOpenMPDeclareTarget , clang::serialization::DeclExported , clang::serialization::AddedAttrToRecord , clang::serialization::CXXResolvedDtorGlobDelete
}

Functions

TypeIdx clang::serialization::TypeIdxFromBuiltin (const BuiltinType *BT)
unsigned clang::serialization::ComputeHash (Selector Sel)
const DeclContextclang::serialization::getDefinitiveDeclContext (const DeclContext *DC)
 Retrieve the "definitive" declaration that provides all of the visible entries for the given declaration context, if there is one.
bool clang::serialization::isRedeclarableDeclKind (unsigned Kind)
 Determine whether the given declaration kind is redeclarable.
bool clang::serialization::needsAnonymousDeclarationNumber (const NamedDecl *D)
 Determine whether the given declaration needs an anonymous declaration number.
template<typename Fn>
void clang::serialization::numberAnonymousDeclsWithin (const DeclContext *DC, Fn Visit)
 Visit each declaration within DC that needs an anonymous declaration number and call Visit with the declaration and its number.
bool clang::serialization::isPartOfPerModuleInitializer (const Decl *D)
 Determine whether the given declaration will be included in the per-module initializer if it needs to be eagerly handed to the AST consumer.