[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Thu May 29 09:27:40 PDT 2025
================
@@ -0,0 +1,12 @@
+// Test: Invalid output path (%t is a file, not a directory)
+// RUN: rm -rf %t && echo "not a dir" > %t
+// RUN: not clang-doc %s -output=%t/subdir 2>&1 | FileCheck --check-prefix=BAD-OUTPUT %s
+
+// BAD-OUTPUT: clang-doc error:
+// BAD-OUTPUT: {{(Not a directory|no such file or directory)}}
----------------
ilovepi wrote:
IDK if there is much value in using the `BAD` prefix if you're not also testing a `GOOD` example.
https://github.com/llvm/llvm-project/pull/141699
More information about the cfe-commits
mailing list