是VC ++ code DOM从VS插件访问?插件、code、VC、VS

2023-09-04 06:57:55 作者:放我走吧.

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?

推荐答案

的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.

的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#对象模型。请参阅CppSharp和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.