From eb9563faedf0b03b1cee87888e921cd4e4aecfd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 1 Feb 2009 16:39:29 +0000 Subject: [PATCH] astyle formatting --- tools/errmsg.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tools/errmsg.cpp b/tools/errmsg.cpp index 9554c28d3..082ee9245 100644 --- a/tools/errmsg.cpp +++ b/tools/errmsg.cpp @@ -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..