================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits