Skip to content

Refactor custom printer extension points.#1978

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
cl/864980702
Open

Refactor custom printer extension points.#1978
copybara-service[bot] wants to merge 1 commit intomainfrom
cl/864980702

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Feb 3, 2026

Refactor custom printer extension points.

The source code printing extension point FuzzTestPrintSourceCode is changed to
be consistent with AbslStringify. The custom printer auto-detection is
simplified: a type is considered to have a custom printer if it has either
AbslStringify or FuzzTestPrintSourceCode (or both). AbslStringify is used
for human-readable mode, and FuzzTestPrintSourceCode is used for the
source-code mode. Either is a fallback if the other extension point is missing.

The source code printing extension point `FuzzTestPrintSourceCode` is changed to
be consistent with `AbslStringify`. The custom printer auto-detection is
simplified: a type is considered to have a custom printer if it has either
`AbslStringify` or `FuzzTestPrintSourceCode` (or both). `AbslStringify` is used
for human-readable mode, and `FuzzTestPrintSourceCode` is used for the
source-code mode. Either is a fallback if the other extension point is missing.
PiperOrigin-RevId: 864980702
@copybara-service copybara-service bot changed the title Refactor custom printer extension point to use a single function. Refactor custom printer extension points. Feb 5, 2026
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