clang-based跨平台c++ IDE吗?

时间:2021-07-31 12:10:56

The clang C++ compiler claims to be built for, among other things, better IDE integration by providing an API for the IDE to use for tasks such as parsing the code.

clang c++编译器声称,通过为IDE提供API(用于解析代码等任务),可以为更好的IDE集成构建clang c++编译器。

So, are there are any good C++ IDE's that use clang to provide features such as semantic highlighting, refactoring, and finding and showing semantic errors in real-time?

那么,有没有好的c++ IDE可以使用clang来提供诸如语义高亮、重构、实时查找和显示语义错误等特性呢?

I've been using Eclipse CDT, but its C++ parser is full of imperfections that cause the IDE to report a lot of annoying false positive errors in the code. I would like to have an IDE that reports an error if and only if the compiler would report the same error, hence my interest in an IDE that's built on a compiler's internals.

我一直在使用Eclipse CDT,但是它的c++解析器充满了缺陷,导致IDE报告了代码中的许多令人讨厌的错误。我希望有一个IDE,当且仅当编译器报告相同的错误时报告错误,因此我对构建在编译器内部的IDE感兴趣。

I'm primarily interested in cross-platform IDE's, although I wouldn't mind knowing about single-platform ones for Windows or Linux (so not Xcode), as long as they are FOSS (another reason why not Xcode).

我主要对跨平台IDE感兴趣,尽管我不介意了解Windows或Linux的单平台IDE(所以不是Xcode),只要它们是FOSS (Xcode的另一个原因)。

7 个解决方案

#1


15  

Qt Creator is basing their next-gen code parsing and associated functionality on Clang:

Qt创建者的下一代代码解析和相关功能基于Clang:

http://blog.qt.digia.com/blog/2011/10/19/qt-creator-and-clang/

http://blog.qt.digia.com/blog/2011/10/19/qt-creator-and-clang/

Looks very, very promising!

看起来非常,非常有前途的!

#2


4  

have you tried clang complete?

你试过clang complete吗?

if you're punk rock, then vim is enough ide ;)

如果你是朋克摇滚,那么vim就足够了;

i often work with xcode so... can't really share firsthand experience, but i knew of its existence.

我经常使用xcode,所以……不能分享第一手的经验,但我知道它的存在。

#3


4  

gedit isn't really an IDE, but there is a plugin for it that provides code assistance using clang

gedit并不是一个真正的IDE,但是有一个插件可以使用clang提供代码帮助

#4


3  

It seems that CodeLite v3.5 starts supports Clang natively. However I haven't found is it possible to setup LLVM as backend.

看来CodeLite v3.5开始支持Clang。但是我还没有发现可以将LLVM设置为后端。

#5


3  

A relevant new development in this area in the Language Server Protocol (LSP) project, which aims to be a language-agnostic API that allows editors / IDEs to be decoupled from backends that provide code intelligence / analysis.

语言服务器协议(LSP)项目中这一领域的一个相关新开发,它的目标是成为一个与语言无关的API,允许编辑器/ ide与提供代码智能/分析的后端进行解耦。

There is ongoing work to create a clang-based C++ backend called Clangd.

正在进行的工作是创建一个基于clangbased的c++后端,称为Clangd。

There is also ongoing work on several editors / IDEs to support the LSP as a client.

还在进行一些编辑器/ ide的工作,以支持LSP作为客户端。

Once the backend implementation matures, all editors supporting the LSP will, in principle, be able to leverage clang's capabilities as exposed through Clangd.

一旦后端实现成熟,支持LSP的所有编辑器原则上都能够利用clang通过Clangd公开的功能。

#6


3  

KDevelop now has clang based c and c++ support, including semantic analysis and autocomplete. It is primarily for linux but (as of October 2016) has a beta release out for windows and mac as well.

kdevelopment现在有基于clang的c和c++支持,包括语义分析和自动完成。它主要用于linux,但(截至2016年10月)windows和mac的beta版也将发布。

For emacs there are irony-mode and rtags that provide features such as auto-complete, on fly error checking and jump to symbol. When combined with cmake-ide they are very powerful tools and one well versed in emacs can be highly productive in this environment.

对于emacs,有一些irony模式和rtag,它们提供自动完成、飞行错误检查和跳转到符号的特性。与cmake-ide结合使用时,它们是非常强大的工具,精通emacs的人可以在这种环境中高效工作。

#7


1  

Not FOSS, but JetBrains (of IDEA and ReSharper fame) are building out their AppCode product into a full C++ IDE supporting Win/Linux/Mac and using clang.

不是*/开源软件,但是JetBrains(创意和ReSharper名声)正在把他们的AppCode产品构建成一个完整的c++ IDE,支持Win/Linux/Mac和clang。

Yes, really.

是的,真的。

#1


15  

Qt Creator is basing their next-gen code parsing and associated functionality on Clang:

Qt创建者的下一代代码解析和相关功能基于Clang:

http://blog.qt.digia.com/blog/2011/10/19/qt-creator-and-clang/

http://blog.qt.digia.com/blog/2011/10/19/qt-creator-and-clang/

Looks very, very promising!

看起来非常,非常有前途的!

#2


4  

have you tried clang complete?

你试过clang complete吗?

if you're punk rock, then vim is enough ide ;)

如果你是朋克摇滚,那么vim就足够了;

i often work with xcode so... can't really share firsthand experience, but i knew of its existence.

我经常使用xcode,所以……不能分享第一手的经验,但我知道它的存在。

#3


4  

gedit isn't really an IDE, but there is a plugin for it that provides code assistance using clang

gedit并不是一个真正的IDE,但是有一个插件可以使用clang提供代码帮助

#4


3  

It seems that CodeLite v3.5 starts supports Clang natively. However I haven't found is it possible to setup LLVM as backend.

看来CodeLite v3.5开始支持Clang。但是我还没有发现可以将LLVM设置为后端。

#5


3  

A relevant new development in this area in the Language Server Protocol (LSP) project, which aims to be a language-agnostic API that allows editors / IDEs to be decoupled from backends that provide code intelligence / analysis.

语言服务器协议(LSP)项目中这一领域的一个相关新开发,它的目标是成为一个与语言无关的API,允许编辑器/ ide与提供代码智能/分析的后端进行解耦。

There is ongoing work to create a clang-based C++ backend called Clangd.

正在进行的工作是创建一个基于clangbased的c++后端,称为Clangd。

There is also ongoing work on several editors / IDEs to support the LSP as a client.

还在进行一些编辑器/ ide的工作,以支持LSP作为客户端。

Once the backend implementation matures, all editors supporting the LSP will, in principle, be able to leverage clang's capabilities as exposed through Clangd.

一旦后端实现成熟,支持LSP的所有编辑器原则上都能够利用clang通过Clangd公开的功能。

#6


3  

KDevelop now has clang based c and c++ support, including semantic analysis and autocomplete. It is primarily for linux but (as of October 2016) has a beta release out for windows and mac as well.

kdevelopment现在有基于clang的c和c++支持,包括语义分析和自动完成。它主要用于linux,但(截至2016年10月)windows和mac的beta版也将发布。

For emacs there are irony-mode and rtags that provide features such as auto-complete, on fly error checking and jump to symbol. When combined with cmake-ide they are very powerful tools and one well versed in emacs can be highly productive in this environment.

对于emacs,有一些irony模式和rtag,它们提供自动完成、飞行错误检查和跳转到符号的特性。与cmake-ide结合使用时,它们是非常强大的工具,精通emacs的人可以在这种环境中高效工作。

#7


1  

Not FOSS, but JetBrains (of IDEA and ReSharper fame) are building out their AppCode product into a full C++ IDE supporting Win/Linux/Mac and using clang.

不是*/开源软件,但是JetBrains(创意和ReSharper名声)正在把他们的AppCode产品构建成一个完整的c++ IDE,支持Win/Linux/Mac和clang。

Yes, really.

是的,真的。