[PATCH] D16503: [MSVC Compat] Warn when suppressing a trailing comma in macro args

Ehsan Akhgari via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 2 15:24:31 PST 2016


ehsan added a comment.

In http://reviews.llvm.org/D16503#342116, @thakis wrote:

> Sorry for the slow response. I was reading http://reviews.llvm.org/D15670 to understand this patch, and I couldn't find anything in that patch that enables this extension only in Microsoft mode. Trying suppressed-comma-msextension.cpp locally, it seems to pass without -fms-compatibility too. Am I missing something, or does http://reviews.llvm.org/D15670 lack a check for MicrosoftExt?


Hmm, is the `PP.getLangOpts().MSVCCompat` check earlier in `MaybeRemoveCommaBeforeVaArgs()` insufficient?

(Note that this whole thing mostly builds on top of r167613 which was done by Andy, so it's possible that I needed to do something extra and I forgot that...)


http://reviews.llvm.org/D16503





More information about the cfe-commits mailing list