errmsg: The generated code is compliant with the astyle formatting
This commit is contained in:
parent
01ec1b15fe
commit
713b0c7cdd
|
@ -148,11 +148,14 @@ void Message::generateCode(std::ostream &ostr) const
|
|||
if (! _par1.empty())
|
||||
ostr << ", const std::string &" << _par1;
|
||||
ostr << ")\n";
|
||||
ostr << " { return msg1(tokenizer, Location) + " << msg(true) << "; }" << std::endl;
|
||||
ostr << " {\n";
|
||||
ostr << " return msg1(tokenizer, Location) + " << msg(true) << ";\n";
|
||||
ostr << " }\n";
|
||||
|
||||
// Settings..
|
||||
ostr << " static bool " << _funcname << "(const Settings &s)" << std::endl;
|
||||
ostr << " { return ";
|
||||
ostr << " {\n";
|
||||
ostr << " return ";
|
||||
if (_settings == 0)
|
||||
ostr << "true";
|
||||
else
|
||||
|
@ -164,7 +167,8 @@ void Message::generateCode(std::ostream &ostr) const
|
|||
if (_settings & STYLE)
|
||||
ostr << "s._checkCodingStyle";
|
||||
}
|
||||
ostr << "; }" << std::endl << std::endl;
|
||||
ostr << ";\n";
|
||||
ostr << " }\n\n";
|
||||
}
|
||||
|
||||
void Message::generateDoc(std::ostream &ostr, unsigned int i) const
|
||||
|
|
Loading…
Reference in New Issue