================
@@ -814,9 +888,12 @@ static Error serializeIndex(const ClangDocContext &CDCtx, 
StringRef RootDir) {
   for (auto &Idx : IndexCopy.Children) {
     if (Idx.Children.empty())
       continue;
-    std::string TypeStr = infoTypeToString(Idx.RefType);
     json::Value IdxVal = Object();
     auto &IdxObj = *IdxVal.getAsObject();
+    auto TypeStr = infoTypeToString(Idx.RefType);
+    if (Markdown)
+      TypeStr.at(0) = toUppercase(TypeStr.at(0));
+    IdxObj["Type"] = TypeStr;
----------------
ilovepi wrote:

Can we just assign to the json and manipulate that? its minor, but it would 
avoid a copy.

https://github.com/llvm/llvm-project/pull/177221
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to