Highlighting syntax errors without clangd
-
wrote on 22 Feb 2024, 11:46 last edited by
I'm using Qt Creator to edit a very large C++ codebase (namely, Chromium source code), on Ubuntu linux. For a long time, I've been using "Qt Creator 6.0.2 Based on Qt 5.15.3 (GCC 11.2.0, x86_64)" installed via standard Ubuntu repositories. It was working very well, and all the code tools (code completion, finding all references, highlighting syntax errors, etc.) that I needed to use were working very well, especially as compared to other IDEs. And it was using only about 8 Gb of RAM.
Now I've installed fresh "Qt Creator 13.0.0-beta1 (12.0.82) Based on Qt 6.6.0 (GCC 11.4.0, x86_64)", downloaded from https://github.com/qt-creator/qt-creator/releases/tag/v13.0.0 . Apparently it now can use clangd for code-related tools, but when I enable clangd, it very quickly takes more than 20 Gb of RAM and more, generates a huge CPU load, and makes everything unusable.
I disabled clangd and found that all the features (code completion, find-all-references, etc.) work... except highlighting syntax errors. Only very simple syntax errors are highlighted, anything more advanced gets skipped.
For example, I've made two errors in the code. Below are screenshots from the old and the new Qt Creator:
Old version can catch "no member Foo in Bar' errors, while the new catches only the extra space error.
Is there any way to enable the same syntax checker in the new Qt Creator, without resorting to clangd?
1/1