Recent chromium clangd issue

0 views
Skip to first unread message

Atharv Maan

unread,
Dec 11, 2025, 5:07:36 AM (7 days ago) Dec 11
to Clang maintainers
Hey,
Something happened to the clangd binary supplied with chromium when I synced to main last week. 

I'm getting errors similar to below in almost all files. I have tried regenerating the compile commands json and redownloading clangd as well (from gclient).

Let me know how I can help you assess this further.

Thanks,
Atharv
Screenshot 2025-12-10 140036.png

Atharv Maan

unread,
Dec 11, 2025, 5:07:40 AM (7 days ago) Dec 11
to Clang maintainers
Adding this to my  %localappdata%\clangd\config.yaml fixed the errors. Apparently clangd somehow switched to C++14 mode and this overrides that to C++20.

CompileFlags:
  Add: [/std:c++20, /Zc:__cplusplus]


Thanks,
Atharv Maan

Hans Wennborg

unread,
Dec 11, 2025, 7:23:05 AM (7 days ago) Dec 11
to Atharv Maan, Clang maintainers
Glad to hear that it's working.

I wonder what changed though. We haven't updated clangd in the last couple of weeks (November 17). Or did you sync from an older revision?

Chromium did move (most parts) to c++23 recently: https://chromium-review.googlesource.com/c/chromium/src/+/7170560 Maybe that could be related somehow?

Thanks,
Hans
Reply all
Reply to author
Forward
0 new messages