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

在 Visual Studio 中顯示 C++ 文件的 #include 層次結(jié)構(gòu)

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

問題描述

問題:我有一個大型 Visual C++ 項目,我正嘗試將其遷移到 Visual Studio 2010.它包含來自不同來源和不同時代的大量內(nèi)容.我遇到了問題,因為某些內(nèi)容同時包含 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.

問題:有哪些工具和技術(shù)可以顯示 Visual Studio C++ 源文件的 #include 層次結(jié)構(gòu)?

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

我知道 cl/P 用于獲取預(yù)處理器輸出,但這并沒有清楚地顯示哪個文件包含哪些其他文件(在這種情況下,/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-)

在一個完美的世界中,我想要分層顯示哪些文件包含哪些其他文件,以及行號,以便我可以跳轉(zhuǎn)到源代碼:

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

推薦答案

有個設(shè)置:

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

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

這將生成樹.它映射到編譯器開關(guān) /showIncludes

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

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

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

相關(guān)文檔推薦

How do I set the icon for my application in visual studio 2008?(如何在 Visual Studio 2008 中為我的應(yīng)用程序設(shè)置圖標(biāo)?)
Convert CString to const char*(將 CString 轉(zhuǎn)換為 const char*)
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio(默認(rèn)情況下,在 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 導(dǎo)出包含 `std::` 對象(向量、映射等)的類)
What are some reasons a Release build would run differently than a Debug build(發(fā)布版本與調(diào)試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 天天草天天射 | 欧美一区二区在线播放 | 久久精品99| 国产精品久久久亚洲 | 午夜影视 | 日韩国产一区二区 | 日韩欧美不卡 | 亚洲精品成人av | 精品美女 | 亚洲视频免费观看 | 91中文在线观看 | 免费精品久久久久久中文字幕 | 国产高清区 | 国产欧美日韩一区 | 性色的免费视频 | 国产精品毛片一区二区在线看 | 欧美国产日韩一区二区三区 | 成人国产精品免费观看 | 亚洲精品电影在线观看 | 国产成人小视频 | 欧美lesbianxxxxhd视频社区 | 九九99靖品 | 天堂色综合 | 国产精品日韩一区二区 | 欧美亚洲国产精品 | 国产精品视频一二三区 | 久久国产精品免费 | 国产中的精品av涩差av | 日日骚视频 | 一区二区三区在线播放 | 情侣酒店偷拍一区二区在线播放 | 亚洲精精品 | 国产在线中文字幕 | 国产成人免费 | 91久久精品国产免费一区 | 久久国产精品网站 | 日韩综合 | 国产精品视频一区二区三区不卡 | 国产又色又爽又黄又免费 | 欧美视频精品 | 91精品久久久久久久久中文字幕 |