MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / formatReconstructedExpression

Function formatReconstructedExpression

unittests/catch.hpp:7196–7203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7194 ITransientExpression::~ITransientExpression() = default;
7195
7196 void formatReconstructedExpression( std::ostream &os, std::string const& lhs, StringRef op, std::string const& rhs ) {
7197 if( lhs.size() + rhs.size() < 40 &&
7198 lhs.find('\n') == std::string::npos &&
7199 rhs.find('\n') == std::string::npos )
7200 os << lhs << " " << op << " " << rhs;
7201 else
7202 os << lhs << "\n" << op << "\n" << rhs;
7203 }
7204}
7205// end catch_decomposer.cpp
7206// start catch_errno_guard.cpp

Callers 1

Calls 2

sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected