[PATCH] D26751: [clang-tidy] Ignore template instantiations in modernize-use-equals-delete check

Malcolm Parsons via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 17 03:00:22 PST 2016


malcolm.parsons added inline comments.


================
Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.cpp:37
           unless(anyOf(hasBody(stmt()), isDefaulted(), isDeleted(),
+                       ast_matchers::isTemplateInstantiation(),
                        // Ensure that all methods except private special member
----------------
hokein wrote:
> Can we remove `ast_matchers::`?
No, there's a collision with `isTemplateInstantiation(TemplateSpecializationKind Kind)`.


https://reviews.llvm.org/D26751





More information about the cfe-commits mailing list