C ++ cross-platform platform based on clang?

clang The C ++ compiler claims that it was created, in particular, for better IDE integration, providing an API for using the IDE for tasks such as code analysis.

So, is there a good C ++ IDE that uses clang to provide features like semantic highlighting, refactoring, searching and displaying semantic errors in real time?

I use Eclipse CDT, but its C ++ parser is full of flaws that cause the IDE to report a lot of annoying false-positive bugs in the code. I would like to have an IDE that reports an error if and only if the compiler reports the same error, therefore, my interest is in an IDE built on the internal components of the compiler.

I am primarily interested in cross-platform IDEs, although I would not mind learning about single-platform for Windows or Linux (so not Xcode) if they are FOSS (another reason why not Xcode).

+43
c ++ cross-platform ide clang
Oct 22 2018-11-11T00:
source share
8 answers

Qt Creator bases its analysis of next-generation code and related functionality on Clang:

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

It looks very, very promising!

+15
Oct 22 2018-11-11T00: 00Z
source share
โ€” -

Have you tried clang complete ?

if you are punk rock then vim is ide enough;)

I often work with xcode, so ... I can not share the experience, but I knew about its existence.

+4
Oct 22 '11 at 4:18
source share

gedit is not really an IDE, but there is one that provides code support using clang

+4
Mar 18 2018-12-18T00:
source share

It seems that CodeLite v3.5 starts supporting Clang natively. However, I did not find out whether it is possible to install LLVM as a backend.

+3
Mar 16 2018-12-12T00:
source share

KDevelop now has clang-based c and C ++ support, including semantic analysis and autocomplete. This is primarily for linux, but (as of October 2016) has a beta version for Windows and Mac.

For emacs, there are irony-mode and rtags that provide features such as autocomplete, error checking on the fly, and transition to a character. When combined with cmake-ide, they are very powerful tools, and one well-versed in emacs can be very productive in this environment.

+3
Mar 17 '17 at 1:37
source share

Corresponding new development in this area is the Language Server Protocol (LSP) project, whose purpose is the language agnostic API, which allows separating editors / IDEs from backends that provide code analysis / analysis.

The current effort to create a C ++ -based server is called Clangd .

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

After the backend implementation has matured, all editors that support LSP will, in principle, be able to use the clang features as open through Clangd.

+3
Mar 17 '17 at 3:16
source share

Not FOSS, but JetBrains (from IDEA and ReSharper fame) create their AppCode product in a complete C ++ IDE that supports Win / Linux / Mac, and using clang .

Yes indeed .

+1
Jun 25 '13 at 18:05
source share

jucipp

~ 900 stars on GitHub in 2019Q2: https://github.com/cppit/jucipp

Now switched to GitLab: https://gitlab.com/cppit/jucipp

Clearly advertises libclang backend as main function.

-one
Mar 27 '19 at 13:11
source share



All Articles