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:
Tobias Brunner 2022-04-14 15:16:38 +02:00
parent 3c028686de
commit 63260a11ca

View File

@ -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()
}