[clang] [clang-scan-deps] Expand response files before the argument adjuster (PR #89950)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 10:28:49 PDT 2024


================
@@ -0,0 +1,36 @@
+// Check that the scanner can adjust arguments by reading .rsp files in advance.
+
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
+// RUN: echo /Fo%t/tu.obj >> %t/args_nested.rsp
----------------
jansvoboda11 wrote:

I recall running `%clang_cl` with whatever arguments and response files this test generated and seeing Clang's argument parser hit an assertion while working with the expanded arguments.

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


More information about the cfe-commits mailing list