[clang] Apply -fmacro-prefix-map to anonymous tags in template arguments
authorDan McGregor <dan.mcgregor@usask.ca>
Fri, 16 Jun 2023 15:47:00 +0000 (08:47 -0700)
committerFangrui Song <i@maskray.me>
Fri, 16 Jun 2023 15:47:00 +0000 (08:47 -0700)
commit30ffb3e4fbce3132fbf63c62a8ecbb1edbec4fc9
tree8e2720a3ed301c12d8f71efb2408707614928441
parentdf06594a8ccb8afec581442c1ea2508813e98210
[clang] Apply -fmacro-prefix-map to anonymous tags in template arguments

When expanding template arguments for pretty function printing,
such as for __PRETTY_FUNCTION__, make TypePrinter apply
macro-prefix-map remapping to anonymous tags such as lambdas.

Fixes https://github.com/llvm/llvm-project/issues/63219

Reviewed By: MaskRay, aaron.ballman

Differential Revision: https://reviews.llvm.org/D152570
clang/docs/ReleaseNotes.rst
clang/lib/AST/Expr.cpp
clang/test/CodeGenCXX/macro-prefix-map-lambda.cpp [new file with mode: 0644]