aboutsummaryrefslogtreecommitdiff
path: root/clang-tidy/performance
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-05-02 18:00:29 +0000
committerEtienne Bergeron <etienneb@google.com>2016-05-02 18:00:29 +0000
commitc80718012edd63e5b2adf344f7f4750e03c0b1ba (patch)
tree5c117735e00ade56728aa210782fec146c31c379 /clang-tidy/performance
parent5e8c5f7d40c0aafdc55237935f86d751e7f2246d (diff)
[clang-tidy] Cleaning namespaces to be more consistant across checkers.
Summary: The goal of the patch is to bring checkers in their appropriate namespace. This path doesn't change any behavior. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19811 git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@268264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/performance')
-rw-r--r--clang-tidy/performance/ForRangeCopyCheck.cpp4
-rw-r--r--clang-tidy/performance/ImplicitCastInLoopCheck.cpp5
2 files changed, 4 insertions, 5 deletions
diff --git a/clang-tidy/performance/ForRangeCopyCheck.cpp b/clang-tidy/performance/ForRangeCopyCheck.cpp
index abdcdf49..7fc94373 100644
--- a/clang-tidy/performance/ForRangeCopyCheck.cpp
+++ b/clang-tidy/performance/ForRangeCopyCheck.cpp
@@ -12,12 +12,12 @@
#include "../utils/FixItHintUtils.h"
#include "../utils/TypeTraits.h"
+using namespace clang::ast_matchers;
+
namespace clang {
namespace tidy {
namespace performance {
-using namespace ::clang::ast_matchers;
-
ForRangeCopyCheck::ForRangeCopyCheck(StringRef Name, ClangTidyContext *Context)
: ClangTidyCheck(Name, Context),
WarnOnAllAutoCopies(Options.get("WarnOnAllAutoCopies", 0)) {}
diff --git a/clang-tidy/performance/ImplicitCastInLoopCheck.cpp b/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
index 04dadfbf..3fcfdba5 100644
--- a/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
+++ b/clang-tidy/performance/ImplicitCastInLoopCheck.cpp
@@ -15,10 +15,9 @@
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Lex/Lexer.h"
-namespace clang {
-
-using namespace ast_matchers;
+using namespace clang::ast_matchers;
+namespace clang {
namespace tidy {
namespace performance {