External warning label for headers in MSVC

Open
#88 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp

Research direction

Start with the guide section that recommends against /Wall for MSVC and verify whether /external:anglebrackets is supported by the relevant compiler versions. Done means the MSVC guidance clearly documents the external-header option, with any compatibility limitation noted.

Written by the indexing model from the issue text.

Description

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.

Dominant language
No language data
Stars
8.9k
Forks
901
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cpp-best-practices/cppbestpractices

All issues in cpp-best-practices/cppbestpractices

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.