From f2242e1b09e60d023013fc6b7f04c14f3501064f Mon Sep 17 00:00:00 2001 From: Rainer Kuemmerle Date: Mon, 25 Nov 2024 20:25:41 +0100 Subject: [PATCH] Provide AttributeMacros in .clang-format --- .clang-format | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.clang-format b/.clang-format index 5650f22c0..886526dec 100644 --- a/.clang-format +++ b/.clang-format @@ -1,2 +1,16 @@ BasedOnStyle: Google DerivePointerAlignment: false + +# Starting from clang-format v19 we need to specify those +AttributeMacros: [ + G2O_CSPARSE_EXTENSION_API, G2O_SOLVER_CSPARSE_API, + G2O_STUFF_API, G2O_CORE_API, + G2O_TYPES_DATA_API, + G2O_TYPES_SLAM2D_API, G2O_TYPES_SLAM2D_ADDONS_API, + G2O_TYPES_SLAM3D_API, G2O_TYPES_SLAM3D_ADDONS_API, + G2O_TYPES_ICP_API, G2O_TYPES_SBA_API, + G2O_TYPES_SIM3_API, G2O_TYPES_SCLAM2D_API, + G2O_SLAM2D_LINEAR_API, + G2O_SIMULATOR_API + G2O_CLI_API, G2O_VIEWER_API +]