[all-commits] [llvm/llvm-project] db1773: [clang-tidy] Fix infinite loop in misc-multiple-in...
Purna Chandra via All-commits
all-commits at lists.llvm.org
Tue Sep 22 06:54:34 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db17738290efb586b9700bbecef3a82084a9c5f4
https://github.com/llvm/llvm-project/commit/db17738290efb586b9700bbecef3a82084a9c5f4
Author: Purna Chandra <vennelapurnachandra2006 at gmail.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M clang-tools-extra/clang-tidy/misc/MultipleInheritanceCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.md
M clang-tools-extra/test/clang-tidy/checkers/misc/multiple-inheritance.cpp
Log Message:
-----------
[clang-tidy] Fix infinite loop in misc-multiple-inheritance (#220223)
This PR contains the fix for the infinite loop in
`misc-multiple-inheritance`. The checker was getting stuck in an
infinite cycle when it encountered circular inheritance. I fixed this by
adding a visited map (`InterfaceMap.try_emplace(Node, false)`) to break
the cycle during the DFS traversal.
Part of #213948.
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