Skip to content

Commit 8f35e45

Browse files
committed
RULE-11-1 RULE-11-2 RULE-11-5:
Add support for alternative NULL pointer definition
1 parent 2da6808 commit 8f35e45

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

c/common/src/codingstandards/c/Pointers.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ predicate isNullPointerConstant(Expr e) {
6868
e instanceof Zero and
6969
c.getType() instanceof VoidPointerType
7070
)
71+
or
72+
isNullPointerConstant(e.(Conversion).getExpr())
7173
}
7274

7375
predicate isCastNullPointerConstant(Cast c) {

c/misra/src/rules/RULE-11-1/tempfile

Whitespace-only changes.

c/misra/src/rules/RULE-11-2/tempfile

Whitespace-only changes.

c/misra/src/rules/RULE-11-5/tempfile

Whitespace-only changes.

0 commit comments

Comments
 (0)