Can I get an XML AST dump of C/C++ code with clang without using the compiler?

前端 未结 3 712
独厮守ぢ
独厮守ぢ 2020-12-14 02:22

I managed to compile successfully clang for windows with cmake and visual studio 10. I would like to get an XML file as AST representation of the source code. There is one o

3条回答
  •  隐瞒了意图╮
    2020-12-14 03:08

    Using a custom ASTDumper would do the job, without ofc compiling any source file. (stop clang in the frontend part). but you have to deal with all C and C++ code sources of llvm to accomplish that .

提交回复
热议问题