[clang] [clang][clang-scan-deps] Add named modules to format 'experimental-full' (PR #145221)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 24 09:17:33 PDT 2025


================
@@ -0,0 +1,347 @@
+// This checks that clang-scan-deps properly outputs named module dependencies 
+// when using the the scanning output format 'experimental-full'.
+//
+// See commit 72304.
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
+//
+// The slash direction in linux and windows are different.
+// UNSUPPORTED: system-windows
----------------
jansvoboda11 wrote:

We typically deal with separator differences by normalizing them to `/` like so:
```shell
// RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
```
Would something like that work for this test?

I see most of your matches are fairly simple (e.g. `[[PREFIX]]/M.cppm`) and there are no complex search paths involved, so maybe matching with `{{.*}}M.cppm` would do the trick too.

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


More information about the cfe-commits mailing list