[PATCH] D146773: [-Wunsafe-buffer-usage] Make raw (ungrouped) warnings a bit more verbose.

Malavika Samak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 26 13:16:07 PDT 2023


malavikasamak added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:11786
+  "%select{"
+    "unsafe operation on raw pointer in expression|"
+    "unsafe arithmetic on raw pointer|"
----------------
NoQ wrote:
> The first mode doesn't show up in any tests and it's probably dead code at this point.
What do you think of specifying the variable name in these warnings? It could be helpful when there are more than one DREs in a statement.  


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146773/new/

https://reviews.llvm.org/D146773



More information about the cfe-commits mailing list