17#include "llvm/ADT/SmallString.h"
35 const Decl *USRDecl = D;
39 if (
const auto *PVD = dyn_cast<ParmVarDecl>(D)) {
41 dyn_cast_or_null<FunctionDecl>(PVD->getParentFunctionOrMethod());
46 const auto ParamIdx = PVD->getFunctionScopeIndex();
47 llvm::raw_svector_ostream OS(Suffix);
Decl - This represents one declaration (or definition), e.g.
bool isImplicit() const
isImplicit - Indicates whether the declaration was implicitly generated by the implementation.
Represents a function declaration or definition.
unsigned getBuiltinID(bool ConsiderWrapperFunctions=false) const
Returns a value indicating whether this function corresponds to a builtin function.
A single parameter index whose accessors require each use to make explicit the parameter index encodi...
Uniquely identifies an entity in a program.
bool generateUSRForDecl(const Decl *D, SmallVectorImpl< char > &Buf)
Generate a USR for a Decl, including the USR prefix.
std::optional< EntityName > getEntityNameForReturn(const FunctionDecl *FD)
Maps return entity of a function to an EntityName.
std::optional< EntityName > getEntityName(const Decl *D)
Maps a declaration to an EntityName.
bool isa(CodeGen::Address addr)
U cast(CodeGen::Address addr)