[clang] [clang-cl] Fix for __FUNCTION__ in c++. (PR #66120)

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 20 13:47:25 PDT 2023


================
@@ -2218,6 +2218,9 @@ printTo(raw_ostream &OS, ArrayRef<TA> Args, const PrintingPolicy &Policy,
     } else {
       if (!FirstArg)
         OS << Comma;
+      //if (Argument.getKind() == TemplateArgument::Type)
+      //  OS << "class ";
+
----------------
rnk wrote:

I would move it into `printArgument`. If you have to, it would be find to add a new flag to PrintingPolicy. We have lots of fine-grained flags there.

https://github.com/llvm/llvm-project/pull/66120


More information about the cfe-commits mailing list