This is an archive of the discontinued LLVM Phabricator instance.

[clang] drop buggy use of `-serialize-diagnostics` flag
ClosedPublic

Authored by ashay-github on Feb 27 2023, 5:21 PM.

Details

Summary

The -serialize-diagnostics flag requires a filename to be passed
immediately after it, but the filename argument was skipped in the
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.

Diff Detail

Event Timeline

ashay-github created this revision.Feb 27 2023, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 5:21 PM
ashay-github requested review of this revision.Feb 27 2023, 5:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 5:21 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ChuanqiXu accepted this revision.Feb 27 2023, 6:25 PM

Thanks!

This revision is now accepted and ready to land.Feb 27 2023, 6:25 PM

Rebased with main branch.

This revision was automatically updated to reflect the committed changes.

For pure test updates, best to include [test] in the subject :)

For pure test updates, best to include [test] in the subject :)

Ah, sorry! Thanks for letting me know, I'll keep that in mind for the future.