mirror of
https://github.com/github/codeql.git
synced 2026-01-29 06:12:58 +01:00
This PR separates the core cpp packs into `codeql/cpp-queries` and `codeql/cpp-all`. There are very few lines of code changed. Almost all changes are moving files around.
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()) }
|
|
}
|