How to use clang/llvm with Eclipse CDT
38,384
Solution 1
I am the main author of the (only) LLVM plug-in for Eclipse CDT. It is still in development so might not be suitable for production environment yet. However feel free to test it to find out if it is suitable for your needs.
https://github.com/TuononenP/llvm4eclipsecdt
UPDATE The latest version is available via official Eclipse update site: http://download.eclipse.org/releases/mars
It is under Programming Languages and is named "C/C++ LLVM-Family Compiler Build Support".
Solution 2
Here is the LLVM plugin for CDT http://code.google.com/p/llvm4eclipsecdt/
And here ↑↑↑↑ is its author, Petri Tuononen. Thank you, Petri!
Related videos on Youtube
Author by
Alexander Battisti
Updated on November 08, 2020Comments
-
Alexander Battisti over 3 years
Is it possible to use Clang/LLVM with Eclipse CDT and if so, how is it configured to actually make it work?
-
stu over 8 yearsI added an answer here... stackoverflow.com/questions/10973325/…
-
-
Petri Tuononen almost 13 yearsI will appreciate any feedback so that I can improve it.
-
osgx over 12 yearsPetri Tuononen, is there any progress in development?
-
Petri Tuononen over 12 yearsI am sorry to inform that I have not had time lately to do any improvements so it is on hold at the moment. Let's see if I have some time after Christmas.
-
Petri Tuononen about 12 years^ Indeed, the plugin supports Cygwin and MinGW.
-
betabandido over 10 yearsI have an autotools-managed project in Eclipse. Compilation works after overriding
CXX
flag, but syntax highlighting in CDT does not work, since it tries to use GCC 4.2 (included in Xcode). You can see my question for more details. Can your plugin be used so that syntax highlighting in CDT uses Clang, and therefore it supports C++11? -
Vivek Kumar about 10 years@ Petri Tuononen do you any plan for clang3.5 ?
-
elika kohen almost 9 yearsThe plugin only works up to version 3.2. There are is now llc, lld, and clang++ commands that take different options.
-
Petri Tuononen over 8 yearsThe original plugin is now deprecated but the updated version is now in official Eclipse update site (link in answer) and I suppose it should work with new Clang versions, but haven't tested.
-
Howard Lovatt almost 8 yearsUnfortunately this plugin appears to no longer be supported - pity