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

Method InsertConceptConstraint

CodeGenerator.cpp:4823–4838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4821//-----------------------------------------------------------------------------
4822
4823void CodeGenerator::InsertConceptConstraint(const llvm::SmallVectorImpl<const Expr*>& constraints,
4824 const InsertInline insertInline)
4825{
4826 for(OnceTrue first{}; const auto* c : constraints) {
4827 if(first and (InsertInline::Yes == insertInline)) {
4828 mOutputFormatHelper.Append(' ');
4829 }
4830
4831 mOutputFormatHelper.Append(kwRequiresSpace);
4832 InsertArg(c);
4833
4834 if(InsertInline::No == insertInline) {
4835 mOutputFormatHelper.AppendNewLine();
4836 }
4837 }
4838}
4839//-----------------------------------------------------------------------------
4840
4841// This inserts the requires clause after template<...>

Callers

nothing calls this directly

Calls 3

AppendMethod · 0.80
AppendNewLineMethod · 0.80
getNameMethod · 0.80

Tested by

no test coverage detected