diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2017-06-09 14:22:10 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2017-06-09 14:22:10 +0000 |
commit | a1cee29608a447ba40aacd979a8479b376ccde62 (patch) | |
tree | 0f5ce5684dd2c0cd03649e0e5825027b446a827f /llvm/lib/DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp | |
parent | 70db4246017d9ca310b9453fb2388977632e40a6 (diff) | |
download | llvm-a1cee29608a447ba40aacd979a8479b376ccde62.zip llvm-a1cee29608a447ba40aacd979a8479b376ccde62.tar.gz llvm-a1cee29608a447ba40aacd979a8479b376ccde62.tar.bz2 |
[clang-tidy] readability-function-size: add NestingThreshold param.
Summary:
Finds compound statements which create next nesting level after `NestingThreshold` and emits a warning.
Do note that it warns about each compound statement that breaches the threshold, but not any of it's sub-statements, to have readable warnings.
I was able to find only one coding style referencing nesting:
- https://www.kernel.org/doc/html/v4.10/process/coding-style.html#indentation
> In short, 8-char indents make things easier to read, and have the added benefit of warning you when you’re nesting your functions too deep.
This seems too basic, i'm not sure what else to test. Are more tests needed?
Reviewers: alexfh, aaron.ballman, sbenza
Reviewed By: alexfh, aaron.ballman
Subscribers: xazax.hun
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D32942
llvm-svn: 305082
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp')
0 files changed, 0 insertions, 0 deletions