From 3831320e39b1968f52d3f23d4bc7f73b51e8a6b8 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Mon, 25 Mar 2019 18:39:06 +0100
Subject: [PATCH] [Style] fix header guards

run-clang-tidy-6.0.py -header-filter='.*' -checks='llvm-header-guard' -fix
---
 CMakeLists.txt                                         | 2 +-
 include/hpp/centroidal-dynamics/Stdafx.hh              | 5 +++++
 include/hpp/centroidal-dynamics/centroidal_dynamics.hh | 4 ++--
 include/hpp/centroidal-dynamics/local_config.hh        | 6 +++---
 include/hpp/centroidal-dynamics/logger.hh              | 6 +++---
 include/hpp/centroidal-dynamics/solver_LP_abstract.hh  | 6 +++---
 include/hpp/centroidal-dynamics/solver_LP_qpoases.hh   | 6 +++---
 include/hpp/centroidal-dynamics/stop-watch.hh          | 4 ++--
 include/hpp/centroidal-dynamics/util.hh                | 6 +++---
 src/CMakeLists.txt                                     | 2 +-
 src/util.cpp                                           | 5 -----
 11 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b8d193..ec48fac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,7 +40,7 @@ FIND_PACKAGE(CLP)
 
 IF(CLP_FOUND)
     ADD_DEFINITIONS(-DCLP_FOUND)
-    INCLUDE_DIRECTORIES("${CLP_INCLUDE_DIR}")
+    INCLUDE_DIRECTORIES(SYSTEM "${CLP_INCLUDE_DIR}")
 ENDIF()
 
 INCLUDE_DIRECTORIES(SYSTEM ${qpOASES_INCLUDE_DIRS})
diff --git a/include/hpp/centroidal-dynamics/Stdafx.hh b/include/hpp/centroidal-dynamics/Stdafx.hh
index 8e7b109..f9716e9 100644
--- a/include/hpp/centroidal-dynamics/Stdafx.hh
+++ b/include/hpp/centroidal-dynamics/Stdafx.hh
@@ -1,3 +1,6 @@
+#ifndef HPP_CENTROIDAL_DYNAMICS_STDAFX_HH
+#define HPP_CENTROIDAL_DYNAMICS_STDAFX_HH
+
 /*
 Copyright (c) 2010-2013 Tommaso Urli
 
@@ -30,3 +33,5 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #include <map>
 #include <ctime>
 #include <sstream>
+
+#endif
diff --git a/include/hpp/centroidal-dynamics/centroidal_dynamics.hh b/include/hpp/centroidal-dynamics/centroidal_dynamics.hh
index c73add3..6cbdb5f 100644
--- a/include/hpp/centroidal-dynamics/centroidal_dynamics.hh
+++ b/include/hpp/centroidal-dynamics/centroidal_dynamics.hh
@@ -3,8 +3,8 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef CENTROIDAL_DYNAMICS_LIB_STATIC_EQUILIBRIUM_H
-#define CENTROIDAL_DYNAMICS_LIB_STATIC_EQUILIBRIUM_H
+#ifndef HPP_CENTROIDAL_DYNAMICS_CENTROIDAL_DYNAMICS_HH
+#define HPP_CENTROIDAL_DYNAMICS_CENTROIDAL_DYNAMICS_HH
 
 #include <Eigen/Dense>
 #include <hpp/centroidal-dynamics/local_config.hh>
diff --git a/include/hpp/centroidal-dynamics/local_config.hh b/include/hpp/centroidal-dynamics/local_config.hh
index 48033a0..8cb7192 100644
--- a/include/hpp/centroidal-dynamics/local_config.hh
+++ b/include/hpp/centroidal-dynamics/local_config.hh
@@ -3,8 +3,8 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
-#define _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
+#ifndef HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
+#define HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
 
 // Package version (header).
 #define CENTROIDAL_DYNAMICS_VERSION "UNKNOWN"
@@ -54,4 +54,4 @@
 #define CENTROIDAL_DYNAMICS_LOCAL CENTROIDAL_DYNAMICS_DLLLOCAL
 #endif  // CENTROIDAL_DYNAMICS_STATIC
 
-#endif  //_CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
+#endif  // HPP_CENTROIDAL_DYNAMICS_LOCAL_CONFIG_HH
diff --git a/include/hpp/centroidal-dynamics/logger.hh b/include/hpp/centroidal-dynamics/logger.hh
index fc6d949..84c85b2 100644
--- a/include/hpp/centroidal-dynamics/logger.hh
+++ b/include/hpp/centroidal-dynamics/logger.hh
@@ -3,8 +3,8 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef __centroidal_dynamics_lib_logger_H__
-#define __centroidal_dynamics_lib_logger_H__
+#ifndef HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
+#define HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
 
 /* --------------------------------------------------------------------- */
 /* --- INCLUDE --------------------------------------------------------- */
@@ -172,4 +172,4 @@ Logger& getLogger();
 
 }  // namespace centroidal_dynamics
 
-#endif  // #ifndef __sot_torque_control_trajectory_generators_H__
+#endif  // HPP_CENTROIDAL_DYNAMICS_LOGGER_HH
diff --git a/include/hpp/centroidal-dynamics/solver_LP_abstract.hh b/include/hpp/centroidal-dynamics/solver_LP_abstract.hh
index a2c44ca..11b1f49 100644
--- a/include/hpp/centroidal-dynamics/solver_LP_abstract.hh
+++ b/include/hpp/centroidal-dynamics/solver_LP_abstract.hh
@@ -3,8 +3,8 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH
-#define CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH
+#ifndef HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
+#define HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
 
 #include <Eigen/Dense>
 #include <hpp/centroidal-dynamics/local_config.hh>
@@ -136,4 +136,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_abstract {
 
 }  // end namespace centroidal_dynamics
 
-#endif  // CENTROIDAL_DYNAMICS_LIB_SOLVER_LP_ABSTRACT_HH
+#endif  // HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_ABSTRACT_HH
diff --git a/include/hpp/centroidal-dynamics/solver_LP_qpoases.hh b/include/hpp/centroidal-dynamics/solver_LP_qpoases.hh
index 2342967..67284f1 100644
--- a/include/hpp/centroidal-dynamics/solver_LP_qpoases.hh
+++ b/include/hpp/centroidal-dynamics/solver_LP_qpoases.hh
@@ -3,8 +3,8 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH
-#define CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH
+#ifndef HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
+#define HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
 
 #include <hpp/centroidal-dynamics/local_config.hh>
 #include <hpp/centroidal-dynamics/util.hh>
@@ -44,4 +44,4 @@ class CENTROIDAL_DYNAMICS_DLLAPI Solver_LP_qpoases : public Solver_LP_abstract {
 
 }  // end namespace centroidal_dynamics
 
-#endif  // CENTROIDAL_DYNAMICS_LIB_SOLVER_QPOASES_HH
+#endif  // HPP_CENTROIDAL_DYNAMICS_SOLVER_LP_QPOASES_HH
diff --git a/include/hpp/centroidal-dynamics/stop-watch.hh b/include/hpp/centroidal-dynamics/stop-watch.hh
index e38c7cf..354e430 100644
--- a/include/hpp/centroidal-dynamics/stop-watch.hh
+++ b/include/hpp/centroidal-dynamics/stop-watch.hh
@@ -24,8 +24,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 */
 
-#ifndef WBR_STOPWATCH_H
-#define WBR_STOPWATCH_H
+#ifndef HPP_CENTROIDAL_DYNAMICS_STOP_WATCH_HH
+#define HPP_CENTROIDAL_DYNAMICS_STOP_WATCH_HH
 
 #include "hpp/centroidal-dynamics/Stdafx.hh"
 
diff --git a/include/hpp/centroidal-dynamics/util.hh b/include/hpp/centroidal-dynamics/util.hh
index b4d130b..93d44b4 100644
--- a/include/hpp/centroidal-dynamics/util.hh
+++ b/include/hpp/centroidal-dynamics/util.hh
@@ -2,8 +2,8 @@
  * Copyright 2015, LAAS-CNRS
  * Author: Andrea Del Prete
  */
-#ifndef _CENTROIDAL_DYNAMICS_LIB_UTIL_HH
-#define _CENTROIDAL_DYNAMICS_LIB_UTIL_HH
+#ifndef HPP_CENTROIDAL_DYNAMICS_UTIL_HH
+#define HPP_CENTROIDAL_DYNAMICS_UTIL_HH
 
 #include <iostream>
 #include <fstream>
@@ -180,4 +180,4 @@ void nchoosek(const Eigen::MatrixBase<DerivedV>& V, const int k, Eigen::PlainObj
 }
 }  // namespace centroidal_dynamics
 
-#endif  //_CENTROIDAL_DYNAMICS_LIB_UTIL_HH
+#endif  // HPP_CENTROIDAL_DYNAMICS_UTIL_HH
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2c7df02..01fef17 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,7 @@ SET(${LIBRARY_NAME}_SOURCES
 ADD_LIBRARY(${LIBRARY_NAME} SHARED ${${LIBRARY_NAME}_SOURCES})
 
 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)
 
 IF(CLP_FOUND)
diff --git a/src/util.cpp b/src/util.cpp
index 08ebb0e..aefeded 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -3,9 +3,6 @@
  * Author: Andrea Del Prete
  */
 
-#ifndef _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
-#define _CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
-
 #include <ctime>
 #include <hpp/centroidal-dynamics/util.hh>
 
@@ -189,5 +186,3 @@ value_type nchoosek(const int n, const int k) {
 }
 
 }  // namespace centroidal_dynamics
-
-#endif  //_CENTROIDAL_DYNAMICS_LIB_CONFIG_HH
-- 
GitLab