Skip to content

Commit 1278a83

Browse files
author
Daniel Kroening
committed
goto-anlayser: careful use of formatting on console
1 parent 31674fd commit 1278a83

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/goto-analyzer/static_verifier.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,21 @@ static void static_verifier_console(
167167
if(last_function_id != result.function_id)
168168
{
169169
if(!last_function_id.empty())
170-
m.result() << '\n';
170+
m.status() << '\n';
171171
last_function_id = result.function_id;
172172
const auto &symbol = ns.lookup(last_function_id);
173-
m.result() << "******** Function " << symbol.display_name();
173+
m.status() << messaget::underline << "Function " << symbol.display_name();
174174
function_file = symbol.location.get_file();
175175
if(!function_file.empty())
176-
m.result() << ' ' << function_file;
176+
m.status() << ' ' << function_file;
177177
if(!symbol.location.get_line().empty())
178-
m.result() << ':' << symbol.location.get_line();
179-
m.result() << '\n';
178+
m.status() << ':' << symbol.location.get_line();
179+
m.status() << messaget::reset << messaget::eom;
180180
}
181181

182-
m.result() << '[' << result.source_location.get_property_id() << ']';
182+
m.result() << messaget::faint << '['
183+
<< result.source_location.get_property_id() << ']'
184+
<< messaget::reset;
183185

184186
if(
185187
!result.source_location.get_file().empty() &&

0 commit comments

Comments
 (0)