Skip to content

Commit

Permalink
[clang-tidy] Use unresolvedLookupExpr node matcher from ASTMatcher.
Browse files Browse the repository at this point in the history
Reviewers: alexfh, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

Differential Revision: http://reviews.llvm.org/D20367

llvm-svn: 269928
  • Loading branch information
hokein committed May 18, 2016
1 parent c7f3b10 commit 1bc05a6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
Expand Up @@ -10,7 +10,6 @@
#include "UnusedUsingDeclsCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchersInternal.h"
#include "clang/Lex/Lexer.h"

using namespace clang::ast_matchers;
Expand All @@ -19,12 +18,6 @@ namespace clang {
namespace tidy {
namespace misc {

namespace {
// FIXME: Move this node matcher to ASTMatcher.
const internal::VariadicDynCastAllOfMatcher<Stmt, UnresolvedLookupExpr>
unresolvedLookupExpr;
}

void UnusedUsingDeclsCheck::registerMatchers(MatchFinder *Finder) {
Finder->addMatcher(usingDecl(isExpansionInMainFile()).bind("using"), this);
auto DeclMatcher = hasDeclaration(namedDecl().bind("used"));
Expand Down

0 comments on commit 1bc05a6

Please sign in to comment.