[PATCH] D30547: [clang-tidy] Forwarding reference overload in constructors

AndrĂ¡s Leitereg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 12:20:54 PST 2017


leanil added inline comments.


================
Comment at: clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp:22
+// Check if the given type is related to std::enable_if.
+AST_MATCHER(QualType, isEnableIf) {
+  auto checkTemplate = [](const TemplateSpecializationType *Spec) {
----------------
This check could probably be simpler, but I wanted to be more effective than just using QualType.getAsString().


https://reviews.llvm.org/D30547





More information about the cfe-commits mailing list