This disables this check for std::bind and similar functions that use
parameter packs to forward arguments to a different function. Name of the
parameter pack argument doesn't matter.
Details
Diff Detail
Event Timeline
clang-tidy/misc/ArgumentCommentCheck.cpp | ||
---|---|---|
123 | Can that one actually happen? Shouldn't that be an assert? |
clang-tidy/misc/ArgumentCommentCheck.cpp | ||
---|---|---|
123 | Sure it can. We're looking at template parameter packs here, which can then instantiate to multiple parameters. This is tested by the "variadic2(/*zzZ=*/0, /*xxx=*/1, /*yyy=*/2);" line. The last argument of it. |
lg
clang-tidy/misc/ArgumentCommentCheck.cpp | ||
---|---|---|
123 | Ah, because this is the function definition, which doesn't know how many parameters are actually given. Perhaps add a comment? |
clang-tidy/misc/ArgumentCommentCheck.cpp | ||
---|---|---|
123 | Added a comment. |
Can that one actually happen? Shouldn't that be an assert?