[PATCH] D33644: Add default values for function parameter chunks

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 10 08:43:15 PDT 2017


klimek added inline comments.


================
Comment at: lib/Sema/SemaCodeComplete.cpp:2411-2412
+  if (DefValue.at(0) != '=') {
+    // If we don't have = in front of value
+    return " = " + DefValue;
+  }
----------------
Can you expand in the comment on when each of these happens? Intuitively I'd have expected that only one of these cases can happen (I assume this is because of the forward-declared type?)


https://reviews.llvm.org/D33644





More information about the cfe-commits mailing list