dtolnay/cxx

Raw identifiers in methods in extern "C++" block leads to wrong C++ code generation

Open

#1,324 opened on 2024年3月11日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Rust (4,472 stars) (253 forks)batch import
help wanted

説明

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_.

コントリビューターガイド

Raw identifiers in methods in extern "C++" block leads to wrong C++ code generation · dtolnay/cxx#1324 | Good First Issue