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

Method WrapInCurliesIfNeeded

CodeGenerator.cpp:5229–5238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5227//-----------------------------------------------------------------------------
5228
5229void CodeGenerator::WrapInCurliesIfNeeded(bool needsParens,
5230 void_func_ref lambda,
5231 const AddSpaceAtTheEnd addSpaceAtTheEnd)
5232{
5233 if(needsParens) {
5234 WrapInParensOrCurlys(BraceKind::Curlys, lambda, addSpaceAtTheEnd);
5235 } else {
5236 lambda();
5237 }
5238}
5239//-----------------------------------------------------------------------------
5240
5241void CodeGenerator::WrapInCurlys(void_func_ref lambda, const AddSpaceAtTheEnd addSpaceAtTheEnd)

Callers 1

InsertCXXMethodHeaderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected