-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement AbslStringify for the Descriptor family of types.
Implementing this method allows descriptors to be used in contexts that support ABSL's formatting, most notably gunit's PrintToString and absl's StrFormat. The implementations are done on the concrete descriptor type, which appears to be more idiomatic for AbslStringify. Implementing them on pointers-to-descriptors would be nicer for users who typically interact with pointers, but that would conflict with AbslStringify's built-in support for pointers. The implementation simply forwards to DebugString for simplicity. PiperOrigin-RevId: 558854354
- Loading branch information
1 parent
a2b3470
commit 230232a
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters