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 a20839c commit 8a07083Copy full SHA for 8a07083
c/misra/test/c/misra/test.c
@@ -82,8 +82,8 @@ void testControlChar() {
82
}
83
84
#include <stdint.h>
85
-
86
-void testBitwise() {
+// clang-format off
+void testBitwise() { // Clang format disabled to avoid confusion with variable declarations
87
uint8_t u8 = 0;
88
uint16_t u16 = 0;
89
uint32_t u32 = 0;
@@ -160,7 +160,7 @@ void testBitwise() {
160
u8 ^ s8; // Essentially signed, int
161
s8 ^ u8; // Essentially signed, int
162
163
+// clang-format on
164
void testShifts() {
165
int32_t s32 = 1;
166
0 commit comments