在Visual Studio中获取C++代码的AST

4

有没有办法使用微软的Visual Studio编译器从C++代码中生成AST?

我想到了类似于clang的-ast-dump选项。


不,MSVC在编译过程中实际上并没有生成AST。 - sjdowling
2
它确实会在编译期间消耗它。根据这篇2007年的文章,曾经对此进行过一些工作:http://blogs.msdn.com/b/vcblog/archive/2007/08/17/visual-c-code-model.aspx - graham.reeds
1个回答

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接