[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 19 15:30:09 PDT 2024
================
@@ -0,0 +1,2 @@
+// RUN: clang-doc --format=html --executor=standalone %s -output=%t/docs | FileCheck %s
+// CHECK: Using default asset: {{.*}}%{pathsep}share%{pathsep}clang
----------------
ilovepi wrote:
The regular expression doesn't look right to me. I assume that `pathsep` will match eagerly after the `.*`. could be something else, though. I'm guessing you probably still need the `..`.
An alternate way to write the check is like this
```suggestion
// CHECK: Using default asset:
// CHECK-SAME: %{pathsep}share%{pathsep}clang
```
https://github.com/llvm/llvm-project/pull/94717
More information about the cfe-commits
mailing list