This is an archive of the discontinued LLVM Phabricator instance.

Accept elided commas in macro function arguments for MS compatibility
ClosedPublic

Authored by ehsan on Dec 19 2015, 1:40 PM.

Details

Summary

This fixes PR25875. When the trailing comma in a macro argument list is
elided, we need to treat it similarly to the case where a variadic macro
misses one actual argument.

Diff Detail

Repository
rL LLVM

Event Timeline

ehsan updated this revision to Diff 43310.Dec 19 2015, 1:40 PM
ehsan retitled this revision from to Accept elided commas in macro function arguments for MS compatibility.
ehsan updated this object.
ehsan added reviewers: rnk, rsmith.
ehsan added a subscriber: cfe-commits.
rnk accepted this revision.Jan 12 2016, 3:41 PM
rnk edited edge metadata.

Seems reasonable to me, but we should check with Richard.

This revision is now accepted and ready to land.Jan 12 2016, 3:41 PM

Richard: ping?

rnk added a comment.Jan 22 2016, 11:13 AM

Let's go ahead and land this. It doesn't seem high risk. Richard will be back on Monday, he's been skiing.

Sure. I'd be happy to address any comments post-landing.

Thanks!

This revision was automatically updated to reflect the committed changes.