Modernize code using c++17 constructs

Mostly done using

find . \( -name '*.cc' -o -name '*.h' \) -a -type f -exec clang-tidy -p \
cmake-build -checks='-*,google-*,modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type' {} -fix \;

Change-Id: Ifccbcabe7a1d9a32a09d28ac4f3f8466696c1a50
This commit is contained in:
Sameer Agarwal
2022-04-21 17:41:10 -07:00
parent be618133e7
commit caf614a6c1
419 changed files with 865 additions and 1706 deletions
@@ -36,8 +36,7 @@
#include "ceres/internal/jet_traits.h"
namespace ceres {
namespace internal {
namespace ceres::internal {
// Unit tests for exclusive scan of integer sequence.
static_assert(std::is_same<ExclusiveScan<std::integer_sequence<int>>,
@@ -136,5 +135,4 @@ static_assert(
IsEmptyOrAreAllEqual_v<std::integer_sequence<long, 111, 111, 111, 111>>,
"expected all equal sequence is not");
} // namespace internal
} // namespace ceres
} // namespace ceres::internal