mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
lgtm: Fix query for chunk_from_chars()
`Block` has apparently been deprecated and renamed to `BlockStmt` a while ago. Support for `Block` was recently removed completely.
This commit is contained in:
parent
3c028686de
commit
63260a11ca
@ -18,7 +18,7 @@ class ChunkFromChars extends Expr {
|
||||
this = any(MacroInvocation mi |
|
||||
mi.getOutermostMacroAccess().getMacroName() = "chunk_from_chars"
|
||||
/* ignore global static uses of the macro */
|
||||
and exists (Block b | mi.getExpr().getEnclosingBlock() = b)
|
||||
and exists (BlockStmt b | mi.getExpr().getEnclosingBlock() = b)
|
||||
).getExpr()
|
||||
}
|
||||
}
|
||||
@ -40,7 +40,7 @@ class ChunkFromCharsUsage extends DataFlow::Configuration {
|
||||
}
|
||||
}
|
||||
|
||||
Block enclosingBlock(Block b) {
|
||||
BlockStmt enclosingBlock(BlockStmt b) {
|
||||
result = b.getEnclosingBlock()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user