dtolnay/cxx
Raw identifiers in methods in extern "C++" block leads to wrong C++ code generation
开放
#1,324 创建于 2024年3月11日
help wanted
仓库指标
- 星标
- (4,472 个星标)
- PR 合并指标
- (平均合并 8分钟) (30 天内合并 3 个 PR)
描述
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_.