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

Function _mkDeclStmt

ASTHelpers.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20namespace clang::insights::asthelpers {
21DeclStmt* _mkDeclStmt(std::span<Decl*> decls)
22{
23 const auto& ctx = GetGlobalAST();
24
25 auto dgRef = DeclGroupRef::Create(const_cast<ASTContext&>(ctx), decls.data(), decls.size());
26
27 return new(ctx) DeclStmt(dgRef, {}, {});
28}
29//-----------------------------------------------------------------------------
30
31BinaryOperator* Assign(const VarDecl* var, Expr* assignExpr)

Callers 1

mkDeclStmtFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected