Skip to content

Commit 0971b4c

Browse files
authored
Merge pull request #76 from jketema/nullmacro-deprecation-fix
Replace `NULLMacro` by `NullMacro`
2 parents 34aea0a + 422bdb3 commit 0971b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import codingstandards.cpp.Type
99
* A null pointer constant, which is either in the form `NULL` or `(void *)0`.
1010
*/
1111
predicate isNullPointerConstant(Expr e) {
12-
e.findRootCause() instanceof NULLMacro
12+
e.findRootCause() instanceof NullMacro
1313
or
1414
exists(CStyleCast c |
1515
not c.isImplicit() and

cpp/common/src/codingstandards/cpp/enhancements/MacroEnhacements.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module MacroEnhancements {
2929
/** A use of the NULL macro. */
3030
class NULL extends StandardLibrary::Literal {
3131
NULL() {
32-
exists(StandardLibrary::NULLMacro nm | this = nm.getAnInvocation().getAnExpandedElement())
32+
exists(StandardLibrary::NullMacro nm | this = nm.getAnInvocation().getAnExpandedElement())
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)