[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:17:59 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"
----------------
ilovepi wrote:

what is this doing? `CHECK` lines belong in the test file, generally. If you need to split them up somehow, there is the `split-file` utility (https://llvm.org/docs/TestingGuide.html#extra-files). But in this case, you don't need that at all, since these lines can be in this file

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


More information about the cfe-commits mailing list