[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 06:19:27 PST 2024
================
@@ -897,7 +897,8 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
D->getBody()->printPrettyControlled(Out, nullptr, SubPolicy, Indentation, "\n",
&Context);
} else {
- if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))
+ if (Policy.ForcePrintingAsElaboratedType ||
----------------
AaronBallman wrote:
What does forcefully printing an elaborate type have to do with printing out `{}`?
https://github.com/llvm/llvm-project/pull/67592
More information about the cfe-commits
mailing list