Skip to content
Snippets Groups Projects
Unverified Commit f7844383 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #93 from nim65s/devel

linters: fix clang-check-12
parents c5ddeca6 ca1b2fc5
No related branches found
No related tags found
No related merge requests found
Pipeline #16155 passed
_build* _build*
*~ .~
\ No newline at end of file compile_commands.json
...@@ -7,15 +7,13 @@ ...@@ -7,15 +7,13 @@
#ifndef DYNAMIC_GRAPH_EIGEN_IO_H #ifndef DYNAMIC_GRAPH_EIGEN_IO_H
#define DYNAMIC_GRAPH_EIGEN_IO_H #define DYNAMIC_GRAPH_EIGEN_IO_H
#include <boost/format.hpp>
#include <boost/numeric/conversion/cast.hpp>
#pragma GCC diagnostic push
#pragma GCC system_header
#include <Eigen/Geometry>
#pragma GCC diagnostic pop
#include <dynamic-graph/exception-signal.h> #include <dynamic-graph/exception-signal.h>
#include <dynamic-graph/linear-algebra.h> #include <dynamic-graph/linear-algebra.h>
#include <Eigen/Geometry>
#include <boost/format.hpp>
#include <boost/numeric/conversion/cast.hpp>
using dynamicgraph::ExceptionSignal; using dynamicgraph::ExceptionSignal;
// TODO: Eigen 3.3 onwards has a global Eigen::Index definition. // TODO: Eigen 3.3 onwards has a global Eigen::Index definition.
......
...@@ -6,11 +6,8 @@ ...@@ -6,11 +6,8 @@
#ifndef DYNAMIC_GRAPH_LINEAR_ALGEBRA_H #ifndef DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
#define DYNAMIC_GRAPH_LINEAR_ALGEBRA_H #define DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
#pragma GCC diagnostic push
#pragma GCC system_header
#include <Eigen/Core> #include <Eigen/Core>
#include <Eigen/Geometry> #include <Eigen/Geometry>
#pragma GCC diagnostic pop
namespace dynamicgraph { namespace dynamicgraph {
typedef Eigen::MatrixXd Matrix; typedef Eigen::MatrixXd Matrix;
......
// Copyright 2010 Thomas Moulard.
//
#include <dynamic-graph/exception-factory.h>
#include <dynamic-graph/interpreter.h>
#include <dynamic-graph/plugin-loader.h>
#include <sstream>
#define BOOST_TEST_MODULE tracer
#if BOOST_VERSION >= 105900
#include <boost/test/tools/output_test_stream.hpp>
#else
#include <boost/test/output_test_stream.hpp>
#endif
#include <boost/test/unit_test.hpp>
#include "interpreter.h"
using boost::test_tools::output_test_stream;
// Check that plug-in loading/unloading is working.
BOOST_AUTO_TEST_CASE(cmd_tracer) {
dynamicgraph::PluginLoader pl;
// Push paths.
{
RUN_COMMAND("pushImportPaths", TESTS_DATADIR);
BOOST_CHECK(output.is_empty());
}
{
RUN_COMMAND("pushImportPaths", TESTS_PLUGINDIR);
BOOST_CHECK(output.is_empty());
}
// Import tracer.dg
{
RUN_COMMAND("import", "interpreter-tracer.dg");
BOOST_CHECK(output.is_empty());
}
}
#pragma GCC diagnostic push
#pragma GCC system_header
#include <Eigen/Dense> #include <Eigen/Dense>
#pragma GCC diagnostic pop
...@@ -317,6 +317,6 @@ BOOST_AUTO_TEST_CASE(set_signal_string) { ...@@ -317,6 +317,6 @@ BOOST_AUTO_TEST_CASE(set_signal_string) {
s.set(value); s.set(value);
} catch (const std::exception &exc) { } catch (const std::exception &exc) {
std::cout << exc.what() << std::endl; std::cout << exc.what() << std::endl;
BOOST_CHECK(!"Tentative to set signal to empty string"); BOOST_CHECK(!(bool)("Tentative to set signal to empty string"));
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment