问题描述
问题:我有我想要迁移到Visual Studio 2010中这东西从各种来源和不同年龄的庞大组合的大型Visual C ++项目。我得到的问题,因为事情是包括 WINSOCK.H
和 winsock2.h
。
问:用于显示一个Visual Studio C ++源文件中的的#include
层次哪些工具和技术是有
我知道的 CL / P
作为获得preprocessor输出,但并不清楚地显示哪些文件包括其他文件(在这种情况下在 / P
输出为376932行长8 - )
在一个完美的世界,我想分层显示这些文件包括其他文件,行号一起,所以我可以跳进来源:
source.cpp(1)
WINDOWS.H(100)
WINSOCK.H
some_other_thing.h(1234)
winsock2.h
有一个设置:
项目设置 - >配置属性 - > C / C ++ - >高级 - >显示包括
这将生成该树。它映射到编译器开关
Problem: I have a large Visual C++ project that I'm trying to migrate to Visual Studio 2010. It's a huge mix of stuff from various sources and of various ages. I'm getting problems because something is including both winsock.h
and winsock2.h
.
Question: What tools and techniques are there for displaying the #include
hierarchy for a Visual Studio C++ source file?
I know about cl /P
for getting the preprocessor output, but that doesn't clearly show which file includes which other files (and in this case the /P
output is 376,932 lines long 8-)
In a perfect world I'd like a hierarchical display of which files include which other files, along with line numbers so I can jump into the sources:
source.cpp(1)
windows.h(100)
winsock.h
some_other_thing.h(1234)
winsock2.h
There is a setting:
Project Settings -> Configuration Properties -> C/C++ -> Advanced -> Show Includes
that will generate the tree. It maps to the compiler switch /showIncludes
这篇关于显示的#include层次的C ++在Visual Studio中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!