================
@@ -685,6 +734,9 @@ Error JSONGenerator::generateDocumentation(
         return Err;
   }
 
+  if (auto Err = serializeIndex(CDCtx, RootDir))
+    return Err;
+
   return Error::success();
----------------
ilovepi wrote:

```suggestion
   return serializeIndex(CDCtx, RootDir));
```
This is the same, right? I believe `serializeIndex()` returns an `Error`, so we 
don't need to check it here and can just return it directly.

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

Reply via email to