hazohelet added a comment. `FunctionDecll::getNameForDiagnostic` yields almost the same result and I should use it here. This function internal avoids printing template args that match the defaults, but it doesn't seem to have other techniques to reduce the size of printing. Link: https://github.com/llvm/llvm-project/blob/03125e6894f82f9aa6f4e8d8036d0c833dd7d761/clang/lib/AST/TypePrinter.cpp#L2163-L2229
BTW, Line2171-2173 in the link seems to be dead code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D154366/new/ https://reviews.llvm.org/D154366 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits