[PATCH] D12945: [PATCH] Add checker for objects that should not be value types

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 29 05:43:10 PDT 2015


alexfh added inline comments.

================
Comment at: clang-tidy/misc/NonCopyableObjects.cpp:88
@@ +87,3 @@
+  else if (E)
+    diag(E->getExprLoc(), "expression has suspicious type '%0'")
+        << BD->getName();
----------------
What's a "suspicious type" and why should the user know about this? Should the message explain better what's wrong and what can be done about that?


http://reviews.llvm.org/D12945





More information about the cfe-commits mailing list