================
@@ -191,6 +192,33 @@ static void removeFunctionArgs(DiagnosticBuilder &Diag, 
const CallExpr &Call,
   }
 }
 
+static bool isResultUsed(const DynTypedNode &Node,
+                         const ast_matchers::MatchFinder::MatchResult &Result) 
{
+  const DynTypedNodeList Parents = Result.Context->getParents(Node);
+  if (Parents.size() != 1)
+    return true;
----------------
5chmidti wrote:

What code is detected with this?

https://github.com/llvm/llvm-project/pull/196035
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to