File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
c/misra/src/rules/RULE-21-13 Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,10 @@ from UseOfToOrIsChar ctypeCall
19
19
where
20
20
not isExcluded ( ctypeCall ,
21
21
StandardLibraryFunctionTypesPackage:: ctypeFunctionArgNotUnsignedCharOrEofQuery ( ) ) and
22
- not exists ( Expr ctypeCallArgument |
23
- ctypeCallArgument = ctypeCall .getConvertedArgument ( ) .getExplicitlyConverted ( )
24
- |
22
+ not exists ( Expr ctypeCallArgument | ctypeCallArgument = ctypeCall .getConvertedArgument ( ) |
25
23
/* The argument's value should be in the EOF + `unsigned char` range. */
26
24
- 1 <= lowerBound ( ctypeCallArgument ) and upperBound ( ctypeCallArgument ) <= 255
27
25
)
28
26
select ctypeCall ,
29
- "The <ctype.h> function " + ctypeCall + " accepts an argument " +
30
- ctypeCall . getConvertedArgument ( ) . toString ( ) + " that is not an unsigned char nor an EOF."
27
+ "The <ctype.h> function " + ctypeCall + " accepts an argument " + ctypeCall . getConvertedArgument ( )
28
+ + " that is not an unsigned char nor an EOF."
You can’t perform that action at this time.
0 commit comments