Priority: P2: Important
Affects Version/s: Qt Creator 6.0.0-beta2
Fix Version/s: Qt Creator 6.0.0-rc1
Component/s: C/C++/Obj-C++ Support
Environment:Gentoo Linux AMD64 X11.
KDE Plasma 5.23.2.
Enabling clangd results in code appearing grayed out even after the `#endif`. This is how it appears without clangd:
Enabling clangd results in:
Whatever is responsible for this seems to break "code graying" completely. For example, try these reproduction steps:
- Open Creator.
- Create a new project.
- Select "Non-Qt Project" and "Plain C++ Application". I chose "qmake" as build system for simplicity.
- In `main.cpp`, go to the first line and add:
Now the code should look like this:
Go to the first line again and insert a blank line. Creator gets bugged out by this. The wrong lines are being grayed out, and there's even an error message in there saying "Unterminated conditional directive."