MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / Typedef

Function Typedef

ASTHelpers.cpp:669–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667//-----------------------------------------------------------------------------
668
669QualType Typedef(std::string_view name, QualType underlayingType)
670{
671 auto& ctx = GetGlobalAST();
672 auto* type = TypedefDecl::Create(const_cast<ASTContext&>(ctx),
673 ctx.getTranslationUnitDecl(),
674 {},
675 {},
676 &ctx.Idents.get(name),
677 ctx.getTrivialTypeSourceInfo(underlayingType));
678
679 return ctx.getTypeDeclType(type);
680}
681//-----------------------------------------------------------------------------
682
683QualType GetRecordDeclType(const CXXMethodDecl* md)

Callers 3

CfrontVtableDataMethod · 0.85
InsertArgMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected