Fixed formatting

This commit is contained in:
Bartek Kryza
2022-12-11 02:03:57 +01:00
parent dcdde1af4b
commit cbab8b5e74
4 changed files with 2 additions and 4 deletions

View File

@@ -548,7 +548,7 @@ bool translation_unit_visitor::TraverseCompoundStmt(clang::CompoundStmt *stmt)
const auto *current_ifstmt = context().current_ifstmt();
const auto *current_elseifstmt = context().current_elseifstmt();
//
// Add final else block (not else if)
//

View File

@@ -43,7 +43,7 @@ int tmain()
if (result != 2) {
result = std::exp(result);
}
else if(result == 3) {
else if (result == 3) {
result = 4;
}
else {

View File

@@ -34,7 +34,6 @@ TEST_CASE("t20020", "[test-case][sequence]")
REQUIRE_THAT(puml, StartsWith("@startuml"));
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
// Check if all calls exist
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("A"), "a1()"));
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("A"), "a2()"));

View File

@@ -34,7 +34,6 @@ TEST_CASE("t20021", "[test-case][sequence]")
REQUIRE_THAT(puml, StartsWith("@startuml"));
REQUIRE_THAT(puml, EndsWith("@enduml\n"));
// Check if all calls exist
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("A"), "a1()"));
REQUIRE_THAT(puml, HasCall(_A("tmain()"), _A("A"), "a2()"));