[PATCH] ClangTidy misc-argument-comment check: don't check arguments to templateparameter packs.

Manuel Klimek klimek at google.com
Wed Sep 3 06:20:56 PDT 2014


================
Comment at: clang-tidy/misc/ArgumentCommentCheck.cpp:123
@@ +122,3 @@
+    if (auto Template = Callee->getTemplateInstantiationPattern()) {
+      if (Template->getNumParams() <= i ||
+          Template->getParamDecl(i)->isParameterPack()) {
----------------
Can that one actually happen? Shouldn't that be an assert?

http://reviews.llvm.org/D5168






More information about the cfe-commits mailing list