Skip to content

Commit b9bfdef

Browse files
committed
fix using since clang-tidy should allow this
1 parent 18a76d3 commit b9bfdef

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.cpp

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "../utils/OptionsUtils.h"
1313
#include "clang/ASTMatchers/ASTMatchFinder.h"
1414

15+
using namespace clang::ast_matchers;
16+
1517
namespace clang::tidy::bugprone {
1618
namespace {
1719

@@ -48,34 +50,6 @@ MoveSharedPointerContentsCheck::MoveSharedPointerContentsCheck(
4850

4951
void MoveSharedPointerContentsCheck::registerMatchers(
5052
ast_matchers::MatchFinder *Finder) {
51-
using ast_matchers::anyOf;
52-
using ast_matchers::callee;
53-
using ast_matchers::callExpr;
54-
using ast_matchers::cxxDependentScopeMemberExpr;
55-
using ast_matchers::cxxMemberCallExpr;
56-
using ast_matchers::cxxMethodDecl;
57-
using ast_matchers::cxxOperatorCallExpr;
58-
using ast_matchers::declRefExpr;
59-
using ast_matchers::functionDecl;
60-
using ast_matchers::hasAnyDeclaration;
61-
using ast_matchers::hasAnyName;
62-
using ast_matchers::hasArgument;
63-
using ast_matchers::hasDescendant;
64-
using ast_matchers::hasMemberName;
65-
using ast_matchers::hasName;
66-
using ast_matchers::hasOperatorName;
67-
using ast_matchers::hasOverloadedOperatorName;
68-
using ast_matchers::hasType;
69-
using ast_matchers::hasUnaryOperand;
70-
using ast_matchers::hasUnderlyingDecl;
71-
using ast_matchers::namedDecl;
72-
using ast_matchers::on;
73-
using ast_matchers::qualType;
74-
using ast_matchers::to;
75-
using ast_matchers::unaryOperator;
76-
using ast_matchers::unresolvedLookupExpr;
77-
using ast_matchers::varDecl;
78-
7953
auto IsStdMove =
8054
callee(functionDecl(hasAnyName("::std::move", "::std::forward")));
8155

0 commit comments

Comments
 (0)