Skip to content

Commit 2d8786b

Browse files
committed
Fix test formatting
1 parent c5d1692 commit 2d8786b

File tree

5 files changed

+13
-13
lines changed
  • c/common/test/rules
    • constlikereturnvalue
    • functionlikemacrosdefined_shared
  • cpp/common/test/rules

5 files changed

+13
-13
lines changed

c/common/test/rules/constlikereturnvalue/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C++ TEST CASE AND
22
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
33
#include <locale.h>
4+
#include <stddef.h>
45
#include <stdlib.h>
56
#include <string.h>
6-
#include <stddef.h>
77

88
void trstr(char *c_str, char orig, char rep) {
99
while (*c_str != '\0') {

c/common/test/rules/functionlikemacrosdefined_shared/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define MY_ASSERT(X) assert(X) // NON_COMPLIANT[FALSE_NEGATIVE]
1616

1717
char a1[MACRO2(1, 1) + 6];
18-
extern int printf_custom(char*, int);
18+
extern int printf_custom(char *, int);
1919
int test1;
2020

2121
void f() {

cpp/common/test/rules/constlikereturnvalue/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
22
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
33
#include <locale.h>
4+
#include <stddef.h>
45
#include <stdlib.h>
56
#include <string.h>
6-
#include <stddef.h>
77

88
void trstr(char *c_str, char orig, char rep) {
99
while (*c_str != '\0') {

cpp/common/test/rules/functionlikemacrosdefined_shared/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define MY_ASSERT(X) assert(X) // NON_COMPLIANT[FALSE_NEGATIVE]
1616

1717
char a1[MACRO2(1, 1) + 6];
18-
extern int printf_custom(char*, int);
18+
extern int printf_custom(char *, int);
1919
int test1;
2020

2121
void f() {

cpp/common/test/rules/lowercaselstartsinliteralsuffix_shared/test.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// NOTICE: THE TEST CASES BELOW ARE ALSO INCLUDED IN THE C TEST CASE AND
22
// CHANGES SHOULD BE REFLECTED THERE AS WELL.
33
int x = false; // COMPLIANT - reported as FP in #319
4-
int a1 = 0L; // COMPLIANT
5-
int a2 = 0l; // NON_COMPLIANT
6-
int a3 = 0ll; // NON_COMPLIANT
7-
int a4 = 0LL; // COMPLIANT
8-
int a5 = 0uL; // COMPLIANT
9-
int a6 = 0ul; // NON_COMPLIANT
10-
int a7 = 0lu; // NON_COMPLIANT
11-
int a8 = 0Lu; // COMPLIANT
12-
int a9 = 0LU; // COMPLIANT
4+
int a1 = 0L; // COMPLIANT
5+
int a2 = 0l; // NON_COMPLIANT
6+
int a3 = 0ll; // NON_COMPLIANT
7+
int a4 = 0LL; // COMPLIANT
8+
int a5 = 0uL; // COMPLIANT
9+
int a6 = 0ul; // NON_COMPLIANT
10+
int a7 = 0lu; // NON_COMPLIANT
11+
int a8 = 0Lu; // COMPLIANT
12+
int a9 = 0LU; // COMPLIANT
1313

1414
long b1 = 0L; // COMPLIANT
1515
long b2 = 0l; // NON_COMPLIANT

0 commit comments

Comments
 (0)