[clang] 8b39527 - [NFC] Wrap entire debug logging loop in LLVM_DEBUG

Jordan Rupprecht via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 26 05:28:23 PDT 2023


Author: Jordan Rupprecht
Date: 2023-04-26T05:28:15-07:00
New Revision: 8b39527535ff50837da08509392e3268fb6129f0

URL: https://github.com/llvm/llvm-project/commit/8b39527535ff50837da08509392e3268fb6129f0
DIFF: https://github.com/llvm/llvm-project/commit/8b39527535ff50837da08509392e3268fb6129f0.diff

LOG: [NFC] Wrap entire debug logging loop in LLVM_DEBUG

Added: 
    

Modified: 
    clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
index 8340fe4c8270b..4bf8ce13e0572 100644
--- a/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
@@ -173,10 +173,10 @@ const NoteTag *taintOriginTrackerTag(CheckerContext &C,
     for (auto Sym : TaintedSymbols) {
       BR.markInteresting(Sym);
     }
-    for (auto Arg : TaintedArgs) {
-      LLVM_DEBUG(llvm::dbgs()
-                 << "Taint Propagated from argument " << Arg + 1 << "\n");
-    }
+    LLVM_DEBUG(for (auto Arg
+                    : TaintedArgs) {
+      llvm::dbgs() << "Taint Propagated from argument " << Arg + 1 << "\n";
+    });
     return "";
   });
 }


        


More information about the cfe-commits mailing list