[PATCH] D13787: [clang-tidy] add check cppcoreguidelines-pro-type-vararg-use

Samuel Benzaquen via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 19 14:38:16 PDT 2015


sbenza added inline comments.

================
Comment at: test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp:27
@@ +26,3 @@
+template <typename T>
+void CallFooIfAvailableImpl(T& t, ...) {
+}
----------------
You would still warn on the callers of this.
Maybe we should ignore any call if the variadic part is a single argument with value 0, which is what is commonly used for SFINAE checks.


http://reviews.llvm.org/D13787





More information about the cfe-commits mailing list