[PATCH] D144934: [clang] drop buggy use of `-serialize-diagnostics` flag
Ashay Rane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 27 17:21:05 PST 2023
ashay-github created this revision.
ashay-github added reviewers: ChuanqiXu, jansvoboda11, ben.boeckel.
Herald added a project: All.
ashay-github requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The `-serialize-diagnostics` flag requires a filename to be passed
immediately after it, but the filename argument was skipped in the
P1689 <https://reviews.llvm.org/P1689>.cppm clang test. This caused the code to incorrectly consume the
argument that followed as the dignostics file.
Since the `-serialize-diagnostics` flag isn't needed for this test to
work, this patch removes it instead of passing a file argument.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144934
Files:
clang/test/ClangScanDeps/P1689.cppm
Index: clang/test/ClangScanDeps/P1689.cppm
===================================================================
--- clang/test/ClangScanDeps/P1689.cppm
+++ clang/test/ClangScanDeps/P1689.cppm
@@ -40,7 +40,7 @@
//
// Check that we can mix the use of -format=p1689 and -fmodules.
// RUN: clang-scan-deps -format=p1689 \
-// RUN: -- %clang++ -std=c++20 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -serialize-diagnostics -c %t/impl_part.cppm -o %t/impl_part.o \
+// RUN: -- %clang++ -std=c++20 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -c %t/impl_part.cppm -o %t/impl_part.o \
// RUN: | FileCheck %t/impl_part.cppm -DPREFIX=%/t
//--- P1689.json.in
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144934.500980.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230228/ae4e50af/attachment-0001.bin>
More information about the cfe-commits
mailing list