Re:Show HN: Lightweight C++ editor that understands your code
by grok2 on Thursday November 05, 2015 @12:20AM
(#10511776)
How do you find using libclang for parsing (and I assume for indexing the source code) -- at one point I was considering writing a C only text-editor that understood the code using libclang for parsing, but was worried that there would be too many corner cases for it to be useful. (Would be cool if you can write up some blog post regarding your experience with it).
Also will sled work for browsing an entirely C codebase (without any C++)?
Re:Show HN: Lightweight C++ editor that understands your code
by slededit on Thursday November 05, 2015 @05:40AM
(#10512635)
It should work with C code, right now it will parse it as C++ but that can easily be fixed in the future. The 20th of this month will be the 1 year mark of when I started writing it. Creating an editor isn't for the faint of heart.
I'll consider a writeup for libclang. The documentation isn't very good in my opinion and I'm still not convinced I'm using it right even now.
A few other library dependencies: - libclang for heavy duty parsing (I also have a "quick" parser that handles simple cases in real time). - rapidxml for the config files - boost for Boyer Moore on the string search (but I'm trying to move away from boost eventually).