[PATCH] D66945: [clang-tidy] Fix a false positive in unused-using-decl check.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 07:44:07 PDT 2019


hokein created this revision.
hokein added a reviewer: gribozavr.
Herald added a subscriber: xazax.hun.
Herald added a project: clang.

The previous matcher "hasAnyTemplateArgument(templateArgument())" only
matches the first template argument, but the check wants to iterate all
template arguments. This patch fixes this.

Also some refactorings in this patch (to make the code reusable).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66945

Files:
  clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  clang-tools-extra/test/clang-tidy/misc-unused-using-decls.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66945.217877.patch
Type: text/x-patch
Size: 5735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190829/ecbd3934/attachment.bin>


More information about the cfe-commits mailing list