From 61d88ecefaa4ef8acc8f034a362dc97f42c692f7 Mon Sep 17 00:00:00 2001 From: Sebastian Eibl <sebastian.eibl@fau.de> Date: Wed, 18 Sep 2019 14:00:57 +0200 Subject: [PATCH] [CLANG-TIDY] readability-redundant-preprocessor --- .clang-tidy | 1 + src/core/load_balancing/MetisWrapper.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index ffa632653..21a6a936b 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -42,6 +42,7 @@ readability-misplaced-array-index, readability-redundant-control-flow, readability-redundant-declaration, readability-redundant-function-ptr-dereference, +readability-redundant-preprocessor, readability-redundant-smartptr-get, readability-redundant-string-cstr, readability-simplify-subscript-expr, diff --git a/src/core/load_balancing/MetisWrapper.cpp b/src/core/load_balancing/MetisWrapper.cpp index a3d89aaec..6ea1bded2 100644 --- a/src/core/load_balancing/MetisWrapper.cpp +++ b/src/core/load_balancing/MetisWrapper.cpp @@ -54,9 +54,7 @@ # endif #endif -#ifdef WALBERLA_BUILD_WITH_METIS -# include "metis.h" -#endif +#include "metis.h" #ifdef _MSC_VER # pragma pop_macro( "INT64_MAX" ) @@ -185,4 +183,4 @@ const int METIS_OPTION_UBVEC = 0; } // namespace core -} // namespace walberla \ No newline at end of file +} // namespace walberla -- GitLab