[clang] [Sema] [Modules] Remove unrelated module partitions from suggestion list (PR #187657)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 23:59:41 PDT 2026
ChuanqiXu9 wrote:
> Yes, I have BMI files in the build directory and to my knowledge, deleting them causes the build system to stop supporting them.
>
> On VSCode, I have
>
> ```json
> "clangd.arguments": [
> "--experimental-modules-support"
> ]
> ```
>
> enabled, but not in my own `~/.config/clangd/config.yaml` file.
>
> Please do let me know if my setup is incorrect for the intended purposes.
You can look at my blog for the full story: https://chuanqixu9.github.io/c++/2025/12/03/Clangd-support-for-Modules.en.html#steps-needed-for-clangd-to-support-modules
In short, it is actually a surprise to see "suggested" module names after import. Since ideally, the functionality of clangd shouldn't depend on whether or not these build files.
To support this, we need pass information from clangd's ModulesBuilder to SemaCodeComplete in clangd.
https://github.com/llvm/llvm-project/pull/187657
More information about the cfe-commits
mailing list