Skip to content

Conversation

@copybara-service
Copy link

Export USRs as a unique_name field for C++ declarations.

This gives us a good key we can aggregate on, including for overloaded functions. Just the name is not sufficient, as e.g. functions can have the same name as types, and even the same name as other functions (other overloads).

Also, as a bonus, the USR is also used by Kythe AIUI, so if we wanted to join with Kythe data we could join on the truncated SHA1 hash of the unique_name.

This gives us a good key we can aggregate on, including for overloaded functions. Just the name is not sufficient, as e.g. functions can have the same name as types, and even the same name as other functions (other overloads).

Also, as a bonus, the USR is also used by Kythe AIUI, so if we wanted to join with Kythe data we could join on the truncated SHA1 hash of the unique_name.

PiperOrigin-RevId: 855469014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant