-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings reported by clang-tidy due to use of var_arg
#1921
Comments
Which version are you using? |
|
That's quite a bit behind. Have you tried updating? |
sorry, my mistake. I mixed up the versions. The "error" occurs since |
Interesting, that warning should already be suppressed since v2.12.0. Can you check why the |
I am not quite sure how. But maybe this error log helps? This is from version
|
@moha-gh Hey, can you confirm what clang-tidy version are you running? |
@horenmar: We are using v9. I think the issue here is that for @avitase
(works for me and my preference) or make it suppress every finding:
|
Ok, I will suppress the warning in both variants, and open up an issue with clang-tidy upstream. |
thanks for your help |
Ideally, clang-tidy would be smart that if one alias of a warning is suppressed, then the other one is suppressed as well, but as of right now, it isn't. This means that for now we have to suppress both aliases of this warning. Opened upstream issue to fix this: https://bugs.llvm.org/show_bug.cgi?id=45859 Obviously, ideally clang-tidy would also not warn that we are calling a vararg function when it is an unevaluated magic builtin, but that also is not happening right now and I opened an issue for it: https://bugs.llvm.org/show_bug.cgi?id=45860 Closes #1921
Okay, this is now fixed in master. I also opened two bugs in clang-tidy's bugzilla, |
Ideally, clang-tidy would be smart that if one alias of a warning is suppressed, then the other one is suppressed as well, but as of right now, it isn't. This means that for now we have to suppress both aliases of this warning. Opened upstream issue to fix this: https://bugs.llvm.org/show_bug.cgi?id=45859 Obviously, ideally clang-tidy would also not warn that we are calling a vararg function when it is an unevaluated magic builtin, but that also is not happening right now and I opened an issue for it: https://bugs.llvm.org/show_bug.cgi?id=45860 Closes catchorg#1921
Ideally, clang-tidy would be smart that if one alias of a warning is suppressed, then the other one is suppressed as well, but as of right now, it isn't. This means that for now we have to suppress both aliases of this warning. Opened upstream issue to fix this: https://bugs.llvm.org/show_bug.cgi?id=45859 Obviously, ideally clang-tidy would also not warn that we are calling a vararg function when it is an unevaluated magic builtin, but that also is not happening right now and I opened an issue for it: https://bugs.llvm.org/show_bug.cgi?id=45860 Closes catchorg#1921
Description
Using
REQUIRE
triggers clang-tidy to warn about the usage ofvar_arg
. UsingNOLINT
at each and every call toREQUIRE
resolves this issue but is very tedious... Maybe there is way to avoid the usage ofvar_arg
(as suggested by core guidelines F.55) or maybe addNOLINT
to the definition of the macro?The text was updated successfully, but these errors were encountered: