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

  1. parse files gccxml
  2. 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

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -