[clang-tidy] Use unresolvedLookupExpr node matcher from ASTMatcher.

Reviewers: alexfh, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

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

llvm-svn: 269928
This commit is contained in:
Haojian Wu 2016-05-18 14:11:20 +00:00
parent c7f3b108e2
commit 1bc05a681e
1 changed files with 0 additions and 7 deletions

View File

@ -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;
@ -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"));