Files
codeql/cpp/ql/lib/semmle/code/cpp/commons/NULL.qll
2024-01-22 09:11:35 +01:00

12 lines
287 B
Plaintext

import semmle.code.cpp.Macro
/** A macro defining NULL. */
class NullMacro extends Macro {
NullMacro() { this.getHead() = "NULL" }
}
/** A use of the NULL macro. */
class NULL extends Literal {
NULL() { exists(NullMacro nm | this = nm.getAnInvocation().getAnExpandedElement()) }
}