Sarcasm / irony-mode

A C/C++ minor mode for Emacs powered by libclang
GNU General Public License v3.0
907 stars 99 forks source link

What's the difference between this and company-clang? #413

Open ohmree opened 7 years ago

ohmree commented 7 years ago

I'm using Spacemacs and have tried both it's c-c++ layer which uses company-clang and this private layer which uses irony and so far I could see two differences:

So are there any other differences between the two? Which one is better when it comes to performance and features?

Sarcasm commented 7 years ago

I can't really answer much about these "Spacemacs layers" as I'm not really familiar with Spacemacs.

But to answer the title of your question, company-irony is supposed to be faster than company-clang. Because irony-server runs as a subprocess of Emacs and can keep informations between edits of a file, instead of launching a compiler instance every time the completion is requested (which is what company-clang does). Feature-wise, the compilation database stuff is supposed to be an improvement over specifying the compile options manually for each file.