[all-commits] [llvm/llvm-project] dd8135: Suppress printing lambda body for constexpr diagno...
Sherman Pay via All-commits
all-commits at lists.llvm.org
Thu Apr 16 14:09:22 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd81356eacdd78d6781772e4ca5a25482a347b68
https://github.com/llvm/llvm-project/commit/dd81356eacdd78d6781772e4ca5a25482a347b68
Author: Sherman Pay <shermanpay1991 at gmail.com>
Date: 2026-04-16 (Thu, 16 Apr 2026)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/PrettyPrinter.h
M clang/lib/AST/ByteCode/InterpFrame.cpp
M clang/lib/AST/ExprConstant.cpp
M clang/lib/AST/StmtPrinter.cpp
M clang/test/AST/ast-printer-lambda.cpp
A clang/test/AST/constexpr-lambda-diagnostic.cpp
Log Message:
-----------
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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list