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

MSVC more standards conformance

オープン
#152 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
8.8k
フォーク
902
PR マージ指標
30日以内にマージされた PR はありません

説明

The [/Zc](https://learn.microsoft.com/en-us/cpp/build/reference/zc-conformance?view=msvc-170) flag has a couple of conformance related changes that are not enabled by default, the /permissive- flag or the /std:c++17 and /std:c++20 flags.

As far as I understand the documentation, these include:
* /Zc:throwingNew
* /Zc:__cplusplus
* /Zc:preprocessor
* /Zc:inline
* /Zc:referenceBinding
* /Zc:strictStrings
* /Zc:templateScope

There are also two non-/Zc flags that I am aware of, that have an impact on conformance:
* /await:strict
* /volatile:iso

If interested, I could create a PR?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リンクされている Microsoft の /Zc 準拠ドキュメントから始め、このリポジトリに既にある C++ コンパイラーのガイダンスを確認してください。MSVC 準拠フラグがどこに記載されているかを特定し、一覧にある /Zc、/await:strict、/volatile:iso オプションについて、正確なデフォルト値と適用対象を記載してください。関連するガイダンスがこれらの準拠設定を明確に反映していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
documentation
issue の種類
ドキュメント
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。