c++ - How to use gccxml with incomplete dependency? -
i trying calculate code metrics of set of c++ files. find available tools either expensive or quite old, choose to
- parse files gccxml
- analyze output xml-file.
then meet problem of headers not ready:
error: js-config.h: no such file or directory // js-config.h.in in folder
error: jsautocfg.h: no such file or directory
since want basic structure of each c++ file, possible make gccxml output xml-file anyway?
you can't determine structure of c++ such incomplete information:
#include "js-config.h" void foo() { bar(); } what's bar()? can macro, type, function, functor. problem need such information because otherwise parsing can break down completely:
void foo() { (int) x(bar & bar); // hell this? }
Comments
Post a Comment