- Add readability-simplify-boolean-expr test cases for member variables
Fixes #40179
Differential D56323
[clang-tidy] Handle member variables in readability-simplify-boolean-expr LegalizeAdulthood on Jan 4 2019, 10:41 AM. Authored by
Details
Fixes #40179
Diff Detail
Event TimelineComment Actions Thanks for the patch. Is this revision dependent on D56303 (or other way around)?
Comment Actions I really want to get these reviewed quickly. Otherwise, I will run out of available time to complete them and get them submitted.
Comment Actions Did you check if the changes actually fix the problematic behaviour? Did you run it over any project and did the code-transformation break the code, false positives, ...? Otherwise LGTM Comment Actions The test cases that I added covered the behavior described in the bug report. I didn't run it over clang to see if it introduced any false positives, I can do that. However, when I originally wrote this check it was pretty well tested and I have confidence that I haven't regressed. However, it's still worth testing, so I will do that. Comment Actions Uh... I'm developing on Windows, which doesn't have a solution for generating compile_commands.json, so I can't easily test this on the entire clang codebase. I will test on a source file based on the original bug report. Comment Actions I managed to do some limited testing on the original source file from the bug report in lldb and verified that the correct fix was applied there. I also tried a few other files and verified no false positives. Comment Actions Thanks. That is no issue, I will run this check locally over multiple projects once committed. If I find issues I will report back! Comment Actions @LegalizeAdulthood your stuck on the commit right things right? If you want I can commit for you (maybe even later) as you said you are limited on time. Comment Actions Yes, please. I haven't figured out what the new commit procedure is or how I can submit. If you could submit this for me, that would help me out, thanks. |
The const for these locals in uncommon in clang-tidy, given its a value type. I am not strongly against them, but would prefer consistency.