[clang] [clang][deps] Support single-file mode for all formats (PR #88764)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 11:32:07 PDT 2024
================
@@ -1,23 +1,10 @@
// RUN: rm -rf %t
// RUN: split-file %s %t
-//--- missing_tu.json.in
-[{
- "directory": "DIR",
- "command": "clang -fsyntax-only DIR/missing_tu.c",
- "file": "DIR/missing_tu.c"
-}]
-//--- missing_header.json.in
-[{
- "directory": "DIR",
- "command": "clang -fsyntax-only DIR/missing_header.c",
- "file": "DIR/missing_header.c"
-}]
//--- missing_header.c
#include "missing.h"
-// RUN: sed -e "s|DIR|%/t|g" %t/missing_tu.json.in > %t/missing_tu.json
-// RUN: not clang-scan-deps -compilation-database %t/missing_tu.json 2>%t/missing_tu.errs
+// RUN: not clang-scan-deps -- "clang" %t/missing_tu.c 2>%t/missing_tu.errs
----------------
benlangmuir wrote:
what's up with the quoting around "clang"?
Also, why was -fsyntax-only removed?
https://github.com/llvm/llvm-project/pull/88764
More information about the cfe-commits
mailing list