Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-01-22 12:51:06 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2018-01-22 12:51:06 +0300
commite82392563f4e6c5bb1bc54143e9eeb27ba13c8f1 (patch)
tree4637276141d441ec664aede2fc0c5d418ec287d5 /test/tests/file_handle_create_close
parent755da97b9b4459815c4e3cc03803defd4d6d3c9b (diff)
Another round of clang-tidy --fixes
Diffstat (limited to 'test/tests/file_handle_create_close')
-rw-r--r--test/tests/file_handle_create_close/kernel_async_file_handle.cpp.hpp10
-rw-r--r--test/tests/file_handle_create_close/kernel_file_handle.cpp.hpp10
2 files changed, 10 insertions, 10 deletions
diff --git a/test/tests/file_handle_create_close/kernel_async_file_handle.cpp.hpp b/test/tests/file_handle_create_close/kernel_async_file_handle.cpp.hpp
index 1017cd1a..3c8ae225 100644
--- a/test/tests/file_handle_create_close/kernel_async_file_handle.cpp.hpp
+++ b/test/tests/file_handle_create_close/kernel_async_file_handle.cpp.hpp
@@ -30,8 +30,8 @@ namespace file_handle_create_close
{
AFIO_V2_NAMESPACE::io_service service;
auto h = AFIO_V2_NAMESPACE::async_file_handle::async_file(service, {}, "testfile.txt", m, c, AFIO_V2_NAMESPACE::async_file_handle::caching::all, f);
- if(h)
- h.value().close().value();
+ if(h) {
+ h.value().close().value(); }
return h;
}
AFIO_TEST_KERNEL_DECL AFIO_V2_NAMESPACE::result<AFIO_V2_NAMESPACE::async_file_handle> test_kernel_async_file_handle_relative(AFIO_V2_NAMESPACE::async_file_handle::mode m, AFIO_V2_NAMESPACE::async_file_handle::creation c, AFIO_V2_NAMESPACE::async_file_handle::flag f)
@@ -39,9 +39,9 @@ namespace file_handle_create_close
AFIO_V2_NAMESPACE::io_service service;
OUTCOME_TRY(b, AFIO_V2_NAMESPACE::path_handle::path("."));
auto h = AFIO_V2_NAMESPACE::async_file_handle::async_file(service, b, "testfile.txt", m, c, AFIO_V2_NAMESPACE::async_file_handle::caching::all, f);
- if(h)
- h.value().close().value();
+ if(h) {
+ h.value().close().value(); }
b.close().value();
return h;
}
-}
+} // namespace file_handle_create_close
diff --git a/test/tests/file_handle_create_close/kernel_file_handle.cpp.hpp b/test/tests/file_handle_create_close/kernel_file_handle.cpp.hpp
index f9a0c717..fbfb806f 100644
--- a/test/tests/file_handle_create_close/kernel_file_handle.cpp.hpp
+++ b/test/tests/file_handle_create_close/kernel_file_handle.cpp.hpp
@@ -29,17 +29,17 @@ namespace file_handle_create_close
AFIO_TEST_KERNEL_DECL AFIO_V2_NAMESPACE::result<AFIO_V2_NAMESPACE::file_handle> test_kernel_file_handle_absolute(AFIO_V2_NAMESPACE::file_handle::mode m, AFIO_V2_NAMESPACE::file_handle::creation c, AFIO_V2_NAMESPACE::file_handle::flag f)
{
auto h = AFIO_V2_NAMESPACE::file_handle::file({}, "testfile.txt", m, c, AFIO_V2_NAMESPACE::file_handle::caching::all, f);
- if(h)
- h.value().close().value();
+ if(h) {
+ h.value().close().value(); }
return h;
}
AFIO_TEST_KERNEL_DECL AFIO_V2_NAMESPACE::result<AFIO_V2_NAMESPACE::file_handle> test_kernel_file_handle_relative(AFIO_V2_NAMESPACE::file_handle::mode m, AFIO_V2_NAMESPACE::file_handle::creation c, AFIO_V2_NAMESPACE::file_handle::flag f)
{
OUTCOME_TRY(b, AFIO_V2_NAMESPACE::path_handle::path("."));
auto h = AFIO_V2_NAMESPACE::file_handle::file(b, "testfile.txt", m, c, AFIO_V2_NAMESPACE::file_handle::caching::all, f);
- if(h)
- h.value().close().value();
+ if(h) {
+ h.value().close().value(); }
b.close().value();
return h;
}
-}
+} // namespace file_handle_create_close