================
@@ -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;
----------------
evelez7 wrote:

I'm not sure that we can since we can only get back `StringRef` from an Object.

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