[clang] WebKit Checkers should set DeclWithIssue. (PR #109389)
    Ryosuke Niwa via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Sep 26 22:34:04 PDT 2024
    
    
  
================
@@ -134,18 +135,25 @@ class UncountedLocalVarsChecker
       bool shouldVisitTemplateInstantiations() const { return true; }
       bool shouldVisitImplicitCode() const { return false; }
 
+      bool TraverseDecl(Decl *D) {
+        llvm::SaveAndRestore SavedDecl(DeclWithIssue);
+        if (D && isa<FunctionDecl>(D))
----------------
rniwa wrote:
Okay, I think we should add the support for `ObjCMethodDecl` in that case.
https://github.com/llvm/llvm-project/pull/109389
    
    
More information about the cfe-commits
mailing list