astyle formatting

This commit is contained in:
Daniel Marjamäki 2009-02-01 16:39:29 +00:00
parent d29d7e60a9
commit eb9563faed
1 changed files with 19 additions and 19 deletions

View File

@ -247,27 +247,27 @@ void Message::generateCode(std::ostream &ostr) const
if (loc)
ostr << "tokenizer, Location, \"" << stringifySettings(true) << "\", ";
ostr << msg(true) << ");\n";
/*
ostr << " return ";
if (loc)
ostr << "msg1(tokenizer, Location) + ";
ostr << " std::string(\"(" << stringifySettings(true) << ") \") + ";
ostr << msg(true);
if (_details.empty())
ostr << ";\n";
else
{
ostr << " + std::string(settings._verbose ? \"\\n";
for (std::string::size_type pos = 0; pos < _details.length(); ++pos)
/*
ostr << " return ";
if (loc)
ostr << "msg1(tokenizer, Location) + ";
ostr << " std::string(\"(" << stringifySettings(true) << ") \") + ";
ostr << msg(true);
if (_details.empty())
ostr << ";\n";
else
{
if (_details[pos] == '\n')
ostr << "\\n";
else
ostr << _details[pos];
ostr << " + std::string(settings._verbose ? \"\\n";
for (std::string::size_type pos = 0; pos < _details.length(); ++pos)
{
if (_details[pos] == '\n')
ostr << "\\n";
else
ostr << _details[pos];
}
ostr << "\" : \"\");\n";
}
ostr << "\" : \"\");\n";
}
*/
*/
ostr << " }\n";
// Settings..