[clang-tools-extra] [clangd] Fix hang in include-cleaner (PR #215980)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 01:01:51 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Alexander Shaposhnikov (alexander-shaposhnikov)
<details>
<summary>Changes</summary>
Address FIXME in computeIncludeCleanerFindings: locations inside the
preamble patch are mapped back into the main file via their presumed locations.
This fixes hang in include-cleaner when mapping refs through a stale preamble.
Test plan: ninja check-all
---
Full diff: https://github.com/llvm/llvm-project/pull/215980.diff
2 Files Affected:
- (modified) clang-tools-extra/clangd/IncludeCleaner.cpp (+23-4)
- (modified) clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp (+61)
``````````diff
``````````
</details>
https://github.com/llvm/llvm-project/pull/215980
More information about the cfe-commits
mailing list