[clang-tools-extra] [clang-doc] switched from using relative to absolute paths (PR #93281)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 30 08:45:14 PDT 2024


================
@@ -0,0 +1,7 @@
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo "CHECK: var RootPath = \"%/t/docs\";" > %t/check.txt
+// RUN: cp "%s" "%t/test.cpp"
+// RUN: clang-doc --format=html --executor=standalone -p %t %t/test.cpp --output=%t/docs
+// RUN: FileCheck %t/check.txt -input-file=%t/docs/index_json.js
----------------
ilovepi wrote:

```suggestion
// RUN: FileCheck %s -input-file=%t/index_json.js --check-prefix=SOME_PREFIX
```

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


More information about the cfe-commits mailing list