<div dir="ltr"><div>Thanks Marshall,</div><div><br></div>Regarding the first group - these are all LLVM IR-level optimizer tests, so they don't actually care about what a particular version of C++ does or does not contain.<div><br></div><div>Thanks,</div><div> Michael</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 1:32 PM, Marshall Clow via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The upcoming C++1z (probably C++17) standard will not contain several things - most notably auto_ptr.<div><br></div><div>Soon, libc++ will not be providing auto_ptr by default when building in C++1z mode.</div><div>You'll be able to get it back with a </div><div>"-D_LIBCPP_ENABLE_CXX17_<wbr>REMOVED_AUTO_PTR" on your command line, or "#define _LIBCPP_ENABLE_CXX17_REMOVED_<wbr>AUTO_PTR" before including any libc++ header files.</div><div><br></div><div>Grepping through the LLVM code base, I found several references to auto_ptr that should be investigated. Most, if not all of them are in test cases.</div><div><br></div><div><div># Tests that reference auto_ptr</div><div>llvm/test/CodeGen/X86/negate-<wbr>add-zero.ll</div><div>llvm/test/Transforms/<wbr>DeadStoreElimination/2011-09-<wbr>06-EndOfFunction.ll</div><div>llvm/test/Transforms/<wbr>MemCpyOpt/loadstore-sret.ll</div><div><br></div><div># Things that define their own auto_ptr</div><div>llvm/tools/clang/test/<wbr>Analysis/diagnostics/Inputs/<wbr>include/report-issues-within-<wbr>main-file.h</div><div>llvm/tools/clang/test/<wbr>Analysis/diagnostics/report-<wbr>issues-within-main-file.cpp</div><div>llvm/tools/clang/test/<wbr>CodeGenCXX/2010-07-23-DeclLoc.<wbr>cpp</div><div><br></div><div># clang-tidy bits that reference auto_ptr</div><div>llvm/tools/clang/tools/extra/<wbr>clang-tidy/modernize/<wbr>ReplaceAutoPtrCheck.cpp</div><div>llvm/tools/clang/tools/extra/<wbr>clang-tidy/modernize/<wbr>ReplaceAutoPtrCheck.h</div><div>llvm/tools/clang/tools/extra/<wbr>docs/clang-tidy/checks/<wbr>modernize-use-emplace.rst</div><div>llvm/tools/clang/tools/extra/<wbr>include-fixer/find-all-<wbr>symbols/STLPostfixHeaderMap.<wbr>cpp</div><div>llvm/tools/clang/tools/extra/<wbr>test/clang-tidy/Inputs/<wbr>modernize-replace-auto-ptr/<wbr>memory.h</div><div>llvm/tools/clang/tools/extra/<wbr>test/clang-tidy/modernize-<wbr>replace-auto-ptr.cpp</div><div>llvm/tools/clang/www/analyzer/<wbr>potential_checkers.html</div></div><div><br></div><div><br></div><div>The first three files should be investigated.</div><div>I believe that the second group should not be affected by this change.</div><div>The third group (the clang-tidy changes) probably will not be affected.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- Marshall</div><div><br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>