-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Suppress Clang-Tidy warnings #2442
Comments
Two more I hit:
|
One more:
|
Would |
You already know where to place the NOLINTs, just go ahead! This has been open for too long 😉 |
This is again about 'test_info_' but with different(more recent) error: Located in |
Hi @derekmauro , I have a change that fixes and/or NOLINTS several of these clang-tidy warnings/errors. I would like to contribute this as a (partial?) fix for this issue, but I wanted to check with the maintainers before I submit a PR. Is this something you would be supportive of? We're adding clang-tidy checking in our CI in RAPIDS at NVIDIA and we need to suppress the many warnings/errors we get in our test code due to gtest. It's not possible to suppress them in our code because of the use of preprocessor macros. Here is my branch: |
Hi, I tried to fix all the warnings, check out #3676. Try it and let me know if something is still not fixed. |
I switched to catch2 because of this issue. It does not have any warnings internally. |
Hi everyone, I am facing the exact same issue as described here. Since the problem report was opened back in September 2019, I'm curious about its current status. Can we expect that a fix will be made available any time soon (some have already suggested solutions for it)? Or is there something that I may not be aware of which is blocking its resolution? Any feedback is greatly appreciated. Thank you. |
Doubtful: #3676 (comment) |
Seems this will not be fixed/updated by clang for a while as it is considered as tool specific error. |
One use of the parametrized test cases in gtest causes clang-tidy to complain, which seems to be a common issue that hasn't been resolved upstream (see google/googletest#2442).
This check leads to false positives within GoogleTest (see also google/googletest#2442)
When we run clang-tidy on our source code, it finds hundreds of issues related to usages of gtest. We currently have to disable a few clang-tidy checks because of this. In the longer run, we want to enable these checks again. I believe the reported issues are false positives, so it would be beneficial for us if gtest would suppress these warnings.
I found out (among others in #853) that gtest already contains 'NOLINT' comments to suppress clang-tidy warnings. I would like to point out a few additional places to add them (based on the code in version 1.8.1):
If I can help out in any other way, let me know.
The text was updated successfully, but these errors were encountered: