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

External warning label for headers in MSVC

Đang mở
#88 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
8.8k
Fork
902
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.