Commit 3831320e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Style] fix header guards

run-clang-tidy-6.0.py -header-filter='.*' -checks='llvm-header-guard' -fix
parent 7b48dfd7
Pipeline #4229 passed with stage
in 16 minutes
...@@ -40,7 +40,7 @@ FIND_PACKAGE(CLP) ...@@ -40,7 +40,7 @@ FIND_PACKAGE(CLP)
IF(CLP_FOUND) IF(CLP_FOUND)
ADD_DEFINITIONS(-DCLP_FOUND) ADD_DEFINITIONS(-DCLP_FOUND)
INCLUDE_DIRECTORIES("${CLP_INCLUDE_DIR}") INCLUDE_DIRECTORIES(SYSTEM "${CLP_INCLUDE_DIR}")
ENDIF() ENDIF()
INCLUDE_DIRECTORIES(SYSTEM ${qpOASES_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(SYSTEM ${qpOASES_INCLUDE_DIRS})
......
#ifndef HPP_CENTROIDAL_DYNAMICS_STDAFX_HH
#define HPP_CENTROIDAL_DYNAMICS_STDAFX_HH
/* /*
Copyright (c) 2010-2013 Tommaso Urli Copyright (c) 2010-2013 Tommaso Urli
...@@ -30,3 +33,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ...@@ -30,3 +33,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <map> #include <map>
#include <ctime> #include <ctime>
#include <sstream> #include <sstream>
#endif
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef CENTROIDAL_DYNAMICS_LIB_STATIC_EQUILIBRIUM_H #ifndef HPP_CENTROIDAL_DYNAMICS_CENTROIDAL_DYNAMICS_HH
#define CENTROIDAL_DYNAMICS_LIB_STATIC_EQUILIBRIUM_H #define HPP_CENTROIDAL_DYNAMICS_CENTROIDAL_DYNAMICS_HH
#include <Eigen/Dense> #include <Eigen/Dense>
#include <hpp/centroidal-dynamics/local_config.hh> #include <hpp/centroidal-dynamics/local_config.hh>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH #ifndef HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
#define _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH #define HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
// Package version (header). // Package version (header).
#define CENTROIDAL_DYNAMICS_VERSION "UNKNOWN" #define CENTROIDAL_DYNAMICS_VERSION "UNKNOWN"
...@@ -54,4 +54,4 @@ ...@@ -54,4 +54,4 @@
#define CENTROIDAL_DYNAMICS_LOCAL CENTROIDAL_DYNAMICS_DLLLOCAL #define CENTROIDAL_DYNAMICS_LOCAL CENTROIDAL_DYNAMICS_DLLLOCAL
#endif // CENTROIDAL_DYNAMICS_STATIC #endif // CENTROIDAL_DYNAMICS_STATIC
#endif //_CENTROIDAL_DYNAMICS_LIB_CONFIG_HH #endif // HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef __centroidal_dynamics_lib_logger_H__ #ifndef HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
#define __centroidal_dynamics_lib_logger_H__ #define HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
/* --- INCLUDE --------------------------------------------------------- */ /* --- INCLUDE --------------------------------------------------------- */
...@@ -172,4 +172,4 @@ Logger& getLogger(); ...@@ -172,4 +172,4 @@ Logger& getLogger();
} // namespace centroidal_dynamics } // namespace centroidal_dynamics
#endif // #ifndef __sot_torque_control_trajectory_generators_H__ #endif // HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH #ifndef HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
#define CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH #define HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
#include <Eigen/Dense> #include <Eigen/Dense>
#include <hpp/centroidal-dynamics/local_config.hh> #include <hpp/centroidal-dynamics/local_config.hh>
...@@ -136,4 +136,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_abstract { ...@@ -136,4 +136,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_abstract {
} // end namespace centroidal_dynamics } // end namespace centroidal_dynamics
#endif // CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH #endif // HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH #ifndef HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
#define CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH #define HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
#include <hpp/centroidal-dynamics/local_config.hh> #include <hpp/centroidal-dynamics/local_config.hh>
#include <hpp/centroidal-dynamics/util.hh> #include <hpp/centroidal-dynamics/util.hh>
...@@ -44,4 +44,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_qpoases : public Solver_LP_abstract { ...@@ -44,4 +44,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_qpoases : public Solver_LP_abstract {
} // end namespace centroidal_dynamics } // end namespace centroidal_dynamics
#endif // CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH #endif // HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
...@@ -24,8 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ...@@ -24,8 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifndef WBR_STOPWATCH_H #ifndef HPP_CENTROIDAL_DYNAMICS_STOP_WATCH_HH
#define WBR_STOPWATCH_H #define HPP_CENTROIDAL_DYNAMICS_STOP_WATCH_HH
#include "hpp/centroidal-dynamics/Stdafx.hh" #include "hpp/centroidal-dynamics/Stdafx.hh"
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* Copyright 2015, LAAS-CNRS * Copyright 2015, LAAS-CNRS
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef _CENTROIDAL_DYNAMICS_LIB_UTIL_HH #ifndef HPP_CENTROIDAL_DYNAMICS_UTIL_HH
#define _CENTROIDAL_DYNAMICS_LIB_UTIL_HH #define HPP_CENTROIDAL_DYNAMICS_UTIL_HH
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>
...@@ -180,4 +180,4 @@ void nchoosek(const Eigen::MatrixBase<DerivedV>& V, const int k, Eigen::PlainObj ...@@ -180,4 +180,4 @@ void nchoosek(const Eigen::MatrixBase<DerivedV>& V, const int k, Eigen::PlainObj
} }
} // namespace centroidal_dynamics } // namespace centroidal_dynamics
#endif //_CENTROIDAL_DYNAMICS_LIB_UTIL_HH #endif // HPP_CENTROIDAL_DYNAMICS_UTIL_HH
...@@ -13,7 +13,7 @@ SET(${LIBRARY_NAME}_SOURCES ...@@ -13,7 +13,7 @@ SET(${LIBRARY_NAME}_SOURCES
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${LIBRARY_NAME}_SOURCES}) ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${LIBRARY_NAME}_SOURCES})
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CDD_LIBRARIES} ${qpOASES_LIBRARY}) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CDD_LIBRARIES} ${qpOASES_LIBRARY})
TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} PUBLIC ${CDD_INCLUDE_DIRS}) TARGET_INCLUDE_DIRECTORIES(${LIBRARY_NAME} SYSTEM PUBLIC ${CDD_INCLUDE_DIRS})
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} eigen3) PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} eigen3)
IF(CLP_FOUND) IF(CLP_FOUND)
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
* Author: Andrea Del Prete * Author: Andrea Del Prete
*/ */
#ifndef _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
#define _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
#include <ctime> #include <ctime>
#include <hpp/centroidal-dynamics/util.hh> #include <hpp/centroidal-dynamics/util.hh>
...@@ -189,5 +186,3 @@ value_type nchoosek(const int n, const int k) { ...@@ -189,5 +186,3 @@ value_type nchoosek(const int n, const int k) {
} }
} // namespace centroidal_dynamics } // namespace centroidal_dynamics
#endif //_CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment