是VC ++ code DOM从VS插件访问? [英] Is the VC++ code DOM accessible from VS addons?
问题描述
Visual Studio的智能感知为VC ++包括完成 EDG C ++语法分析器(也被英特尔等)。由于C#code DOM可以访问插件(纠正我,如果我错了),是C ++ code DOM也可以访问?可以这样来分析VS环境中打开的VC ++项目?
Visual Studio IntelliSense for VC++ includes the "complete" EDG C++ parser (also used by Intel and others). Since the C# Code DOM is accessible to addons (correct me if I'm wrong), is the C++ Code DOM also accessible? Can this be used to analyse an open VC++ project within the VS environment?
推荐答案
的<一个href="http://visualstudiogallery.msdn.microsoft.com/164904b2-3b47-417f-9b6b-fdd35757d194?SRC=Home">Visual C ++重构扩展程序可以重命名一个成员在项目范围内。它通过内置的MS但很明显,他们使用的内部code DOM来实现这一目标。因此,它是可能的,我只是不知道怎么回事,但。
The Visual C++ Refactoring extension is able to rename a member project-wide. Its built by MS but obviously they used the internal Code DOM to achieve this. So it is possible, I just don't know how, yet.
的<一个href="http://visualstudiogallery.msdn.microsoft.com/5225726a-bd8a-495e-81bf-994316f61502">CppLister分机能够读取由VS创建的智能感知数据库类中列出各种部件。
The CppLister extension is able to read the intellisense databases created by VS to list the various members within a class.
您可以随时使用开源锵C ++解析器(实际上是编译器)和读AST成C#对象模型。请参阅<一href="http://visualstudiogallery.msdn.microsoft.com/164904b2-3b47-417f-9b6b-fdd35757d194?SRC=Home">CppSharp和<一href="http://visualstudiogallery.msdn.microsoft.com/5225726a-bd8a-495e-81bf-994316f61502">ClangSharp对于C#绑定锵。
You can always use the open source Clang C++ parser (actually compiler) and read the AST into a C# Object Model. See CppSharp and ClangSharp for C# bindings to Clang.
这篇关于是VC ++ code DOM从VS插件访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!