klimek added a subscriber: klimek.
================
Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:83
@@ -80,3 +82,3 @@
if (const auto *Used = Result.Nodes.getNodeAs<NamedDecl>("used")) {
- if (const auto *Specialization =
- dyn_cast<ClassTemplateSpecializationDecl>(Used))
+ if (const auto *FD = dyn_cast<FunctionDecl>(Used)) {
+ // There is no straightforward way to match template arguments in a
----------------
I thought the idea was to make an overload for hasTemplateArgument to work on
FunctionDecl. Any specific reason not to make the matchers better?
https://reviews.llvm.org/D22803
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits