Skip to content

Commit aa94fe8

Browse files
Style: add nolint marker on lines formated by clang
Add nolint marker on line with lambdas, which are formatted by clang in a way that is not compatible with cpp-lint.
1 parent 21b2641 commit aa94fe8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/solvers/refinement/string_constraint_generator_transformation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ exprt string_constraint_generatort::add_axioms_for_replace(
404404
char_array_of_pointer(f.arguments()[1], f.arguments()[0]);
405405
if(
406406
const auto maybe_chars =
407-
to_char_pair(f.arguments()[3], f.arguments()[4], [this](const exprt &e) {
407+
to_char_pair(f.arguments()[3], f.arguments()[4], [this](const exprt &e) { // NOLINT
408408
return get_string_expr(e);
409409
}))
410410
{

src/solvers/refinement/string_refinement.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ exprt substitute_array_lists(exprt expr, size_t string_max_length)
19241924
/// \return an expression
19251925
exprt string_refinementt::get(const exprt &expr) const
19261926
{
1927-
const auto super_get = [this](const exprt &expr) {
1927+
const auto super_get = [this](const exprt &expr) { // NOLINT
19281928
return supert::get(expr);
19291929
};
19301930
exprt ecopy(expr);

unit/java_bytecode/java_object_factory/gen_nondet_string_init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ SCENARIO(
6565
std::regex_replace(line, spaces, " "), numbers, ""));
6666
}
6767

68-
const std::vector<std::string> reference_code = {
68+
const std::vector<std::string> reference_code = { // NOLINT
6969
"int tmp_object_factory;",
7070
"tmp_object_factory = NONDET(int);",
7171
"__CPROVER_assume(tmp_object_factory >= 0);",

unit/java_bytecode/java_string_library_preprocess/convert_exprt_to_string_exprt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ TEST_CASE("Convert exprt to string exprt")
6868
std::regex_replace(line, spaces, " "), numbers, ""));
6969
}
7070

71-
const std::vector<std::string> reference_code = {
71+
const std::vector<std::string> reference_code = { // NOLINT
7272
"char *cprover_string_content;",
7373
"int cprover_string_length;",
7474
"cprover_string_length = a->length;",

0 commit comments

Comments
 (0)