How can one inspect a vtable in Visual C++?

后端 未结 2 1030
独厮守ぢ
独厮守ぢ 2021-02-10 18:00

Suppose one had inherited a complex codebase (in Visual C++, assume 2003 or perhaps later) with a large and complex inheritance graph. Suppose it\'s deep, and there\'s lots of v

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-10 18:44

    I would highly recommend using Doxygen as a tool for any sort of code analysis like this. I don't think it has a quick way to find the final overrider for any function in a type, but it should provide a listing of what is inherited and what is implemented, so that you can quickly scan the tree to identify the overrider for any given function (usually, your hierarchy isn't big enough as to make it a big deal). It can also generate call graphs, relation graphs, and hyperlinked source code, which is a fantastic tool.

提交回复
热议问题