This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Default options in modules.
ClosedPublic

Authored by alexfh on Oct 15 2014, 7:14 AM.

Details

Summary

This patch allows modules to specify default options for the checks
defined in them. This way a sufficiently configurable check can be registered in
multiple modules with different default options. E.g. the SpacesBeforeComments
option may be set to 1 for the "llvm-namespace-comments" check and to 2 for the
"google-readability-namespace-comment" check without modifying or extending the
check code.

This patch also registers the google-readability-braces-around-statements check
with suitable defaults.

Diff Detail

Event Timeline

alexfh updated this revision to Diff 14940.Oct 15 2014, 7:14 AM
alexfh retitled this revision from to [clang-tidy] Default options in modules..
alexfh updated this object.
alexfh edited the test plan for this revision. (Show Details)
alexfh added a reviewer: djasper.
alexfh added a subscriber: Unknown Object (MLST).
djasper accepted this revision.Oct 16 2014, 4:35 AM
djasper edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Oct 16 2014, 4:35 AM
alexfh closed this revision.Oct 16 2014, 4:38 AM