================ @@ -1005,14 +1332,22 @@ class InlayHintVisitor : public RecursiveASTVisitor<InlayHintVisitor> { // The sugared type is more useful in some cases, and the canonical // type in other cases. auto Desugared = maybeDesugar(AST, T); - std::string TypeName = Desugared.getAsString(TypeHintPolicy); - if (T != Desugared && !shouldPrintTypeHint(TypeName)) { + std::vector<InlayHintLabelPart> Chunks; ---------------- HighCommander4 wrote:
suggestion: add a small helper `std::vector<InlayHintLabelPart> buildTypeHint(QualType T, ASTContext& AST, ...);` https://github.com/llvm/llvm-project/pull/86629 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits