Home
last modified time | relevance | path

Searched refs:makeScopeGuard (Results 1 – 7 of 7) sorted by relevance

/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/test/
H A DPzstdTest.cpp35 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
46 auto errorGuard = makeScopeGuard([&] { in TEST()
70 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
81 auto errorGuard = makeScopeGuard([&] { in TEST()
104 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
111 auto closeGuard = makeScopeGuard([&] { std::fclose(fd); }); in TEST()
134 auto guard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in TEST()
H A DRoundTripTest.cpp32 auto guard = makeScopeGuard([&] { std::fclose(fd); }); in writeData()
67 auto newlineGuard = makeScopeGuard([] { std::fprintf(stderr, "\n"); }); in main()
73 auto inputGuard = makeScopeGuard([&] { std::remove(inputFile.c_str()); }); in main()
H A DRoundTrip.h28 auto guard = makeScopeGuard([&] { in check()
64 auto guard = makeScopeGuard([&] { in roundTrip()
/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/
H A DPzstd.cpp177 auto printErrorGuard = makeScopeGuard([&] { in pzstdMain()
189 auto closeInputGuard = makeScopeGuard([&] { std::fclose(inputFd); }); in pzstdMain()
200 auto closeOutputGuard = makeScopeGuard([&] { std::fclose(outputFd); }); in pzstdMain()
277 auto guard = makeScopeGuard([&] { out->finish(); }); in compress()
392 auto chunksGuard = makeScopeGuard([&] { chunks.finish(); }); in asyncCompressChunks()
403 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncCompressChunks()
435 auto guard = makeScopeGuard([&] { out->finish(); }); in decompress()
504 auto framesGuard = makeScopeGuard([&] { frames.finish(); }); in asyncDecompressFrames()
516 auto inGuard = makeScopeGuard([&] { in->finish(); }); in asyncDecompressFrames()
582 auto lineClearGuard = makeScopeGuard([&state] { in writeFile()
H A DOptions.cpp361 makeScopeGuard([&] { UTIL_freeFileList(files, scratchBuffer); }); in parse()
/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/utils/test/
H A DScopeGuardTest.cpp17 auto guard = makeScopeGuard([&] { EXPECT_TRUE(false); }); in TEST()
25 auto guard = makeScopeGuard([&] { executed = true; }); in TEST()
/freebsd-12.1/sys/contrib/zstd/contrib/pzstd/utils/
H A DScopeGuard.h47 ScopeGuard<Function> makeScopeGuard(Function&& function) { in makeScopeGuard() function