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

Function mkFieldDecl

ASTHelpers.cpp:539–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537//-----------------------------------------------------------------------------
538
539FieldDecl* mkFieldDecl(DeclContext* dc, std::string_view name, QualType type)
540{
541 auto& ctx = GetGlobalAST();
542 auto* fieldDecl =
543 FieldDecl::Create(ctx, dc, {}, {}, &ctx.Idents.get(name), type, nullptr, nullptr, false, ICIS_NoInit);
544 fieldDecl->setAccess(AS_public);
545
546 return fieldDecl;
547}
548//-----------------------------------------------------------------------------
549
550InitListExpr* InitList(ArrayRef<Expr*> initExprs, QualType t)

Callers 5

AddFieldFunction · 0.85
VisitCXXThisExprMethod · 0.85
CfrontVtableDataMethod · 0.85
VtblPtrFieldMethod · 0.85
ProcessFieldsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected