From 2cf36e71324a0aa01ac595220d1162a189b68d75 Mon Sep 17 00:00:00 2001 From: Roelof Oomen Date: Fri, 12 Jul 2024 20:41:03 +0200 Subject: [PATCH] clang-tidy fixes for trajopt_common --- .../include/trajopt_common/eigen_conversions.hpp | 2 +- trajopt_common/src/test_logging.cpp | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 trajopt_common/src/test_logging.cpp diff --git a/trajopt_common/include/trajopt_common/eigen_conversions.hpp b/trajopt_common/include/trajopt_common/eigen_conversions.hpp index d44cdbde5..5811180d6 100644 --- a/trajopt_common/include/trajopt_common/eigen_conversions.hpp +++ b/trajopt_common/include/trajopt_common/eigen_conversions.hpp @@ -9,7 +9,7 @@ namespace trajopt_common { inline std::vector toDblVec(const Eigen::Matrix& x) { - return std::vector(x.data(), x.data() + x.size()); + return { x.data(), x.data() + x.size() }; } inline Eigen::VectorXd toVectorXd(const std::vector& x) { diff --git a/trajopt_common/src/test_logging.cpp b/trajopt_common/src/test_logging.cpp deleted file mode 100644 index a991c81bf..000000000 --- a/trajopt_common/src/test_logging.cpp +++ /dev/null @@ -1,12 +0,0 @@ -#include - -int main() -{ - LOG_FATAL("fatal"); - LOG_ERROR("error"); - LOG_WARN("warn"); - LOG_INFO("info"); - LOG_DEBUG("debug"); - LOG_TRACE("trace"); - printf("hi\n"); -}