[clang-tools-extra] [clangd][modules] Remove the options that is for gcc, make modules work for clangd when using gcc (PR #200001)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 30 17:30:31 PDT 2026


Decodetalkers wrote:

> I'm not convinced that simply removing these flags would solve the problem. Clangd should be ignoring the flags, so they are noise on top of the behavior of clangd. As such, I would like to see confirmation first that this works without this change. 

I have debugged many times. And have compared the command that clang++ used with that gcc is using. Then I found these options are  redundant. In fact, clang++ also removes the mapfile in its commands, for example @CMakeFiles/.../abc.modmap. So what I have changed is meaningful

https://github.com/llvm/llvm-project/pull/200001


More information about the cfe-commits mailing list