[PATCH] D120691: Testing: Make TempFile safe to move; test Temp{Dir,File,Link}

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 28 17:27:14 PST 2022


dexonsmith created this revision.
dexonsmith added reviewers: dblaikie, broadwaylamb.
Herald added subscribers: kristof.beyls, mgorny.
dexonsmith requested review of this revision.
Herald added a project: LLVM.

Default the moves and delete the copies for TempFile, matching TempDir
and TempLink, and add tests for all of them to confirm that the
destructor is not harmful after it has been moved from.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120691

Files:
  llvm/include/llvm/Testing/Support/SupportHelpers.h
  llvm/unittests/CMakeLists.txt
  llvm/unittests/Testing/CMakeLists.txt
  llvm/unittests/Testing/Support/CMakeLists.txt
  llvm/unittests/Testing/Support/TempPathTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120691.411934.patch
Type: text/x-patch
Size: 4578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220301/d54fced1/attachment.bin>


More information about the llvm-commits mailing list