Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide AttributeMacros in .clang-format #848

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
]
8 changes: 4 additions & 4 deletions g2o/core/hyper_graph_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ class G2O_CORE_API HyperGraphActionLibrary {
/**
* apply an action to all the elements of the graph.
*/
void G2O_CORE_API
applyAction(HyperGraph* graph, HyperGraphElementAction* action,
HyperGraphElementAction::Parameters* parameters = 0,
const std::string& typeName = "");
void G2O_CORE_API applyAction(
HyperGraph* graph, HyperGraphElementAction* action,
HyperGraphElementAction::Parameters* parameters = 0,
const std::string& typeName = "");

/**
* brief write into gnuplot
Expand Down
Loading