From 245720f64f125a2ba8be35bf000ac590b0967c7d Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Sat, 2 Mar 2019 11:41:51 +0100
Subject: [PATCH] Add parenthesis around macro.

clang-tidy bugprone-macro-parentheses check.
---
 BaseLib/Error.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/BaseLib/Error.h b/BaseLib/Error.h
index e563d4b9017..f464b25cbc1 100644
--- a/BaseLib/Error.h
+++ b/BaseLib/Error.h
@@ -56,9 +56,9 @@ template <typename Msg>
 
 #define OGS_STR(x) #x
 #define OGS_STRINGIFY(x) OGS_STR(x)
-#define OGS_LOCATION                              \
-    " at " + BaseLib::extractBaseName(__FILE__) + \
-        ", line " OGS_STRINGIFY(__LINE__)
+#define OGS_LOCATION                               \
+    (" at " + BaseLib::extractBaseName(__FILE__) + \
+     ", line " OGS_STRINGIFY(__LINE__))
 
 #define OGS_FATAL(fmt, ...)                                           \
     BaseLib::detail::error_impl(BaseLib::format(fmt, ##__VA_ARGS__) + \
-- 
GitLab