Skip to content

Commit b5060ee

Browse files
committed
Clang-formatting
for the bits we touched in this PR.
1 parent e0eab84 commit b5060ee

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/analyses/goto_check.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ void goto_checkt::integer_overflow_check(
804804

805805
add_guarded_property(
806806
not_exprt(overflow),
807-
"arithmetic overflow on "+kind+" "+expr.id_string(),
807+
"arithmetic overflow on " + kind + " " + expr.id_string(),
808808
"overflow",
809809
expr.find_source_location(),
810810
expr,
@@ -818,7 +818,7 @@ void goto_checkt::integer_overflow_check(
818818

819819
add_guarded_property(
820820
not_exprt(overflow),
821-
"arithmetic overflow on "+kind+" "+expr.id_string(),
821+
"arithmetic overflow on " + kind + " " + expr.id_string(),
822822
"overflow",
823823
expr.find_source_location(),
824824
expr,
@@ -928,7 +928,7 @@ void goto_checkt::float_overflow_check(
928928

929929
add_guarded_property(
930930
overflow_check,
931-
"arithmetic overflow on floating-point "+kind,
931+
"arithmetic overflow on floating-point " + kind,
932932
"overflow",
933933
expr.find_source_location(),
934934
expr,
@@ -1129,7 +1129,7 @@ void goto_checkt::pointer_validity_check(
11291129
{
11301130
add_guarded_property(
11311131
c.assertion,
1132-
"dereference failure: "+c.description,
1132+
"dereference failure: " + c.description,
11331133
"pointer dereference",
11341134
expr.find_source_location(),
11351135
expr,
@@ -1328,7 +1328,7 @@ void goto_checkt::bounds_check(
13281328

13291329
add_guarded_property(
13301330
inequality,
1331-
name+" lower bound",
1331+
name + " lower bound",
13321332
"array bounds",
13331333
expr.find_source_location(),
13341334
expr,
@@ -1385,7 +1385,7 @@ void goto_checkt::bounds_check(
13851385

13861386
add_guarded_property(
13871387
precond,
1388-
name+" dynamic object upper bound",
1388+
name + " dynamic object upper bound",
13891389
"array bounds",
13901390
expr.find_source_location(),
13911391
expr,
@@ -1462,7 +1462,7 @@ void goto_checkt::bounds_check(
14621462

14631463
add_guarded_property(
14641464
implies_exprt(type_matches_size, inequality),
1465-
name+" upper bound",
1465+
name + " upper bound",
14661466
"array bounds",
14671467
expr.find_source_location(),
14681468
expr,
@@ -1503,7 +1503,7 @@ void goto_checkt::add_guarded_property(
15031503
std::string source_expr_string;
15041504
get_language_from_mode(mode)->from_expr(src_expr, source_expr_string, ns);
15051505

1506-
t->source_location.set_comment(comment+" in "+source_expr_string);
1506+
t->source_location.set_comment(comment + " in " + source_expr_string);
15071507
t->source_location.set_property_class(property_class);
15081508
}
15091509
}
@@ -1652,12 +1652,12 @@ void goto_checkt::check_rec(const exprt &expr, guardt &guard)
16521652
if(expr.id() == ID_exists || expr.id() == ID_forall)
16531653
return;
16541654

1655-
if(expr.id()==ID_address_of)
1655+
if(expr.id() == ID_address_of)
16561656
{
16571657
check_rec_address(to_address_of_expr(expr).object(), guard);
16581658
return;
16591659
}
1660-
else if(expr.id()==ID_and || expr.id()==ID_or)
1660+
else if(expr.id() == ID_and || expr.id() == ID_or)
16611661
{
16621662
check_rec_logical_op(expr, guard);
16631663
return;

0 commit comments

Comments
 (0)