Files
clang-p2996/clang/lib/Index/USRGeneration.cpp
Krystian Stasiowski 71b9f66482 [clang][Index] Use canonical function parameter types in USRs (#68222)
This is necessary to ensure that functions declared in different
translation units whose parameter types only differ in top-level
cv-qualification generate the same USR.

For example:
```
// A.cpp
void f(const int x); // c:@F@f#1I#

// B.cpp
void f(int x);       // c:@F@f#I#
``` 
With this patch, the USR for both functions will be
`c:@F@f#I#`.
2024-04-16 07:34:27 -04:00

40 KiB