[llvm] 11511e9 - Remove "using namespace llvm" from ReleaseModeModelRunner.h
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 06:31:53 PST 2022
Author: Pavel Labath
Date: 2022-03-02T15:29:12+01:00
New Revision: 11511e9357e823dc7f1a38a4466a3a7e3f633a18
URL: https://github.com/llvm/llvm-project/commit/11511e9357e823dc7f1a38a4466a3a7e3f633a18
DIFF: https://github.com/llvm/llvm-project/commit/11511e9357e823dc7f1a38a4466a3a7e3f633a18.diff
LOG: Remove "using namespace llvm" from ReleaseModeModelRunner.h
A using directive in a header pollutes the namespace of all files which
include that header. It seems this snuck in in D115764 by moving some
code from a cpp file.
Added:
Modified:
llvm/include/llvm/Analysis/ReleaseModeModelRunner.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ReleaseModeModelRunner.h b/llvm/include/llvm/Analysis/ReleaseModeModelRunner.h
index 22d1628fb2428..6594b26ee6d96 100644
--- a/llvm/include/llvm/Analysis/ReleaseModeModelRunner.h
+++ b/llvm/include/llvm/Analysis/ReleaseModeModelRunner.h
@@ -20,7 +20,6 @@
#include <memory>
#include <vector>
-using namespace llvm;
namespace llvm {
/// ReleaseModeModelRunner - production mode implementation of the
More information about the llvm-commits
mailing list