And also enable it by default to be consistent with e.g.
modernize-use-using.
This helps e.g. when running this check on cppunit client code where the
macro is provided by the system, so there is no easy way to modify it.
Differential D32945
clang-tidy: add IgnoreMacros option to modernize-use-default-member-init vmiklos on May 6 2017, 12:47 PM. Authored by
Details And also enable it by default to be consistent with e.g. This helps e.g. when running this check on cppunit client code where the
Diff Detail Event TimelineComment Actions If the alternative is to make this a general clang-tidy option where all but these two checks ignore it, I think that's more confusing to the users. Or do you have an example option in mind that's shared only between a few checks? Comment Actions Ah, I see. Then yes, I think it makes sense; e.g. for the above cppunit case ideally I want to avoid any kind of warning from macros, since none of them can be easily fixed in system headers. (And the other way around, if system headers are not a problem, then all kind of warnings inside macros are probably interesting.) The updated patch uses getLocalOrGlobal() for the new option. |