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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to