llvm-project/clang-tools-extra/clang-tidy
Jens Massberg bff7faea20 [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
2021-03-04 21:02:27 +01:00
..
abseil [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
altera [cte][NFC] Remove all references to stdlib stream headers. 2021-03-02 21:57:16 +00:00
android [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
boost [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
bugprone [clang-tidy] Simplify unused RAII check 2021-03-02 21:33:34 +00:00
cert [clang-tidy] Add new check 'concurrency-thread-canceltype-asynchronous' and alias 'cert-pos47-c'. 2021-02-22 12:42:20 +01:00
concurrency [clang-tidy] Add new check 'concurrency-thread-canceltype-asynchronous' and alias 'cert-pos47-c'. 2021-02-22 12:42:20 +01:00
cppcoreguidelines [clang-tidy] Simplify special member functions check 2021-02-27 12:13:24 +00:00
darwin [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
fuchsia [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
google [Branch-Rename] Fix some links 2021-02-01 16:43:21 +05:30
hicpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
linuxkernel [openmp] Add missing dependencies for OMP.h.inc after d90443b 2020-06-23 11:48:04 -04:00
llvm [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
llvmlibc [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
misc [clang-tidy] Tweak misc-static-assert fix in c++17 2021-03-01 18:51:50 +00:00
modernize [clang-tidy] Extend LoopConvert on array with `!=` comparison 2021-03-04 18:58:59 +00:00
mpi TypeMismatchCheck.cpp - fix Wdocumentation warning. NFCI. 2021-02-05 10:57:39 +00:00
objc [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
openmp [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
performance [clang-tidy] performance-for-range-copy: Don't trigger on implicit type conversions. 2021-03-02 20:02:48 -05:00
plugin [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
portability [clang-tidy][NFC] Tweak some generation of diag messages 2021-02-26 19:10:25 +00:00
readability [clang-tidy] Add options to describe individual core increments to readability-function-cognitive-complexity check. 2021-03-04 21:02:27 +01:00
tool [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
utils [clang-tidy] Fix `TransformerClangTidyCheck`'s handling of include insertions. 2021-02-12 16:23:53 +00:00
zircon Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
CMakeLists.txt [clang-tidy] add concurrency module 2020-11-30 12:27:17 +03:00
ClangTidy.cpp [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidy.h [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidyCheck.cpp [clang-tidy] Remove OptionError 2021-03-01 17:55:17 +00:00
ClangTidyCheck.h [clang-tidy] Remove OptionError 2021-03-01 17:55:17 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidyDiagnosticConsumer.h [clang-tidy] Added command line option `fix-notes` 2021-03-01 22:07:11 +00:00
ClangTidyForceLinker.h [clang-tidy] add concurrency module 2020-11-30 12:27:17 +03:00
ClangTidyModule.cpp [clang-tidy][NFC] Use StringMap for ClangTidyCheckFactories::FacoryMap 2020-07-30 22:57:33 +01:00
ClangTidyModule.h [clang-tidy][NFC] Remove unnecessary headers 2020-12-28 15:01:51 +00:00
ClangTidyModuleRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
ClangTidyOptions.h [clang-tidy] Add a diagnostic callback to parseConfiguration 2020-12-17 00:24:58 +00:00
ClangTidyProfiling.cpp [clang-tidy][NFC] Remove unnecessary headers 2020-12-28 15:01:51 +00:00
ClangTidyProfiling.h [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files 2020-06-29 16:05:52 +01:00
ExpandModularHeadersPPCallbacks.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
ExpandModularHeadersPPCallbacks.h Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
GlobList.cpp [clang-tidy] Applied clang-tidy fixes. NFC 2021-01-29 01:01:19 +01:00
GlobList.h [clang-tidy][NFC] Made Globlist::contains const 2020-12-08 22:26:55 +00:00
add_new_check.py [clang-tidy] prevent generated checks from triggering assertions on anonymous functions 2020-08-12 12:43:40 +01:00
clang-tidy-config.h.cmake Add an explicit toggle for the static analyzer in clang-tidy 2020-09-10 10:48:17 -04:00
rename_check.py [NFC][clang-tidy] Port rename_check.py to Python3 2020-12-01 20:10:19 +03:00