Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

clang-based cross-platform C++ IDE?

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.

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?

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.

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).

like image 583
HighCommander4 Avatar asked Oct 22 '11 03:10

HighCommander4


People also ask

Does Clang support C?

The Clang project provides a language front-end and tooling infrastructure for languages in the C language family (C, C++, Objective C/C++, OpenCL, CUDA, and RenderScript) for the LLVM project.

What is Clang C compiler?

Clang is a compiler front end for the C, C++, Objective-C, and Objective-C++ programming languages, as well as the OpenMP, OpenCL, RenderScript, CUDA, and HIP frameworks. It acts as a drop-in replacement for the GNU Compiler Collection (GCC), supporting most of its compilation flags and unofficial language extensions.

Does CLion work with C?

CLion is a fully Integrated Development Environment for coding in C and C++ on Windows, Linux, and macOS.

Can GCC compile Clang?

Supported platforms – Both GCC and Clang support almost all the modern platforms. Clang/LLVM compiles natively on Windows whereas GCC needs a subsystem like MinGW to work under Windows.


1 Answers

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

https://www.qt.io/blog/2011/10/19/qt-creator-and-clang

Looks very, very promising!

like image 109
rubenvb Avatar answered Sep 21 '22 16:09

rubenvb