[PATCH] D20367: [clang-tidy] Use unresolvedLookupExpr node matcher from ASTMatcher.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 18 07:17:36 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL269928: [clang-tidy] Use unresolvedLookupExpr node matcher from ASTMatcher. (authored by hokein).
Changed prior to commit:
http://reviews.llvm.org/D20367?vs=57616&id=57619#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20367
Files:
clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
Index: clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
===================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
+++ clang-tools-extra/trunk/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
@@ -10,21 +10,14 @@
#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;
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"));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20367.57619.patch
Type: text/x-patch
Size: 979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/df0e3bb9/attachment.bin>
More information about the cfe-commits
mailing list