diff options
author | Kitware Robot <kwrobot@kitware.com> | 2018-06-01 13:53:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-01 13:53:42 (GMT) |
commit | d7204e649ed4ebb19bb341b4e49eb51514364922 (patch) | |
tree | d9ac3ded5ae6899be7188795011743fe3e6da0a6 /Source/cmAlgorithms.h | |
parent | 12fed3edb107c949671043196fa94c542b45452a (diff) | |
download | CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.zip CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.tar.gz CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.tar.bz2 |
Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`. Use `clang-format` version 6.0.
* If you reached this commit for a line in `git blame`, re-run the blame
operation starting at the parent of this commit to see older history
for the content.
* See the parent commit for instructions to rebase a change across this
style transition commit.
Diffstat (limited to 'Source/cmAlgorithms.h')
-rw-r--r-- | Source/cmAlgorithms.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h index c4eb62b..bbd3e8e 100644 --- a/Source/cmAlgorithms.h +++ b/Source/cmAlgorithms.h @@ -375,9 +375,9 @@ using std::size; // std::size backport from C++17. template <class C> -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +# if !defined(_MSC_VER) || _MSC_VER >= 1900 constexpr -#endif +# endif auto size(C const& c) -> decltype(c.size()) { @@ -385,9 +385,9 @@ constexpr } template <typename T, size_t N> -#if !defined(_MSC_VER) || _MSC_VER >= 1900 +# if !defined(_MSC_VER) || _MSC_VER >= 1900 constexpr -#endif +# endif std::size_t size(const T (&)[N]) throw() { @@ -405,22 +405,22 @@ using std::cend; // std::c{begin,end} backport from C++14 template <class C> -#if defined(_MSC_VER) && _MSC_VER < 1900 +# if defined(_MSC_VER) && _MSC_VER < 1900 auto cbegin(C const& c) -#else +# else constexpr auto cbegin(C const& c) noexcept(noexcept(std::begin(c))) -#endif +# endif -> decltype(std::begin(c)) { return std::begin(c); } template <class C> -#if defined(_MSC_VER) && _MSC_VER < 1900 +# if defined(_MSC_VER) && _MSC_VER < 1900 auto cend(C const& c) -#else +# else constexpr auto cend(C const& c) noexcept(noexcept(std::end(c))) -#endif +# endif -> decltype(std::end(c)) { return std::end(c); |