This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Show enabled checker list
ClosedPublic

Authored by xazax.hun on Aug 2 2016, 7:08 AM.

Details

Summary

This patch adds a command line option to list the checkers that were enabled by analyzer-checker and not disabled by -analyzer-disable-checker.

It can be very useful to debug long command lines when it is not immediately apparent which checkers are turned on and which checkers are turned off.

Clang tidy already has a similar feature.

Diff Detail

Repository
rL LLVM

Event Timeline

xazax.hun updated this revision to Diff 66469.Aug 2 2016, 7:08 AM
xazax.hun retitled this revision from to [analyzer] Show enabled checker list.
xazax.hun updated this object.
xazax.hun added reviewers: zaks.anna, dcoughlin, NoQ.
xazax.hun added a subscriber: cfe-commits.
NoQ edited edge metadata.Aug 3 2016, 8:26 AM

Like!

Do you think that if we rename the bike shed option to -analyzer-list-enabled-checkers it'd be more natural and easy to remember? (i barely remember how to spell -analyzer-checker-help, it'd be much easier if it was called -analyzer-list-checkers).

test/Analysis/analyzer-enabled-checkers.c
5 ↗(On Diff #66469)

This part of the test seems to have made it here accidentally.

In D23060#504832, @NoQ wrote:

Like!

Do you think that if we rename the bike shed option to -analyzer-list-enabled-checkers it'd be more natural and easy to remember? (i barely remember how to spell -analyzer-checker-help, it'd be much easier if it was called -analyzer-list-checkers).

I am absolutely in favor of a more natural name! :) I wanted to comply with existing flags, but maybe making it easier to remember is a better idea.

xazax.hun updated this revision to Diff 67129.Aug 8 2016, 1:30 AM
xazax.hun edited edge metadata.
xazax.hun marked an inline comment as done.
  • Changes according to the review comments.
NoQ accepted this revision.Aug 8 2016, 6:45 AM
NoQ edited edge metadata.
This revision is now accepted and ready to land.Aug 8 2016, 6:45 AM
This revision was automatically updated to reflect the committed changes.