<p dir="ltr">Any way to/would it be worth broadening this with an annotation or some such (or just a lost for now) of types that maintain references to their ctor params? (Eg: llvm arrayref, etc)</p>
<div class="gmail_quote">On Mar 1, 2016 9:19 AM, "Jonathan B Coe via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">jbcoe created this revision.<br>
jbcoe added reviewers: aaron.ballman, alexfh.<br>
jbcoe added a subscriber: cfe-commits.<br>
jbcoe set the repository for this revision to rL LLVM.<br>
<br>
Find instances where a string_view is constructed from a temporary string and replace the string_view with a string.<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D17772" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17772</a><br>
<br>
Files:<br>
  clang-tidy/misc/CMakeLists.txt<br>
  clang-tidy/misc/MiscTidyModule.cpp<br>
  clang-tidy/misc/StringViewOfTemporaryCheck.cpp<br>
  clang-tidy/misc/StringViewOfTemporaryCheck.h<br>
  docs/clang-tidy/checks/list.rst<br>
  docs/clang-tidy/checks/misc-string_view-of-temporary.rst<br>
  test/clang-tidy/misc-string_view-of-temporary.cpp<br>
<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div>