Skip to content

Commit 836af2c

Browse files
committed
Linter and clang-format ignores, and whitespace cleanup
1 parent 82e22f4 commit 836af2c

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

jbmc/unit/java_bytecode/java_object_factory/gen_nondet_string_init.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ SCENARIO(
7777
std::regex_replace(line, spaces, " "), numbers, ""));
7878
}
7979

80-
const std::vector<std::string> reference_code = { // NOLINT
80+
// clang-format off
81+
// NOLINTNEXTLINE
82+
const std::vector<std::string> reference_code = {
8183
"int tmp_object_factory;",
8284
"tmp_object_factory = NONDET(int);",
8385
CPROVER_PREFIX "assume(tmp_object_factory >= 0);",
@@ -98,6 +100,7 @@ SCENARIO(
98100
"=\"java::java.lang.String\" },"
99101
" .length=tmp_object_factory, "
100102
".data=*string_data_pointer };"};
103+
// clang-format on
101104

102105
for(std::size_t i = 0;
103106
i < code_string.size() && i < reference_code.size();

src/ansi-c/ansi_c_internal_additions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ static std::string architecture_string(T value, const char *s)
122122

123123
void ansi_c_internal_additions(std::string &code)
124124
{
125+
// clang-format off
125126
// do the built-in types and variables
126127
code+=
127128
"# 1 \"<built-in-additions>\"\n"
@@ -179,6 +180,7 @@ void ansi_c_internal_additions(std::string &code)
179180
// by the entry-point construction.
180181
"void " INITIALIZE_FUNCTION "(void);\n"
181182
"\n";
183+
// clang-format on
182184

183185
// GCC junk stuff, also for CLANG and ARM
184186
if(

unit/path_strategies.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,20 @@ SCENARIO("path strategies")
164164
opts.set_option("unwind", 2U);
165165
};
166166

167+
// clang-format off
167168
c =
168-
"/* 1 */ int main() \n"
169-
"/* 2 */ { \n"
170-
"/* 3 */ int x; \n"
171-
"/* 4 */ " CPROVER_PREFIX "assume(x == 1);\n"
172-
"/* 5 */ \n"
173-
"/* 6 */ while(x) \n"
174-
"/* 7 */ --x; \n"
175-
"/* 8 */ \n"
176-
"/* 9 */ assert(x); \n"
177-
"/* 10 */ } \n";
169+
"/* 1 */ int main() \n"
170+
"/* 2 */ { \n"
171+
"/* 3 */ int x; \n"
172+
"/* 4 */ " CPROVER_PREFIX
173+
"assume(x == 1); \n"
174+
"/* 5 */ \n"
175+
"/* 6 */ while(x) \n"
176+
"/* 7 */ --x; \n"
177+
"/* 8 */ \n"
178+
"/* 9 */ assert(x); \n"
179+
"/* 10 */ } \n";
180+
// clang-format on
178181

179182
check_with_strategy(
180183
"lifo",

0 commit comments

Comments
 (0)