summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-10-12 12:21:29 +0000
committerSam McCall <sam.mccall@gmail.com>2018-10-12 12:21:29 +0000
commit5da4d75877d022f1fec4147e9fd1e24a09c49757 (patch)
tree89c1b94dfbbe1e1d13f48a2d430f17503368ebae /clang/lib
parent29279f29c80b6ac35c187772c4337983c62a4815 (diff)
downloadbcm5719-llvm-5da4d75877d022f1fec4147e9fd1e24a09c49757.tar.gz
bcm5719-llvm-5da4d75877d022f1fec4147e9fd1e24a09c49757.zip
Remove top-level using declaration from header files, as these aliases leak.
Reviewers: ilya-biryukov Subscribers: arphaman, cfe-commits Differential Revision: https://reviews.llvm.org/D53135 llvm-svn: 344337
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp2
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 16c75648f34..673d856f1ff 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -568,7 +568,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
auto &MM = ASTReader->getModuleManager();
auto &PrimaryModule = MM.getPrimaryModule();
- for (ModuleFile &MF : MM)
+ for (serialization::ModuleFile &MF : MM)
if (&MF != &PrimaryModule)
CI.getFrontendOpts().ModuleFiles.push_back(MF.FileName);
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
index e8d9136ffd2..e7684142611 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
+++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
@@ -45,8 +45,6 @@
#include <cstdarg>
#include <utility>
-using llvm::StrInStrNoCase;
-
namespace clang {
namespace ento {
namespace retaincountchecker {
OpenPOWER on IntegriCloud