Skip to content

Commit 062e0e2

Browse files
committed
Format test A5-1-1
1 parent c6bcdf9 commit 062e0e2

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

cpp/autosar/test/rules/A5-1-1/test.cpp

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,13 @@ void test_not_wrapper_stream(std::ostream &os, const char *str) noexcept {
7878
// not actually exclusively a wrapper
7979
}
8080

81-
#define MACRO_LOG(test_str) do \
82-
{\
83-
struct test_struct {\
84-
static const char* get_str(){\
85-
return static_cast<char *>(test_str);\
86-
}\
87-
};\
88-
} while (false)
89-
90-
void f(){
91-
MACRO_LOG("test"); //COMPLIANT - exclusion
81+
#define MACRO_LOG(test_str) \
82+
do { \
83+
struct test_struct { \
84+
static const char *get_str() { return static_cast<char *>(test_str); } \
85+
}; \
86+
} while (false)
87+
88+
void f() {
89+
MACRO_LOG("test"); // COMPLIANT - exclusion
9290
}

0 commit comments

Comments
 (0)