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

前端 未结 2 1647
梦如初夏
梦如初夏 2021-02-11 11:54

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:31

    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.

提交回复
热议问题