[clang] 5a47acc - [Analyzer] Fix clang::ento::taint::dumpTaint definition
Marco Antognini via cfe-commits
cfe-commits at lists.llvm.org
Mon May 2 08:44:12 PDT 2022
Author: Marco Antognini
Date: 2022-05-02T17:44:06+02:00
New Revision: 5a47accda88c24d07cc48241be0f0078e8c9dfd0
URL: https://github.com/llvm/llvm-project/commit/5a47accda88c24d07cc48241be0f0078e8c9dfd0
DIFF: https://github.com/llvm/llvm-project/commit/5a47accda88c24d07cc48241be0f0078e8c9dfd0.diff
LOG: [Analyzer] Fix clang::ento::taint::dumpTaint definition
Ensure the definition is in the "taint" namespace, like its declaration.
Reviewed By: steakhal
Differential Revision: https://reviews.llvm.org/D124462
Added:
Modified:
clang/lib/StaticAnalyzer/Checkers/Taint.cpp
Removed:
################################################################################
diff --git a/clang/lib/StaticAnalyzer/Checkers/Taint.cpp b/clang/lib/StaticAnalyzer/Checkers/Taint.cpp
index 02a8d6abad2a1..44162094e49a8 100644
--- a/clang/lib/StaticAnalyzer/Checkers/Taint.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/Taint.cpp
@@ -37,7 +37,9 @@ void taint::printTaint(ProgramStateRef State, raw_ostream &Out, const char *NL,
Out << I.first << " : " << I.second << NL;
}
-void dumpTaint(ProgramStateRef State) { printTaint(State, llvm::errs()); }
+void taint::dumpTaint(ProgramStateRef State) {
+ printTaint(State, llvm::errs());
+}
ProgramStateRef taint::addTaint(ProgramStateRef State, const Stmt *S,
const LocationContext *LCtx,
More information about the cfe-commits
mailing list