JDevlieghere added inline comments.

================
Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:281
                                             llvm::StringRef replace) {
-  Log *log = GetLogIfAllCategoriesSet(LIBLLDB_LOG_LANGUAGE);
-
-  const size_t max_len =
-      mangled.size() + mangled.count(search) * replace.size() + 1;
+  struct SwapParms {
+    llvm::StringRef mangled;
----------------
I had to look at the old code to understand the name of this struct. How about 
DemangleContext or even just Context?


================
Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:292
+
+    void Substitude(llvm::StringRef tail) {
+      if (tail.startswith(search)) {
----------------
typo: substitute


================
Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:316
+  bool err = llvm::itaniumFindTypesInMangledName(mangled.data(), &context,
+                                                 SwapParms::Hook);
+
----------------
In the other patch you call this argument a callback, maybe do the same here 
for consistency? 


https://reviews.llvm.org/D50587



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to