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

Warning flag

Ouverte
#66 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Aucune donnée de langage
Étoiles
8.8k
Forks
902
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.