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

Warning flag

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

説明

Hello,

In your [03-Style.md](https://github.com/lefticus/cppbestpractices/blob/master/03-Style.md) best practice file you talk about using `nullptr` instead of `0` or `NULL` which is a very good things to do.

There is a flag in GCC that warn the user about using `0` (or `NULL`) instead of `nullptr`: `-Wzero-as-null-pointer-constant`. Unfortunately this flag does not exists for clang and I don't know if it does for MSVC.

I think this should be a good idea to add this flag in your warning flag list (https://github.com/lefticus/cppbestpractices/blob/master/02-Use_the_Tools_Available.md#gcc--clang).

Best regards

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

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

評価

この issue はまだ評価されていません。

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

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