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.
1 parent 89e2725 commit c97ac05Copy full SHA for c97ac05
src/parser.rs
@@ -68,13 +68,10 @@ impl<'a> ClangParserCtx<'a> {
68
}
69
70
71
-fn cursor_link_name(ctx: &mut ClangParserCtx, cursor: &Cursor) -> String {
72
- let mut mangling = cursor.mangling();
73
-
+fn cursor_link_name(_: &mut ClangParserCtx, cursor: &Cursor) -> String {
74
// Try to undo backend linkage munging (prepended _, generally)
75
- if cfg!(target_os = "macos") ||
76
- (cfg!(target_os = "windows") && !ctx.options.msvc_mangling)
77
- {
+ let mut mangling = cursor.mangling();
+ if cfg!(target_os = "macos") {
78
mangling.remove(0);
79
80
mangling
0 commit comments