Skip to content

Commit 6672156

Browse files
committed
Declarations6: fix formatting testcase RULE-8-7
1 parent afc029e commit 6672156

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| test.h:2:12:2:13 | i1 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:4:5:4:6 | i1 | i1 |
2-
| test.h:3:5:3:6 | i2 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:5:5:5:6 | i2 | i2 |
3-
| test.h:5:13:5:14 | f2 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:7:5:7:6 | call to f2 | call to f2 |
1+
| test.h:2:12:2:13 | i1 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:4:3:4:4 | i1 | i1 |
2+
| test.h:3:5:3:6 | i2 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:5:3:5:4 | i2 | i2 |
3+
| test.h:5:13:5:14 | f2 | Declaration with external linkage is accessed in only one translation unit $@. | test.c:7:3:7:4 | call to f2 | call to f2 |

c/misra/test/rules/RULE-8-7/test.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "test.h"
2-
void f(){
3-
i = 0;
4-
i1 = 0;
5-
i2 = 0;
6-
f1();
7-
f2();
8-
f3();
2+
void f() {
3+
i = 0;
4+
i1 = 0;
5+
i2 = 0;
6+
f1();
7+
f2();
8+
f3();
99
}

c/misra/test/rules/RULE-8-7/test1.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "test.h"
2-
void f(){
3-
i = 0;
4-
f1();
2+
void f() {
3+
i = 0;
4+
f1();
55
}

0 commit comments

Comments
 (0)