[clang-tools-extra] [clang-doc] Add --asset option to clang-doc (PR #94717)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 14 14:58:05 PDT 2024
================
@@ -0,0 +1,8 @@
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo "" > %t/compile_flags.txt
+// RUN: cp "%s" "%t/test.cpp"
+// RUN: clang-doc --format=html --executor=standalone -p %t %t/test.cpp -output=%t/docs > %t/output.txt
----------------
ilovepi wrote:
```suggestion
// RUN: clang-doc --format=html --executor=standalone %s -output=%t/docs | FileCheck %s
```
This is the standard way to write tests w/ check lines that come from `stdout`. You may also need `2>&1` before the `\` if you're checking `stderr`
https://github.com/llvm/llvm-project/pull/94717
More information about the cfe-commits
mailing list