errmsg: The generated code is compliant with the astyle formatting

This commit is contained in:
Daniel Marjamäki 2009-01-10 07:43:15 +00:00
parent 01ec1b15fe
commit 713b0c7cdd
1 changed files with 7 additions and 3 deletions

View File

@ -148,11 +148,14 @@ void Message::generateCode(std::ostream &ostr) const
if (! _par1.empty()) if (! _par1.empty())
ostr << ", const std::string &" << _par1; ostr << ", const std::string &" << _par1;
ostr << ")\n"; ostr << ")\n";
ostr << " { return msg1(tokenizer, Location) + " << msg(true) << "; }" << std::endl; ostr << " {\n";
ostr << " return msg1(tokenizer, Location) + " << msg(true) << ";\n";
ostr << " }\n";
// Settings.. // Settings..
ostr << " static bool " << _funcname << "(const Settings &s)" << std::endl; ostr << " static bool " << _funcname << "(const Settings &s)" << std::endl;
ostr << " { return "; ostr << " {\n";
ostr << " return ";
if (_settings == 0) if (_settings == 0)
ostr << "true"; ostr << "true";
else else
@ -164,7 +167,8 @@ void Message::generateCode(std::ostream &ostr) const
if (_settings & STYLE) if (_settings & STYLE)
ostr << "s._checkCodingStyle"; ostr << "s._checkCodingStyle";
} }
ostr << "; }" << std::endl << std::endl; ostr << ";\n";
ostr << " }\n\n";
} }
void Message::generateDoc(std::ostream &ostr, unsigned int i) const void Message::generateDoc(std::ostream &ostr, unsigned int i) const