This fix for PR26332. I checked it on my work code base.
Build and regressions were OK on RHEL 6.
Differential D16794
[Clang-tidy] Make readability-simplify-boolean-expr working with included files Eugene.Zelenko on Feb 1 2016, 6:40 PM. Authored by
Details
This fix for PR26332. I checked it on my work code base. Build and regressions were OK on RHEL 6.
Diff Detail
Event TimelineComment Actions Missing a test case for this functionality. The isExpansionInMainFile() was used to silence the diagnostic in macros, but it was pointed out during review that this should be fixed and it seems to have fallen through the cracks. Can you also add tests for macros to ensure the behavior is acceptable there still? See D8996 for more context. Comment Actions I didn't notice test cases for included files for other checkers. So it's hard to tell for should special test case introduced for this specific problem or not. Comment Actions I think proper solution will be to create tests for included files ot the fly, bu renaming main test to .h and creating dummy source file. But this is task for scripts wizards :-) Comment Actions Again, isn't this already assigned to me in the bug tracker? In general, my assumption in bug trackers is that if someone has assigned the bug to themselves, then they are working on it. Comment Actions It hasn't fallen through the cracks, I've been having an offline discussion with Alexander Kornienko about how to get automated checks to work for fixits applied to headers. Comment Actions Sorry, if I steeped on you toes. My intention was to backport fix into 3.8 if it'll be OK. Sure, it'll be much better if original author will fix problem. |