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!

Share:
38,384

Related videos on Youtube

Alexander Battisti
Author by

Alexander Battisti

Updated on November 08, 2020

Comments

  • Alexander Battisti
    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?

  • Petri Tuononen
    Petri Tuononen almost 13 years
    I will appreciate any feedback so that I can improve it.
  • osgx
    osgx over 12 years
    Petri Tuononen, is there any progress in development?
  • Petri Tuononen
    Petri Tuononen over 12 years
    I 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
    Petri Tuononen about 12 years
    ^ Indeed, the plugin supports Cygwin and MinGW.
  • betabandido
    betabandido over 10 years
    I 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
    Vivek Kumar about 10 years
    @ Petri Tuononen do you any plan for clang3.5 ?
  • elika kohen
    elika kohen almost 9 years
    The plugin only works up to version 3.2. There are is now llc, lld, and clang++ commands that take different options.
  • Petri Tuononen
    Petri Tuononen over 8 years
    The 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
    Howard Lovatt almost 8 years
    Unfortunately this plugin appears to no longer be supported - pity