Skip to content

Fix C++ auto-increment macro symbol collisions - #5836

Draft
JasonAtClockwork wants to merge 2 commits into
masterfrom
jlarabie/cpp-name-collision
Draft

Fix C++ auto-increment macro symbol collisions#5836
JasonAtClockwork wants to merge 2 commits into
masterfrom
jlarabie/cpp-name-collision

Conversation

@JasonAtClockwork

Copy link
Copy Markdown
Contributor

Description of Changes

Closes: #5772

The original design for C++ auto-increment field macros used LINE to generate symbols. This caused collisions if two table definitions were in separate files with an auto-increment field on the same line number.

  • Updated macros to use table and field names
  • Added small compile regression for CI

API and ABI breaking changes

No breaking changes.

Expected complexity level and risk

2 - Small macro changes and small compile test

Testing

  • Used throwaway project to test before and after
  • New compile test passes
  • module-test-cpp builds correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix C++ field macro name collisions across files

2 participants