Skip to content
Snippets Groups Projects
Commit ca1b2fc5 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

linters: fix clang-check-12

parent c5ddeca6
No related branches found
No related tags found
No related merge requests found
Pipeline #16049 passed
_build*
*~
\ No newline at end of file
.~
compile_commands.json
......@@ -7,15 +7,13 @@
#ifndef 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/linear-algebra.h>
#include <Eigen/Geometry>
#include <boost/format.hpp>
#include <boost/numeric/conversion/cast.hpp>
using dynamicgraph::ExceptionSignal;
// TODO: Eigen 3.3 onwards has a global Eigen::Index definition.
......
......@@ -6,11 +6,8 @@
#ifndef DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
#define DYNAMIC_GRAPH_LINEAR_ALGEBRA_H
#pragma GCC diagnostic push
#pragma GCC system_header
#include <Eigen/Core>
#include <Eigen/Geometry>
#pragma GCC diagnostic pop
namespace dynamicgraph {
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>
#pragma GCC diagnostic pop
......@@ -317,6 +317,6 @@ BOOST_AUTO_TEST_CASE(set_signal_string) {
s.set(value);
} catch (const std::exception &exc) {
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