<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_REMOVED_AUTO_PTR" on your command line, or "#define _LIBCPP_ENABLE_CXX17_REMOVED_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-add-zero.ll</div><div>llvm/test/Transforms/DeadStoreElimination/2011-09-06-EndOfFunction.ll</div><div>llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll</div><div><br></div><div># Things that define their own auto_ptr</div><div>llvm/tools/clang/test/Analysis/diagnostics/Inputs/include/report-issues-within-main-file.h</div><div>llvm/tools/clang/test/Analysis/diagnostics/report-issues-within-main-file.cpp</div><div>llvm/tools/clang/test/CodeGenCXX/2010-07-23-DeclLoc.cpp</div><div><br></div><div># clang-tidy bits that reference auto_ptr</div><div>llvm/tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp</div><div>llvm/tools/clang/tools/extra/clang-tidy/modernize/ReplaceAutoPtrCheck.h</div><div>llvm/tools/clang/tools/extra/docs/clang-tidy/checks/modernize-use-emplace.rst</div><div>llvm/tools/clang/tools/extra/include-fixer/find-all-symbols/STLPostfixHeaderMap.cpp</div><div>llvm/tools/clang/tools/extra/test/clang-tidy/Inputs/modernize-replace-auto-ptr/memory.h</div><div>llvm/tools/clang/tools/extra/test/clang-tidy/modernize-replace-auto-ptr.cpp</div><div>llvm/tools/clang/www/analyzer/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><div><br></div><div>-- Marshall</div><div><br></div></div>