This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Simplify function complexity check
ClosedPublic

Authored by steveire on Feb 5 2021, 6:14 AM.

Details

Summary

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

Diff Detail

Event Timeline

steveire created this revision.Feb 5 2021, 6:14 AM
steveire requested review of this revision.Feb 5 2021, 6:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2021, 6:14 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
njames93 added inline comments.Feb 20 2021, 7:47 AM
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
508

Am I right in assuming lambdas need to be explicitly matched because in the traversal mode their operator() isn't matched as a functionDecl?

steveire added inline comments.Feb 20 2021, 9:23 AM
clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
508

Yes.

Can you have a look at the failed tests, they seem to be related.

steveire updated this revision to Diff 325216.Feb 20 2021, 10:25 AM

Trigger rebuild

njames93 accepted this revision.Feb 20 2021, 1:41 PM
This revision is now accepted and ready to land.Feb 20 2021, 1:41 PM
This revision was automatically updated to reflect the committed changes.