[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

Samarth Narang via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 18:03:31 PDT 2025


================
@@ -0,0 +1,4 @@
+// RUN: not clang-doc %S/Inputs/basic-project/src/Circle.cpp -output=/root/docs 2>&1 | FileCheck %s
----------------
snarang181 wrote:

Sorry, I might be misunderstanding but won't `llvm::sys::fs::create_directories()` create a valid directory path? 
Giving the `/root/` output directory fails because it is a read-only file system. If I take the `%t` approach, the clang-doc error will not be fired. 

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


More information about the cfe-commits mailing list