[cfe-dev] [RFC] Cyclomatic complexity checker

Stanislav Pankevich via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 21 00:45:45 PDT 2016


Hello everyone,

I skimmed through available checkers in Clang Static Analyzer [1] and didn’t find a checker for cyclomatic complexity.

My assumption is that checker is not implemented because it doesn’t help to find bugs directly [2]. However I believe that this checker would help to reduce a number of bugs indirectly by decreasing a complexity of a source code.

Is there a way to see this checker in the upstream? If not what would be the best way to have it?

[1] http://clang-analyzer.llvm.org/available_checks.html
[2] By definition, "The Clang Static Analyzer is a source code analysis tool that finds bugs in C, C++, and Objective-C programs.” (from http://clang-analyzer.llvm.org/index.html)

Thanks.

Stanislav

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160621/5750324b/attachment.sig>


More information about the cfe-dev mailing list