[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)
----------------
ilovepi wrote:

Since `lit` uses the `IDENTIFIER:` for checks, we shouldn't use `Test:` here to be clear that this is just informational.

There are two common patterns for comments used in LLVM tests: 

1. use an extra comment delimiter eg. `///` in C files or `;;` in LLVM IR. 
2. use the `COM:` directive which is built into FileCheck (https://llvm.org/docs/CommandGuide/FileCheck.html#the-com-directive)

I see (1) far more frequently, but either is fine.

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


More information about the cfe-commits mailing list