[all-commits] [llvm/llvm-project] 59f571: [clang-tidy] Fix function-cognitive-complexity cra...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Mon Sep 14 07:01:26 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59f5719cac1c1781988255aca7d598a8a48651f9
      https://github.com/llvm/llvm-project/commit/59f5719cac1c1781988255aca7d598a8a48651f9
  Author: Zeyi Xu <zeyi2 at nekoarch.cc>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.md
    A clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity-alias.cpp

  Log Message:
  -----------
  [clang-tidy] Fix function-cognitive-complexity crash on aliases (#222965)

Only match function definitions that have a body, since declarations
with the alias attribute satisfy `isDefinition()` without providing one.

Fixes #222958



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list