Skip to content

Fix name clash between anon enums across TU#171

Merged
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:name-clash
Jun 3, 2026
Merged

Fix name clash between anon enums across TU#171
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:name-clash

Conversation

@lucic71
Copy link
Copy Markdown
Contributor

@lucic71 lucic71 commented Jun 3, 2026

return std::format("anon_enum_{}", GetLineNumber(enum_decl)); results in name clashes between enums declared in different files at the same line, I replaced that with return GetNamedDeclAsString(enum_decl);

@nunoplopes nunoplopes merged commit e35f62a into Cpp2Rust:master Jun 3, 2026
9 checks passed
lucic71 added a commit to lucic71/cpp2rust that referenced this pull request Jun 4, 2026
`return std::format("anon_enum_{}", GetLineNumber(enum_decl));` results
in name clashes between enums declared in different files at the same
line, I replaced that with `return GetNamedDeclAsString(enum_decl);`
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