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.
Paths
| Differential D111459
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 We no longer diagnose in C++20 and later modes. This fixes PR51609.
Diff Detail Event Timelineaaron.ballman created this revision. This revision is now accepted and ready to land.Oct 8 2021, 1:10 PM
Revision Contents
Diff 378335 clang/include/clang/Basic/DiagnosticLexKinds.td
clang/lib/Lex/PPMacroExpansion.cpp
clang/test/Preprocessor/empty_va_arg.cpp
|