diff --git a/.clang-format b/.clang-format index 5650f22c0..cbe144103 100644 --- a/.clang-format +++ b/.clang-format @@ -1,2 +1,15 @@ 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_SIMULATOR_API + G2O_CLI_API, G2O_VIEWER_API +]