Re:Show HN: Cdefs, extract function prototypes in C files to...
by evmar on Sunday August 30, 2015 @11:46AM
(#10143609)
I've used gcc-xml (apparently has been superseded by another tool now) when I've needed this sort of thing in the past. It has the advantage of being a real C parser rather than a jumble of regexes.
[ Parent
| on HN ]
Re:Show HN: Cdefs, extract function prototypes in C files to...
by steeve on Sunday August 30, 2015 @12:48PM
(#10143784)
libclang is pretty amazing for that
Re:Show HN: Cdefs, extract function prototypes in C files to...
by ncr100 on Sunday August 30, 2015 @04:14PM
(#10144361)
Python libclang bindings make this kind of task quick work: https://github.com/llvm-mirror/clang/tree/master/bindings/py...