久久久久久久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(發布版本與調試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 日韩综合在线播放 | 四虎影院一区二区 | 国产 日韩 欧美 在线 | 午夜在线 | 成人深夜福利 | 精品欧美乱码久久久久久1区2区 | 欧美激情免费在线 | 蜜桃av一区二区三区 | 美女黄网站 | 国产男女视频 | 欧美成人一级 | 国产乱码高清区二区三区在线 | 国产欧美一级二级三级在线视频 | 精品无码久久久久国产 | 日本福利视频免费观看 | 欧美性视频在线播放 | 色婷婷综合网站 | 在线国产一区 | 国产男人的天堂 | 日韩一区二区三区av | 视频在线观看一区 | 99久久精品国产麻豆演员表 | 中国一级特黄毛片大片 | 国产精品1区2区3区 一区中文字幕 | 国产日韩欧美二区 | 成人激情视频免费在线观看 | 日韩中文一区二区 | 欧美一区二区在线 | 自拍偷拍一区二区三区 | 欧美99久久精品乱码影视 | 一区二区三区在线观看视频 | 99热都是精品 | 精品av久久久久电影 | 国产ts一区| 成人国产精品久久 | 国产乱码久久久久久 | 欧美精品乱码久久久久久按摩 | 一本一道久久a久久精品综合 | 99久热在线精品视频观看 | 成人国产在线视频 | 狠狠干五月天 |