[PATCH] D31252: Clang-tidy: add readability-compound-statement-size check.

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 22 13:04:27 PDT 2017


JonasToth added a comment.

Another thought from me:

Maybe it would be sensible to create a check like `complexity-limits` where different forms of complicated constructs are examined. This could include extreme inheritance, excessive amount of members in classes (violation of single responsibility), very long conditions and these kind of things.
Function size would be another part of complexity and the traversing of all statements in the code would be done once. This would be good for performance as well, one problem would be the complexity of the check though ;D

Maybe we could even move this to the mail list, there would be good input as well.


https://reviews.llvm.org/D31252





More information about the cfe-commits mailing list