+50
codex 6 years ago • updated by Rocco 5 years ago 5
The holy grail of C/C++ text editors is to integrate with Clang/libclang and parse the code the way the compiler does--by actually compiling the code.  This would enable extremely expressive syntax highlighting, continuous build error reporting, and full refactoring, without having to maintain one's own parser.
+1
See http://llvm.org/devmtg/2010-11/Gregor-libclang.pdf for the gist of what Clang gets 'ya.
+1
This doesn't necessarily have to be difficult to implement.

You should consider first going the route that vim did.  They allow user pluggable extensions to provide the drop-down list.  There's already a vim-clang extensions to take a peek at if you're interested.

+5
FYI I started a plugin for clang autocompletion. It's pretty functional already, but does need more work. Check it out if you're coding in C/C++
http://github.com/quarnster/SublimeClang

Neat plugin. I'll have to try it out.

Now we just need to vote with our money to get the author to officially support clang. The code doesn't look too complex at all.

I have just downloaded Sublime as I am searching for a better code editor. It is great to see that there is a C/C++ plugin. I would like to know if there is a goto definition plugin that works for C/C++ and even objective C. I understand that there is one called codeIntel however it doesn't work for my project. Also is there a plugin that allows relationship diagrams (call trees) to be derived from the project? Any help will be appreciated.