Skip to content

Conversation

@iillyyaa
Copy link
Contributor

This implements the new macro that we discussed in: #830 (comment)

This can be either merged on top of #830 (I'm happy to rebase if that happens) or instead of it.

@RainerKuemmerle
Copy link
Owner

Ah sorry, saw the comment here too late. Would be nice if you can quickly rebase this PR. Thank you.

The new macro takes name as a char literal (or any other
string_view-compatible type), and verifies that no white
space characters are present in the name.
This prevents clang-format from introducing white space
into the type names.
Use G2O_REGISTER_TYPE_NAME throughout g2o code, replacing
the use of the deprecated G2O_REGISTER_TYPE macro.
Remove // clang-format off annotations that were guarding
type declarations.
Apply clang-format to affected sources to wrap long lines
at 80 columns.
@iillyyaa iillyyaa force-pushed the use-string-type-names branch from 804b170 to 18d9a72 Compare August 27, 2024 14:03
@iillyyaa
Copy link
Contributor Author

Ah sorry, saw the comment here too late. Would be nice if you can quickly rebase this PR. Thank you.

no problem, rebased

@RainerKuemmerle RainerKuemmerle merged commit 48129bd into RainerKuemmerle:master Aug 27, 2024
@iillyyaa iillyyaa deleted the use-string-type-names branch September 3, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants