aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJens Massberg <massberg@google.com>2021-03-04 21:02:26 +0100
committerKirill Bobyrev <kbobyrev@google.com>2021-03-04 21:02:27 +0100
commitbff7faea2034abed4535645d7c771e67c1f2bb23 (patch)
treed422741045773a257128f8e4f770d5e31d2fe191 /clang/lib/CodeGen/CodeGenModule.h
parent6bc767cd071ccdb41b5532f7d9cae22999e0fac4 (diff)
downloadllvm-bff7faea2034abed4535645d7c771e67c1f2bb23.zip
llvm-bff7faea2034abed4535645d7c771e67c1f2bb23.tar.gz
llvm-bff7faea2034abed4535645d7c771e67c1f2bb23.tar.bz2
[clang-tidy] Add options to describe individual core increments to readability-function-cognitive-complexity check.
Often you are only interested in the overall cognitive complexity of a function and not every individual increment. Thus the flag 'DescribeBasicIncrements' is added. If it is set to 'true', each increment is flagged. Otherwise, only the complexity of function with complexity of at least the threshold are flagged. By default 'DescribeBasisIncrements' is set to 'true', which is the original behavior of the check. Added a new test for different flag combinations. (The option to ignore macros which was original part of this patch will be added in another path) Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D96281
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions