cpp-best-practices / cpp-best-practices/cppbestpractices

External warning label for headers in MSVC

未關閉
#88 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
沒有語言資料
星號
8.8k
分支
902
PR 合併指標
30 天內沒有已合併 PR

描述

Currently the guide recommends against `/Wall` for MSVC because the system headers do not comply. https://blogs.msdn.microsoft.com/vcblog/2017/12/13/broken-warnings-theory/ has an experimental feature that lets you turn off warnings for headers outside of your control.

`/external:anglebrackets` – a switch that allows a user to treat all headers included via #include <> (as opposed to #include "") as external headers

Might be good behavior to use the above switch assuming your MSVC compiler supports it.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

從建議不要在 MSVC 中使用 `/Wall` 的指南部分開始,並確認相關編譯器版本是否支援 `/external:anglebrackets`。完成的標準是,MSVC 指南清楚記錄外部標頭選項,並註明任何相容性限制。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
cpp
領域
compilers, documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。