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

Function mkLabelDecl

ASTHelpers.cpp:274–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272//-----------------------------------------------------------------------------
273
274auto* mkLabelDecl(std::string_view name)
275{
276 auto& ctx = GetGlobalAST();
277
278 return LabelDecl::Create(const_cast<ASTContext&>(ctx), ctx.getTranslationUnitDecl(), {}, &ctx.Idents.get(name));
279}
280//-----------------------------------------------------------------------------
281
282LabelStmt* Label(std::string_view name)

Callers 2

LabelFunction · 0.85
GotoFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected