This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Convert config options that are bools to use the bool overload of get(GlobalOrLocal)?
ClosedPublic

Authored by njames93 on Apr 9 2020, 2:48 PM.

Details

Summary

This was done with a script that looks for calls to Options.get(GlobalOrLocal) that take an integer for the second argument and the result is either compared not equal to 0 or implicitly converted to bool. There may be other occurances

Diff Detail

Event Timeline

njames93 created this revision.Apr 9 2020, 2:48 PM
njames93 updated this revision to Diff 256842.Apr 12 2020, 1:46 AM

Added a few more cases by hand

aaron.ballman accepted this revision.Apr 12 2020, 11:17 AM

LGTM, thanks for the cleanup!

This revision is now accepted and ready to land.Apr 12 2020, 11:17 AM
This revision was automatically updated to reflect the committed changes.