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

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 07:11:21 PDT 2016


Author: hokein
Date: Wed May 18 09:11:20 2016
New Revision: 269928

URL: http://llvm.org/viewvc/llvm-project?rev=269928&view=rev
Log:
[clang-tidy] Use unresolvedLookupExpr node matcher from ASTMatcher.

Reviewers: alexfh, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

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

Modified:
    clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp

Modified: clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp?rev=269928&r1=269927&r2=269928&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp Wed May 18 09:11:20 2016
@@ -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"));




More information about the cfe-commits mailing list