File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
c/misra/test/rules/RULE-8-7 Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 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 |
Original file line number Diff line number Diff line change 1
1
#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 ();
9
9
}
Original file line number Diff line number Diff line change 1
1
#include "test.h"
2
- void f (){
3
- i = 0 ;
4
- f1 ();
2
+ void f () {
3
+ i = 0 ;
4
+ f1 ();
5
5
}
You can’t perform that action at this time.
0 commit comments