diff options
author | Brad King <brad.king@kitware.com> | 2018-06-01 16:52:10 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-06-01 16:52:38 (GMT) |
commit | eed0df951d95d48e7856107175a2baba212c3206 (patch) | |
tree | d9ac3ded5ae6899be7188795011743fe3e6da0a6 /Source/cmUVHandlePtr.h | |
parent | b671e4799f0e418448681a21120e8e87a97de5dc (diff) | |
parent | d7204e649ed4ebb19bb341b4e49eb51514364922 (diff) | |
download | CMake-eed0df951d95d48e7856107175a2baba212c3206.zip CMake-eed0df951d95d48e7856107175a2baba212c3206.tar.gz CMake-eed0df951d95d48e7856107175a2baba212c3206.tar.bz2 |
Merge topic 'clang-format-6.0'
d7204e649e Revise C++ coding style using clang-format-6.0
12fed3edb1 Empty commit at end of history preceding clang-format-6.0 style transition
523c443d13 clang-format.bash: update to clang-format-6.0
eb7ec19c1c clang-format: Add comments to suppress some formatting
b67a5bf175 Tests/VSWinStorePhone: Do not format managed source
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sebastian Holtermann <sebholt@xwmw.org>
Merge-request: !2123
Diffstat (limited to 'Source/cmUVHandlePtr.h')
-rw-r--r-- | Source/cmUVHandlePtr.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Source/cmUVHandlePtr.h b/Source/cmUVHandlePtr.h index a6ce565..2937e0d 100644 --- a/Source/cmUVHandlePtr.h +++ b/Source/cmUVHandlePtr.h @@ -21,12 +21,12 @@ namespace cm { /*** -* RAII class to simplify and insure the safe usage of uv_*_t types. This -* includes making sure resources are properly freed and contains casting -* operators which allow for passing into relevant uv_* functions. -* -*@tparam T actual uv_*_t type represented. -*/ + * RAII class to simplify and insure the safe usage of uv_*_t types. This + * includes making sure resources are properly freed and contains casting + * operators which allow for passing into relevant uv_* functions. + * + *@tparam T actual uv_*_t type represented. + */ template <typename T> class uv_handle_ptr_base_ { @@ -65,8 +65,9 @@ public: * that initializes something like uv_pipe_ptr or uv_tcp_ptr and interact * and clean up after it without caring about the exact type. */ - template <typename S, typename = typename std::enable_if< - std::is_rvalue_reference<S&&>::value>::type> + template <typename S, + typename = typename std::enable_if< + std::is_rvalue_reference<S&&>::value>::type> uv_handle_ptr_base_(S&& rhs) { // This will force a compiler error if rhs doesn't have a casting @@ -198,9 +199,9 @@ typedef uv_handle_ptr_<uv_handle_t> uv_handle_ptr; extern template class uv_handle_ptr_base_<uv_handle_t>; -#define UV_HANDLE_PTR_INSTANTIATE_EXTERN(NAME) \ - extern template class uv_handle_ptr_base_<uv_##NAME##_t>; \ - extern template class uv_handle_ptr_<uv_##NAME##_t>; +# define UV_HANDLE_PTR_INSTANTIATE_EXTERN(NAME) \ + extern template class uv_handle_ptr_base_<uv_##NAME##_t>; \ + extern template class uv_handle_ptr_<uv_##NAME##_t>; UV_HANDLE_PTR_INSTANTIATE_EXTERN(async) @@ -216,7 +217,7 @@ UV_HANDLE_PTR_INSTANTIATE_EXTERN(timer) UV_HANDLE_PTR_INSTANTIATE_EXTERN(tty) -#undef UV_HANDLE_PTR_INSTANTIATE_EXTERN +# undef UV_HANDLE_PTR_INSTANTIATE_EXTERN #endif } |