From: Tobias Brunner Date: Thu, 14 Apr 2022 13:16:38 +0000 (+0200) Subject: lgtm: Fix query for chunk_from_chars() X-Git-Tag: 5.9.6rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63260a11ca9548fd70796bc2fec114ca66d88315;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/.lgtm/cpp-queries/chunk_from_chars.ql b/.lgtm/cpp-queries/chunk_from_chars.ql index c393e7ee5c..f60e3e7c94 100644 --- a/.lgtm/cpp-queries/chunk_from_chars.ql +++ b/.lgtm/cpp-queries/chunk_from_chars.ql @@ -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() }