[PATCH] D38707: PR13575: Fix USR mangling for functions taking function pointers as arguments.

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 15:39:15 PDT 2017


arphaman added inline comments.


================
Comment at: lib/Index/USRGeneration.cpp:757
       VisitType(FT->getReturnType());
-      for (const auto &I : FT->param_types())
+      Out << '(';
+      for (const auto &I : FT->param_types()) {
----------------
I believe you can drop the '(' and ')'. The '#' should be enough to prevent the USR collision.


https://reviews.llvm.org/D38707





More information about the cfe-commits mailing list