Skip to content

Commit

Permalink
Provide AttributeMacros in .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Nov 25, 2024
1 parent 9aebe10 commit f2242e1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -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
]

0 comments on commit f2242e1

Please sign in to comment.