mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
C++: remove all uses of Declaration::isDefined
This commit is contained in:
@@ -3,6 +3,6 @@ import cpp
|
||||
// It should be the case that "f.isDefined()" is equivalent to "exists(f.getBlock())".
|
||||
from Function f, string isdef, string hasblock
|
||||
where
|
||||
(if f.isDefined() then isdef = "defined" else isdef = "not defined") and
|
||||
(if f.hasDefinition() then isdef = "defined" else isdef = "not defined") and
|
||||
(if exists(f.getBlock()) then hasblock = "has block" else hasblock = "no block")
|
||||
select f.getName(), isdef, hasblock
|
||||
|
||||
Reference in New Issue
Block a user