We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6bcdf9 commit 062e0e2Copy full SHA for 062e0e2
cpp/autosar/test/rules/A5-1-1/test.cpp
@@ -78,15 +78,13 @@ void test_not_wrapper_stream(std::ostream &os, const char *str) noexcept {
78
// not actually exclusively a wrapper
79
}
80
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
+#define MACRO_LOG(test_str) \
+ do { \
+ struct test_struct { \
+ static const char *get_str() { return static_cast<char *>(test_str); } \
+ }; \
+ } while (false)
+
+void f() {
+ MACRO_LOG("test"); // COMPLIANT - exclusion
92
0 commit comments