dtolnay/cxx
View on GitHubRaw identifiers in methods in extern "C++" block leads to wrong C++ code generation
Open
#1,324 opened on Mar 11, 2024
help wanted
Repository metrics
- Stars
- (4,472 stars)
- PR merge metrics
- (Avg merge 8m) (3 merged PRs in 30d)
Description
For example
pub fn highlight(r#type: i32);
leads to
void ffi$cxxbridge1$highlight(::std::int32_t r#type) noexcept { ... }
I wish it could be unraw-ed if being a valid C++ identifier. Currently workaround with type_.