We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f967825 + 9eb1f76 commit 63fc240Copy full SHA for 63fc240
src/ir/function.rs
@@ -98,13 +98,16 @@ pub fn cursor_mangling(cursor: &clang::Cursor) -> Option<String> {
98
}
99
100
let mut mangling = cursor.mangling();
101
+ if mangling.is_empty() {
102
+ return None;
103
+ }
104
105
// Try to undo backend linkage munging (prepended _, generally)
106
if cfg!(target_os = "macos") {
107
mangling.remove(0);
108
109
- if mangling.is_empty() { None } else { Some(mangling) }
110
+ Some(mangling)
111
112
113
impl FunctionSig {
0 commit comments