[clang] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 10:03:49 PST 2024
================
@@ -1635,6 +1635,15 @@ void TypePrinter::printElaboratedBefore(const ElaboratedType *T,
if (T->getKeyword() != ElaboratedTypeKeyword::None)
OS << " ";
NestedNameSpecifier *Qualifier = T->getQualifier();
+ if (Policy.SuppressTagKeyword && Policy.SuppressScope) {
+ std::string prefix = T->isClassType() ? "class "
+ : T->isStructureType() ? "struct "
+ : T->isUnionType() ? "union "
+ : "";
----------------
AaronBallman wrote:
Hmmm this still seems wrong to me. When `SuppressTagKeyword` is true, tags (`struct`, `union`, etc) should not be printed.
https://github.com/llvm/llvm-project/pull/67592
More information about the cfe-commits
mailing list