forked from OSchip/llvm-project
[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:
parent
c7f3b108e2
commit
1bc05a681e
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue