[PATCH] D46159: [clang-tidy] Add a flag to enable alpha checkers

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 27 06:01:23 PDT 2018


lebedev.ri added a comment.

In https://reviews.llvm.org/D46159#1080939, @lebedev.ri wrote:

> Oh, hm.
>  I just needed something to view the call graph.
>  I have almost wrote a clang-tidy check using `analysis/CallGraph.h`, but then i noticed/remembered that clang static analyzer has that already.
>  But `$ clang-tidy -checks=* -list-checks | grep -i analyzer | grep -i debug` does not list it.
>  Similarly `$ clang-tidy -checks=* -list-checks | grep -i analyzer | grep -i alpha`, contrarily to my expectations also does not list alpha checks...
>
> So while this change is needed, 
>  I think this is the larger problem that should be resolved.


...
And actually looking a bit more at this, i notice

  // RUN: clang-tidy -checks=* -list-checks -enable-alpha-checks | grep 'clang-analyzer-alpha'

So ok, i think this is good. (I'll add debug checks ontop of this differential)
Do we want to be more specific and specify that we are talking about /analyzer/ alpha checks?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D46159





More information about the cfe-commits mailing list