NoQ added inline comments.
================
Comment at: test/Analysis/cxx17-mandatory-elision.cpp:185-191
+ // Check if the last destructor is an automatic destructor.
+ // A temporary destructor would have fired by now.
+#if __cplusplus >= 201703L
+ clang_analyzer_eval(v.len == 1); // expected-warning{{TRUE}}
+#else
+ clang_analyzer_eval(v.len == 3); // expected-warning{{TRUE}}
+#endif
----------------
This sounded like a good thing to check, so i added such checks in a few more
places.
Repository:
rC Clang
https://reviews.llvm.org/D47405
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits