久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 Visual Studio 中顯示 C++ 文件的 #include 層次結構

Displaying the #include hierarchy for a C++ file in Visual Studio(在 Visual Studio 中顯示 C++ 文件的 #include 層次結構)
本文介紹了在 Visual Studio 中顯示 C++ 文件的 #include 層次結構的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

問題:我有一個大型 Visual C++ 項目,我正嘗試將其遷移到 Visual Studio 2010.它包含來自不同來源和不同時代的大量內容.我遇到了問題,因為某些內容同時包含 winsock.hwinsock2.h.

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.

問題:有哪些工具和技術可以顯示 Visual Studio C++ 源文件的 #include 層次結構?

Question: What tools and techniques are there for displaying the #include hierarchy for a Visual Studio C++ source file?

我知道 cl/P 用于獲取預處理器輸出,但這并沒有清楚地顯示哪個文件包含哪些其他文件(在這種情況下,/P 輸出是 376,932 行 8-)

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

推薦答案

有個設置:

項目設置 -> 配置屬性 -> C/C++ -> 高級 -> 顯示包含

Project Settings -> Configuration Properties -> C/C++ -> Advanced -> Show Includes

這將生成樹.它映射到編譯器開關 /showIncludes

that will generate the tree. It maps to the compiler switch /showIncludes

這篇關于在 Visual Studio 中顯示 C++ 文件的 #include 層次結構的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How do I set the icon for my application in visual studio 2008?(如何在 Visual Studio 2008 中為我的應用程序設置圖標?)
Convert CString to const char*(將 CString 轉換為 const char*)
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio(默認情況下,在 Visual Studio 中從項目中刪除安全警告 (_CRT_SECURE_NO_WARNINGS))
How do I start a new CUDA project in Visual Studio 2008?(如何在 Visual Studio 2008 中啟動新的 CUDA 項目?)
Exporting classes containing `std::` objects (vector, map etc.) from a DLL(從 DLL 導出包含 `std::` 對象(向量、映射等)的類)
What are some reasons a Release build would run differently than a Debug build(發布版本與調試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 久久手机视频 | 国产黄a三级三级三级看三级男男 | 国产精品成人一区二区三区 | 国产视频一区二区在线 | 国产区视频在线 | 成人免费视频国产免费 | 激情福利视频 | 欧美视频一区二区 | 免费看毛片网站 | 国产欧美日韩一区 | 亚洲国产精品久久久久久久 | 亚洲播放 | 日本毛片在线观看 | 久久日av| 一级片免费网站 | 免费成人黄色网址 | 欧美一级网站 | 久久怡红院 | 国产精品永久久久久久久久久 | 亚洲第一视频网站 | 日本国产在线 | 青草国产 | 成人羞羞国产免费游戏 | 欧美日韩免费 | 日韩视频免费在线观看 | 一级黄色小视频 | 曰本一级片| 亚洲午夜18毛片在线看 | 免费一区二区三区 | 国产精品日韩欧美 | 国产精品入口66mio男同 | 日韩免费一区二区 | 中文日韩在线 | av不卡在线观看 | 欧美日韩中文字幕在线观看 | 亚洲精品乱码久久久久久蜜桃91 | 成人中文字幕在线观看 | 一区二区视频在线播放 | 中文字幕在线免费视频 | 中文字幕av片| 中文字字幕码一二三区 |