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

Method VisitCXXBindTemporaryExpr

CodeGenerator.cpp:1034–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032
1033#if 0
1034 void VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr* stmt)
1035 {
1036 auto& ctx = GetGlobalAST();
1037
1038 const auto name = MakeLineColumnName(ctx.getSourceManager(), stmt->getBeginLoc(), "temp"sv);
1039 mFound = true;
1040
1041 auto* vd = Variable(name, stmt->getType());
1042 codeGenerator.InsertArg(vd);
1043
1044 StmtVisitor<TemporaryDeclFinder>::VisitCXXBindTemporaryExpr(stmt);
1045 }
1046#endif
1047
1048 void VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr* stmt)

Callers

nothing calls this directly

Calls 3

MakeLineColumnNameFunction · 0.85
VariableFunction · 0.85
InsertArgMethod · 0.45

Tested by

no test coverage detected