This is an archive of the discontinued LLVM Phabricator instance.

Fix a diagnoses-valid in C++20 with variadic macros
ClosedPublic

Authored by aaron.ballman on Oct 8 2021, 12:33 PM.

Details

Summary

C++20 and later allow you to pass no argument for the ... parameter in
a variadic macro, whereas earlier language modes and C disallow it.

We no longer diagnose in C++20 and later modes. This fixes PR51609.

Diff Detail

Event Timeline

aaron.ballman requested review of this revision.Oct 8 2021, 12:33 PM
aaron.ballman created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2021, 12:33 PM
erichkeane accepted this revision.Oct 8 2021, 1:10 PM
This revision is now accepted and ready to land.Oct 8 2021, 1:10 PM