rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.24k stars 49 forks source link

Detecting and removing name prefixes #25

Open Riateche opened 8 years ago

Riateche commented 8 years ago

Qt only have "Q" prefix, but other libraries or parts of libraries may have different prefixes. Rust's crate and module system makes prefixes useless, so we should remove them whenever possible. We should detect common prefixes in classes, functions and/or submodules within each generated module and remove them.