mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
12 lines
287 B
Plaintext
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()) }
|
|
}
|