[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:25:47 PDT 2024


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

the `rm -rf` line should be first. It's very useful to be able to examine the test files you generate when they break. If you do it this way, its likely that they're deleted. Also, unless there's gong to be a need for multiple directories, I don't think you need anything but `%t`.

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


More information about the cfe-commits mailing list