[clang-tidy] Simplify function complexity check
authorStephen Kelly <steveire@gmail.com>
Sat, 26 Dec 2020 21:40:51 +0000 (21:40 +0000)
committerStephen Kelly <steveire@gmail.com>
Sat, 20 Feb 2021 22:06:16 +0000 (22:06 +0000)
commit6852a29a3b5b7858757c175f39e04676fb856dab
treefff516b293ce3f7f6245d46f91e1312d974bc04a
parent038bd14712d149cb51a8e95eb7bbdcfa7753a555
[clang-tidy] Simplify function complexity check

Update test to note use of lambda instead of the invisible operator().

Differential Revision: https://reviews.llvm.org/D96131
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.h
clang-tools-extra/test/clang-tidy/checkers/readability-function-cognitive-complexity.cpp