Skip to content

Commit 35df0b2

Browse files
Make clang-format happy
1 parent 4b6782b commit 35df0b2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/goto-programs/class_identifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ exprt get_class_identifier_field(
6161
// Get a pointer from which we can extract a clsid.
6262
// If it's already a pointer to an object of some sort, just use it;
6363
// if it's void* then use the suggested type.
64-
PRECONDITION(this_expr_in.type().id()==ID_pointer);
64+
PRECONDITION(this_expr_in.type().id() == ID_pointer);
6565

6666
exprt this_expr=this_expr_in;
6767
const auto &points_to=this_expr.type().subtype();

src/goto-programs/compute_called_functions.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ void compute_address_taken_functions(
2121
forall_operands(it, src)
2222
compute_address_taken_functions(*it, address_taken);
2323

24-
if(src.id()==ID_address_of)
24+
if(src.id() == ID_address_of)
2525
{
2626
const address_of_exprt &address = to_address_of_expr(src);
2727

28-
if(address.type().id()==ID_pointer &&
29-
address.type().subtype().id()==ID_code)
28+
if(
29+
address.type().id() == ID_pointer &&
30+
address.type().subtype().id() == ID_code)
3031
{
31-
const exprt &target=address.object();
32-
if(target.id()==ID_symbol)
32+
const exprt &target = address.object();
33+
if(target.id() == ID_symbol)
3334
address_taken.insert(to_symbol_expr(target).get_identifier());
3435
}
3536
}

0 commit comments

Comments
 (0)