Is the VC++ code DOM accessible from VS addons?

前端 未结 2 760
孤街浪徒
孤街浪徒 2021-02-11 11:50

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 w

2条回答
  •  遇见更好的自我
    2021-02-11 12:11

    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.

    The CppLister extension is able to read the intellisense databases created by VS to list the various members within a class.

    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.

提交回复
热议问题