- 主题:使用qt的可以尽快升级到qtcreator12了
特别是那位机器不行的
Clangd
In Qt Creator 7, clangd became the default back-end of the clang code model, and in Qt Creator 8, the original libclang-based back-end was removed.
When we started this endeavor, clangd lacked a number of capabilities that we needed for our feature set. In order not to lose any important features, we added temporary client-side workarounds, while also trying to get things fixed upstream. Some of these workarounds were rather expensive computing-wise; in particular, semantic highlighting slowed down noticeably, as we had to retrieve the document's AST from clangd and poke around in it to extract the information we needed for features such as the visualization of angle brackets in templates.
However, we have now successfully upstreamed all the relevant features, so that when using a current clangd, we don't need to employ our workarounds anymore, resulting among other things in a major speed-up in semantic highlighting. For this reason, we strongly recommend switching to clangd 17, if you haven't done so already. This version is also shipped with Qt Creator 12, so if you use our installer, you don't have to do anything (assuming you never tinkered with the settings). Otherwise, if your host OS has not yet upgraded to LLVM 17, you can get stand-alone clangd binaries here. We will soon drop support for older clangd versions altogether.
Other clangd-related improvements in Qt Creator 12:
Changes in header files take effect immediately, not just after saving the file.
We have identified and fixed some scenarios in which the symbol index was getting out of sync.
Users can now choose between completion engines.
--
FROM 221.219.211.*
QtCreator 以前的 krazy model 是由 KDE 维护的吧。
这个 clangd model 和原来的 clang code model 有啥区别吗?
qtcreator 是哪个版本用 clang code model 代替 krazy 的?以前用 krazy 的时候,自行编辑 qtcreator 我记得不难,后来好麻烦啊,要安装 clang/llvm 全家桶。
【 在 iwantfly 的大作中提到: 】
: 特别是那位机器不行的
: Clangd
: In Qt Creator 7, clangd became the default back-end of the clang code model, and in Qt Creator 8, the original libclang-based back-end was removed.
: ...................
--
FROM 110.81.0.*
qtcreator我拿来作为linux下的调试工具。发现还挺好用的。非qt程序。
【 在 iwantfly 的大作中提到: 】
: 特别是那位机器不行的
:
: Clangd
: ...................
--来自微微水木3.5.14
--
FROM 183.193.50.*
clang code model是qtcreator的一个插件
clangd model就是直接集成了clangd
【 在 hgoldfish 的大作中提到: 】
: QtCreator 以前的 krazy model 是由 KDE 维护的吧。
: 这个 clangd model 和原来的 clang code model 有啥区别吗?
: qtcreator 是哪个版本用 clang code model 代替 krazy 的?以前用 krazy 的时候,自行编辑 qtcreator 我记得不难,后来好麻烦啊,要安装 clang/llvm 全家桶。
: ...................
--
FROM 221.219.211.*
我刚试了一下把 clang code model 这个插件给禁用掉,发现仍然可以跳转、代码提示。是不是我理解错了。我以为 code model 是用于解析 cpp 代码,变成符号数据库用于跳转和提示的,没想到没 code model,QtCreator 也能工作。
那么 code model 在 QtCreator 里面是做什么用的呢?
还是说如果 clang code model 插件没工作,QtCreator 内部还有个简易的 code model?
【 在 iwantfly 的大作中提到: 】
: clang code model是qtcreator的一个插件
: clangd model就是直接集成了clangd
--
修改:hgoldfish FROM 183.253.147.*
FROM 183.253.147.*
简单的来说,就是你那个版本的qtcreator的主体功能都是内置的model解决的
clang code model这个插件,好像主要用于检查代码的规范性,实时提示代码错误警告信息什么的
【 在 hgoldfish 的大作中提到: 】
: 我刚试了一下把 clang code model 这个插件给禁用掉,发现仍然可以跳转、代码提示。是不是我理解错了。我以为 code model 是用于解析 cpp 代码,变成符号数据库用于跳转和提示的,没想到没 code model,QtCreator 也能工作。
: 那么 code model 在 QtCreator 里面是做什么用的呢?
: 还是说如果 clang code model 插件没工作,QtCreator 内部还有个简易的 code model?
: ...................
--
FROM 221.219.211.*