[clang-tools-extra] [clang-doc] add async loading (PR #93276)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 28 21:57:45 PDT 2024


================
@@ -80,8 +80,6 @@ function createIndex(Index) {
 
 // Runs after DOM loads
 document.addEventListener("DOMContentLoaded", function() {
-  // JsonIndex is a variable from another file that contains the index
-  // in JSON format
-  var Index = JSON.parse(JsonIndex);
-  createIndex(Index);
+  // Loadindex is an asynchronous function that will be generated clang-doc
----------------
ilovepi wrote:

```suggestion
  // LoadIndex is an asynchronous function that will be generated by clang-doc
```
Maybe this? Otherwise, I'm not sure what's going on, and you'll need to describe it more fully.

https://github.com/llvm/llvm-project/pull/93276


More information about the cfe-commits mailing list