Files
llvm-project/clang/lib/AST/ByteCode/InterpFrame.cpp
Sherman Pay dd81356eac Suppress printing lambda body for constexpr diagnostics (#185800)
closes #125914

Introduce `SupressLambdaBody` `PrintingPolicy` that is used only for
constexpr diagnostics. This ensures `--print-ast` still works the same.
I also considered other approaches such as modifying the
`PrintingPolicy` in the current `AstContext`, but that might cause
unexpected changes.

Add two tests:
1. To ast-printer-lambda to ensure `--print-ast` works the same.
2. Ensure lambda body is not printed for constexpr diagnostics.
2026-04-16 21:08:59 +00:00

9.9 KiB