From cbab8b5e743b88beeb5d11b88db9198084a926f6 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sun, 11 Dec 2022 02:03:57 +0100 Subject: [PATCH] Fixed formatting --- src/sequence_diagram/visitor/translation_unit_visitor.cc | 2 +- tests/t20020/t20020.cc | 2 +- tests/t20020/test_case.h | 1 - tests/t20021/test_case.h | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sequence_diagram/visitor/translation_unit_visitor.cc b/src/sequence_diagram/visitor/translation_unit_visitor.cc index 1df10ad0..fd7074b4 100644 --- a/src/sequence_diagram/visitor/translation_unit_visitor.cc +++ b/src/sequence_diagram/visitor/translation_unit_visitor.cc @@ -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) // diff --git a/tests/t20020/t20020.cc b/tests/t20020/t20020.cc index df29e6b2..42d9ac9e 100644 --- a/tests/t20020/t20020.cc +++ b/tests/t20020/t20020.cc @@ -43,7 +43,7 @@ int tmain() if (result != 2) { result = std::exp(result); } - else if(result == 3) { + else if (result == 3) { result = 4; } else { diff --git a/tests/t20020/test_case.h b/tests/t20020/test_case.h index 74437de4..03b60b34 100644 --- a/tests/t20020/test_case.h +++ b/tests/t20020/test_case.h @@ -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()")); diff --git a/tests/t20021/test_case.h b/tests/t20021/test_case.h index 9bfe53a3..f034e315 100644 --- a/tests/t20021/test_case.h +++ b/tests/t20021/test_case.h @@ -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()"));