Files
clang-p2996/lldb/test/API/lang/c/non-mangled/main.c
Dave Lee 5a02a9a2e6 [lldb] Improve identification of Dlang mangled names (#93881)
Reduce false positive identification of C names as Dlang mangled names. This happens 
when a C function uses the prefix `_D`.

The [Dlang ABI](https://dlang.org/spec/abi.html#name_mangling) shows that mangled names 
have a length immediately following the `_D` prefix. This change checks for a digit 
after the `_D` prefix, when identifying the mangling scheme of a symbol. This doesn't 
prevent false positives entirely, but does make it less likely.
2024-05-31 11:20:23 -07:00

9 lines
85 B
C

#include <stdio.h>
void _Dfunction() {}
int main() {
_Dfunction();
return 0;
}