[PATCH] D17811: [clang-tidy] Add check to detect dangling references in value handlers.

Jonathan B Coe via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 10 15:59:38 PST 2016


jbcoe added inline comments.

================
Comment at: test/clang-tidy/misc-dangling-handle.cpp:86
@@ +85,3 @@
+  // CHECK-MESSAGES: [[@LINE-1]]:20: warning: std::basic_string_view outlives
+
+  view1 = std::string();
----------------
Thanks.


http://reviews.llvm.org/D17811





More information about the cfe-commits mailing list