================ @@ -721,10 +722,21 @@ std::string PredefinedExpr::ComputeName(PredefinedIdentKind IK, return std::string(Out.str()); } if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurrentDecl)) { - if (IK != PredefinedIdentKind::PrettyFunction && + const auto &LO = Context.getLangOpts(); + bool isFuncOrFunctionInNonMSVCCompatEnv = + ((IK == PredefinedIdentKind::Func || + IK == PredefinedIdentKind ::Function) && + !LO.MSVCCompat); + bool isLFunctionInMSVCCommpatEnv = + IK == PredefinedIdentKind::LFunction && LO.MSVCCompat; + bool isFuncOrFunctionOrLFunctionOrFuncDName = ---------------- AaronBallman wrote:
```suggestion bool IsFuncOrFunctionInNonMSVCCompatEnv = ((IK == PredefinedIdentKind::Func || IK == PredefinedIdentKind ::Function) && !LO.MSVCCompat); bool IsLFunctionInMSVCCommpatEnv = IK == PredefinedIdentKind::LFunction && LO.MSVCCompat; bool IsFuncOrFunctionOrLFunctionOrFuncDName = ``` Coding style nits, NFC https://github.com/llvm/llvm-project/pull/84014 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits