[PATCH] D27837: Add fix-it notes to the nullability consistency warning

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 16 08:05:52 PST 2016


ahatanak added inline comments.


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8772
+def note_nullability_fix_it : Note<
+  "insert '%select{_Nonnull|_Nullable|_Null_unspecified}0' if the "
+  "%select{pointer|block pointer|member pointer|array parameter}1 "
----------------
Is the third option (_Null_unspecified) going to be used somewhere? I see the first two options are used in emitNullabilityConsistencyWarning, but not the third one.


Repository:
  rL LLVM

https://reviews.llvm.org/D27837





More information about the cfe-commits mailing list