From 63260a11ca9548fd70796bc2fec114ca66d88315 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 14 Apr 2022 15:16:38 +0200 Subject: [PATCH] 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. --- .lgtm/cpp-queries/chunk_from_chars.ql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() }