Skip to content

Commit 388b547

Browse files
author
Thomas Kiley
committed
Apply clang format to declaration and assignment printing
1 parent 51b5618 commit 388b547

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/goto-programs/xml_goto_trace.cpp

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void convert(
7070
xml_assignment.new_element().swap(xml_location);
7171

7272
{
73-
auto lhs_object=step.get_lhs_object();
73+
auto lhs_object = step.get_lhs_object();
7474

7575
const symbolt *symbol;
7676

@@ -80,16 +80,19 @@ void convert(
8080
{
8181
const symbolt *symbol;
8282

83-
if(lhs_object.has_value() &&
84-
!ns.lookup(lhs_object->get_identifier(), symbol))
83+
if(
84+
lhs_object.has_value() &&
85+
!ns.lookup(lhs_object->get_identifier(), symbol))
8586
{
86-
std::string type_string=from_type(ns, symbol->name, symbol->type);
87+
std::string type_string = from_type(ns, symbol->name, symbol->type);
8788

8889
xml_assignment.set_attribute("mode", id2string(symbol->mode));
8990
xml_assignment.set_attribute("identifier", id2string(symbol->name));
90-
xml_assignment.set_attribute("base_name", id2string(symbol->base_name));
91-
xml_assignment.set_attribute("display_name", id2string(symbol->display_name()));
92-
xml_assignment.new_element("type").data=type_string;
91+
xml_assignment.set_attribute(
92+
"base_name", id2string(symbol->base_name));
93+
xml_assignment.set_attribute(
94+
"display_name", id2string(symbol->display_name()));
95+
xml_assignment.new_element("type").data = type_string;
9396
}
9497
}
9598
}

0 commit comments

Comments
 (0)