Skip to content

Commit 9a8f89f

Browse files
committed
RULE-21-11: Simplify alert msg, remove tgmath.h
1 parent f22351f commit 9a8f89f

File tree

4 files changed

+76
-346
lines changed

4 files changed

+76
-346
lines changed

c/misra/src/rules/RULE-21-11/StandardHeaderFileTgmathhUsed.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ where
1818
not isExcluded(mi, BannedPackage::standardHeaderFileTgmathhUsedQuery()) and
1919
mi.getMacro() = m and
2020
m.getFile().getBaseName() = "tgmath.h"
21-
select mi, "Call to banned macro $@.", m, m.getName()
21+
select mi, "Call to banned macro " + m.getName() + "."
Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
1-
| test.c:5:3:5:9 | __DBLCX(x) | Call to banned macro $@. | tgmath.h:24:1:24:70 | #define __DBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(double complex)) | __DBLCX |
2-
| test.c:5:3:5:9 | __FLT(x) | Call to banned macro $@. | tgmath.h:20:1:20:61 | #define __FLT(x) (__IS_REAL(x) && sizeof(x) == sizeof(float)) | __FLT |
3-
| test.c:5:3:5:9 | __FLTCX(x) | Call to banned macro $@. | tgmath.h:23:1:23:69 | #define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex)) | __FLTCX |
4-
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
5-
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
6-
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
7-
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
8-
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
9-
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
10-
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
11-
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
12-
| test.c:5:3:5:9 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
13-
| test.c:5:3:5:9 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
14-
| test.c:5:3:5:9 | __LDBL(x) | Call to banned macro $@. | tgmath.h:21:1:21:109 | #define __LDBL(x) (__IS_REAL(x) && sizeof(x) == sizeof(long double) && sizeof(long double) != sizeof(double)) | __LDBL |
15-
| test.c:5:3:5:9 | __LDBLCX(x) | Call to banned macro $@. | tgmath.h:25:1:25:117 | #define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double)) | __LDBLCX |
16-
| test.c:5:3:5:9 | __RETCAST(x) | Call to banned macro $@. | tgmath.h:71:1:71:20 | #define __RETCAST(x) | __RETCAST |
17-
| test.c:5:3:5:9 | __tg_real_complex(fun,x) | Call to banned macro $@. | tgmath.h:107:1:113:10 | #define __tg_real_complex(fun,x) (__RETCAST(x)( __FLTCX(x) ? c ## fun ## f (x) : __DBLCX(x) ? c ## fun (x) : __LDBLCX(x) ? c ## fun ## l (x) : __FLT(x) ? fun ## f (x) : __LDBL(x) ? fun ## l (x) : fun(x) )) | __tg_real_complex |
18-
| test.c:5:3:5:9 | sqrt(x) | Call to banned macro $@. | tgmath.h:264:1:264:52 | #define sqrt(x) __tg_real_complex(sqrt, (x)) | sqrt |
19-
| test.c:7:3:7:8 | __DBLCX(x) | Call to banned macro $@. | tgmath.h:24:1:24:70 | #define __DBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(double complex)) | __DBLCX |
20-
| test.c:7:3:7:8 | __FLT(x) | Call to banned macro $@. | tgmath.h:20:1:20:61 | #define __FLT(x) (__IS_REAL(x) && sizeof(x) == sizeof(float)) | __FLT |
21-
| test.c:7:3:7:8 | __FLTCX(x) | Call to banned macro $@. | tgmath.h:23:1:23:69 | #define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex)) | __FLTCX |
22-
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
23-
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
24-
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
25-
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
26-
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
27-
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
28-
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
29-
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
30-
| test.c:7:3:7:8 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
31-
| test.c:7:3:7:8 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
32-
| test.c:7:3:7:8 | __LDBL(x) | Call to banned macro $@. | tgmath.h:21:1:21:109 | #define __LDBL(x) (__IS_REAL(x) && sizeof(x) == sizeof(long double) && sizeof(long double) != sizeof(double)) | __LDBL |
33-
| test.c:7:3:7:8 | __LDBLCX(x) | Call to banned macro $@. | tgmath.h:25:1:25:117 | #define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double)) | __LDBLCX |
34-
| test.c:7:3:7:8 | __RETCAST(x) | Call to banned macro $@. | tgmath.h:71:1:71:20 | #define __RETCAST(x) | __RETCAST |
35-
| test.c:7:3:7:8 | __tg_real_complex(fun,x) | Call to banned macro $@. | tgmath.h:107:1:113:10 | #define __tg_real_complex(fun,x) (__RETCAST(x)( __FLTCX(x) ? c ## fun ## f (x) : __DBLCX(x) ? c ## fun (x) : __LDBLCX(x) ? c ## fun ## l (x) : __FLT(x) ? fun ## f (x) : __LDBL(x) ? fun ## l (x) : fun(x) )) | __tg_real_complex |
36-
| test.c:7:3:7:8 | sin(x) | Call to banned macro $@. | tgmath.h:262:1:262:51 | #define sin(x) __tg_real_complex(sin, (x)) | sin |
37-
| test.c:10:21:10:28 | __DBLCX(x) | Call to banned macro $@. | tgmath.h:24:1:24:70 | #define __DBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(double complex)) | __DBLCX |
38-
| test.c:10:21:10:28 | __FLT(x) | Call to banned macro $@. | tgmath.h:20:1:20:61 | #define __FLT(x) (__IS_REAL(x) && sizeof(x) == sizeof(float)) | __FLT |
39-
| test.c:10:21:10:28 | __FLTCX(x) | Call to banned macro $@. | tgmath.h:23:1:23:69 | #define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex)) | __FLTCX |
40-
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
41-
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
42-
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
43-
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
44-
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
45-
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
46-
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
47-
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
48-
| test.c:10:21:10:28 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
49-
| test.c:10:21:10:28 | __IS_REAL(x) | Call to banned macro $@. | tgmath.h:18:1:18:65 | #define __IS_REAL(x) (__IS_FP(x) && 2*sizeof(x) == sizeof((x)+I)) | __IS_REAL |
50-
| test.c:10:21:10:28 | __LDBL(x) | Call to banned macro $@. | tgmath.h:21:1:21:109 | #define __LDBL(x) (__IS_REAL(x) && sizeof(x) == sizeof(long double) && sizeof(long double) != sizeof(double)) | __LDBL |
51-
| test.c:10:21:10:28 | __LDBLCX(x) | Call to banned macro $@. | tgmath.h:25:1:25:117 | #define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double)) | __LDBLCX |
52-
| test.c:10:21:10:28 | __RETCAST(x) | Call to banned macro $@. | tgmath.h:71:1:71:20 | #define __RETCAST(x) | __RETCAST |
53-
| test.c:10:21:10:28 | __tg_real_complex(fun,x) | Call to banned macro $@. | tgmath.h:107:1:113:10 | #define __tg_real_complex(fun,x) (__RETCAST(x)( __FLTCX(x) ? c ## fun ## f (x) : __DBLCX(x) ? c ## fun (x) : __LDBLCX(x) ? c ## fun ## l (x) : __FLT(x) ? fun ## f (x) : __LDBL(x) ? fun ## l (x) : fun(x) )) | __tg_real_complex |
54-
| test.c:10:21:10:28 | sqrt(x) | Call to banned macro $@. | tgmath.h:264:1:264:52 | #define sqrt(x) __tg_real_complex(sqrt, (x)) | sqrt |
55-
| test.c:11:3:11:10 | __FLTCX(x) | Call to banned macro $@. | tgmath.h:23:1:23:69 | #define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex)) | __FLTCX |
56-
| test.c:11:3:11:10 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
57-
| test.c:11:3:11:10 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
58-
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
59-
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
60-
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
61-
| test.c:11:3:11:10 | __LDBLCX(x) | Call to banned macro $@. | tgmath.h:25:1:25:117 | #define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double)) | __LDBLCX |
62-
| test.c:11:3:11:10 | __RETCAST_REAL(x) | Call to banned macro $@. | tgmath.h:74:1:74:25 | #define __RETCAST_REAL(x) | __RETCAST_REAL |
63-
| test.c:11:3:11:10 | __tg_complex_retreal(fun,x) | Call to banned macro $@. | tgmath.h:102:1:105:10 | #define __tg_complex_retreal(fun,x) (__RETCAST_REAL(x)( __FLTCX((x)+I) && __IS_FP(x) ? fun ## f (x) : __LDBLCX((x)+I) ? fun ## l (x) : fun(x) )) | __tg_complex_retreal |
64-
| test.c:11:3:11:10 | creal(x) | Call to banned macro $@. | tgmath.h:225:1:225:56 | #define creal(x) __tg_complex_retreal(creal, (x)) | creal |
65-
| test.c:12:3:12:10 | __FLTCX(x) | Call to banned macro $@. | tgmath.h:23:1:23:69 | #define __FLTCX(x) (__IS_CX(x) && sizeof(x) == sizeof(float complex)) | __FLTCX |
66-
| test.c:12:3:12:10 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
67-
| test.c:12:3:12:10 | __IS_CX(x) | Call to banned macro $@. | tgmath.h:17:1:17:61 | #define __IS_CX(x) (__IS_FP(x) && sizeof(x) == sizeof((x)+I)) | __IS_CX |
68-
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
69-
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
70-
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro $@. | tgmath.h:16:1:16:57 | #define __IS_FP(x) (sizeof((x)+1ULL) == sizeof((x)+1.0f)) | __IS_FP |
71-
| test.c:12:3:12:10 | __LDBLCX(x) | Call to banned macro $@. | tgmath.h:25:1:25:117 | #define __LDBLCX(x) (__IS_CX(x) && sizeof(x) == sizeof(long double complex) && sizeof(long double) != sizeof(double)) | __LDBLCX |
72-
| test.c:12:3:12:10 | __RETCAST_REAL(x) | Call to banned macro $@. | tgmath.h:74:1:74:25 | #define __RETCAST_REAL(x) | __RETCAST_REAL |
73-
| test.c:12:3:12:10 | __tg_complex_retreal(fun,x) | Call to banned macro $@. | tgmath.h:102:1:105:10 | #define __tg_complex_retreal(fun,x) (__RETCAST_REAL(x)( __FLTCX((x)+I) && __IS_FP(x) ? fun ## f (x) : __LDBLCX((x)+I) ? fun ## l (x) : fun(x) )) | __tg_complex_retreal |
74-
| test.c:12:3:12:10 | cimag(x) | Call to banned macro $@. | tgmath.h:219:1:219:56 | #define cimag(x) __tg_complex_retreal(cimag, (x)) | cimag |
1+
| test.c:5:3:5:9 | __DBLCX(x) | Call to banned macro __DBLCX. |
2+
| test.c:5:3:5:9 | __FLT(x) | Call to banned macro __FLT. |
3+
| test.c:5:3:5:9 | __FLTCX(x) | Call to banned macro __FLTCX. |
4+
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro __IS_CX. |
5+
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro __IS_CX. |
6+
| test.c:5:3:5:9 | __IS_CX(x) | Call to banned macro __IS_CX. |
7+
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro __IS_FP. |
8+
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro __IS_FP. |
9+
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro __IS_FP. |
10+
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro __IS_FP. |
11+
| test.c:5:3:5:9 | __IS_FP(x) | Call to banned macro __IS_FP. |
12+
| test.c:5:3:5:9 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
13+
| test.c:5:3:5:9 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
14+
| test.c:5:3:5:9 | __LDBL(x) | Call to banned macro __LDBL. |
15+
| test.c:5:3:5:9 | __LDBLCX(x) | Call to banned macro __LDBLCX. |
16+
| test.c:5:3:5:9 | __RETCAST(x) | Call to banned macro __RETCAST. |
17+
| test.c:5:3:5:9 | __tg_real_complex(fun,x) | Call to banned macro __tg_real_complex. |
18+
| test.c:5:3:5:9 | sqrt(x) | Call to banned macro sqrt. |
19+
| test.c:7:3:7:8 | __DBLCX(x) | Call to banned macro __DBLCX. |
20+
| test.c:7:3:7:8 | __FLT(x) | Call to banned macro __FLT. |
21+
| test.c:7:3:7:8 | __FLTCX(x) | Call to banned macro __FLTCX. |
22+
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro __IS_CX. |
23+
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro __IS_CX. |
24+
| test.c:7:3:7:8 | __IS_CX(x) | Call to banned macro __IS_CX. |
25+
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro __IS_FP. |
26+
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro __IS_FP. |
27+
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro __IS_FP. |
28+
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro __IS_FP. |
29+
| test.c:7:3:7:8 | __IS_FP(x) | Call to banned macro __IS_FP. |
30+
| test.c:7:3:7:8 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
31+
| test.c:7:3:7:8 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
32+
| test.c:7:3:7:8 | __LDBL(x) | Call to banned macro __LDBL. |
33+
| test.c:7:3:7:8 | __LDBLCX(x) | Call to banned macro __LDBLCX. |
34+
| test.c:7:3:7:8 | __RETCAST(x) | Call to banned macro __RETCAST. |
35+
| test.c:7:3:7:8 | __tg_real_complex(fun,x) | Call to banned macro __tg_real_complex. |
36+
| test.c:7:3:7:8 | sin(x) | Call to banned macro sin. |
37+
| test.c:10:21:10:28 | __DBLCX(x) | Call to banned macro __DBLCX. |
38+
| test.c:10:21:10:28 | __FLT(x) | Call to banned macro __FLT. |
39+
| test.c:10:21:10:28 | __FLTCX(x) | Call to banned macro __FLTCX. |
40+
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro __IS_CX. |
41+
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro __IS_CX. |
42+
| test.c:10:21:10:28 | __IS_CX(x) | Call to banned macro __IS_CX. |
43+
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro __IS_FP. |
44+
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro __IS_FP. |
45+
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro __IS_FP. |
46+
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro __IS_FP. |
47+
| test.c:10:21:10:28 | __IS_FP(x) | Call to banned macro __IS_FP. |
48+
| test.c:10:21:10:28 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
49+
| test.c:10:21:10:28 | __IS_REAL(x) | Call to banned macro __IS_REAL. |
50+
| test.c:10:21:10:28 | __LDBL(x) | Call to banned macro __LDBL. |
51+
| test.c:10:21:10:28 | __LDBLCX(x) | Call to banned macro __LDBLCX. |
52+
| test.c:10:21:10:28 | __RETCAST(x) | Call to banned macro __RETCAST. |
53+
| test.c:10:21:10:28 | __tg_real_complex(fun,x) | Call to banned macro __tg_real_complex. |
54+
| test.c:10:21:10:28 | sqrt(x) | Call to banned macro sqrt. |
55+
| test.c:11:3:11:10 | __FLTCX(x) | Call to banned macro __FLTCX. |
56+
| test.c:11:3:11:10 | __IS_CX(x) | Call to banned macro __IS_CX. |
57+
| test.c:11:3:11:10 | __IS_CX(x) | Call to banned macro __IS_CX. |
58+
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
59+
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
60+
| test.c:11:3:11:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
61+
| test.c:11:3:11:10 | __LDBLCX(x) | Call to banned macro __LDBLCX. |
62+
| test.c:11:3:11:10 | __RETCAST_REAL(x) | Call to banned macro __RETCAST_REAL. |
63+
| test.c:11:3:11:10 | __tg_complex_retreal(fun,x) | Call to banned macro __tg_complex_retreal. |
64+
| test.c:11:3:11:10 | creal(x) | Call to banned macro creal. |
65+
| test.c:12:3:12:10 | __FLTCX(x) | Call to banned macro __FLTCX. |
66+
| test.c:12:3:12:10 | __IS_CX(x) | Call to banned macro __IS_CX. |
67+
| test.c:12:3:12:10 | __IS_CX(x) | Call to banned macro __IS_CX. |
68+
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
69+
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
70+
| test.c:12:3:12:10 | __IS_FP(x) | Call to banned macro __IS_FP. |
71+
| test.c:12:3:12:10 | __LDBLCX(x) | Call to banned macro __LDBLCX. |
72+
| test.c:12:3:12:10 | __RETCAST_REAL(x) | Call to banned macro __RETCAST_REAL. |
73+
| test.c:12:3:12:10 | __tg_complex_retreal(fun,x) | Call to banned macro __tg_complex_retreal. |
74+
| test.c:12:3:12:10 | cimag(x) | Call to banned macro cimag. |

c/misra/test/rules/RULE-21-11/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "tgmath.h"
1+
#include <tgmath.h>
22
void f2();
33
void f1() {
44
int i = 2;

0 commit comments

Comments
 (0)