steakhal wrote:

For example the following code would get different USRs in C and C++:
```c++
static int f1(int* x);
// USR in C:   c:input.cc@F@f1
// USR in C++: c:input.cc@F@f1#*I#
```

So by having this patch, it would be possible to generate the C++ USR even if 
the AST (thus the ASTContext) was produced for a C compiler invocation.

https://github.com/llvm/llvm-project/pull/109574
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to