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

MSVC /Wall is not unusable because of standard library headers

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

描述

The current wording reads "`/Wall` - Also warns on files included from the standard library, so it's not very useful and creates too many extra warnings." – this reason does not seem to hold, because `/external` (i.e. `/external:anglebrackets`) exists and is effective in preventing `/Wall` warnings in the standard headers too.

A better reason to avoid `/Wall` would be a large number of informational diagnostics (i.e. https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4711?view=msvc-170) - but then again, these can be disabled individually.

貢獻指南

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

研究方向

審查 issue 中描述的 `/Wall` 指引,從現有措辭和連結的 MSVC 警告文件開始。驗證 `/external` 如何影響標準函式庫警告,以及 C4711 等資訊性診斷是否才是更準確的關注點。完成的標準是,文件不再給出避免使用 `/Wall` 的錯誤理由,並準確反映可用的警告控制方式。

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

評估

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

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

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