Skip to content

Commit 7938bac

Browse files
author
thk123
committed
Correcting linting errors
1 parent 25d765b commit 7938bac

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

unit/testing-utils/require_goto_statements.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,5 @@ const code_declt &require_goto_statements::require_declaration_of_name(
126126
}
127127
}
128128
}
129-
throw no_decl_found_exception(variable_name.c_str());
129+
throw no_decl_found_exceptiont(variable_name.c_str());
130130
}

unit/testing-utils/require_goto_statements.h

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
#include <util/std_types.h>
1717
#include <goto-programs/goto_program.h>
1818

19-
#ifndef CPROVER_TESTING_UTILS_CHECK_GOTO_FUNCTIONS_H
20-
#define CPROVER_TESTING_UTILS_CHECK_GOTO_FUNCTIONS_H
19+
#ifndef CPROVER_TESTING_UTILS_REQUIRE_GOTO_STATEMENTS_H
20+
#define CPROVER_TESTING_UTILS_REQUIRE_GOTO_STATEMENTS_H
2121

22+
// NOLINTNEXTLINE(readability/namespace)
2223
namespace require_goto_statements
2324
{
2425
struct pointer_assignment_locationt
@@ -27,11 +28,11 @@ struct pointer_assignment_locationt
2728
std::vector<code_assignt> non_null_assignments;
2829
};
2930

30-
class no_decl_found_exception : public std::exception
31+
class no_decl_found_exceptiont : public std::exception
3132
{
3233
public:
33-
explicit no_decl_found_exception(const std::string &varname)
34-
: _varname(varname)
34+
explicit no_decl_found_exceptiont(const std::string &var_name)
35+
: _varname(var_name)
3536
{
3637
}
3738

@@ -62,4 +63,4 @@ const code_declt &require_declaration_of_name(
6263
const std::vector<codet> &entry_point_instructions);
6364
}
6465

65-
#endif //TEST_GEN_SUPERBUILD_JAVA_TESTING_UTILS_H
66+
#endif // CPROVER_TESTING_UTILS_REQUIRE_GOTO_STATEMENTS_H

0 commit comments

Comments
 (0)