[PATCH] D15670: Accept elided commas in macro function arguments for MS compatibility

Ehsan Akhgari via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 19 13:40:19 PST 2015


ehsan created this revision.
ehsan added reviewers: rnk, rsmith.
ehsan added a subscriber: cfe-commits.

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.

http://reviews.llvm.org/D15670

Files:
  include/clang/Lex/Token.h
  lib/Lex/PPMacroExpansion.cpp
  lib/Lex/TokenLexer.cpp
  test/Preprocessor/microsoft-ext.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15670.43310.patch
Type: text/x-patch
Size: 3883 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151219/ab0bba3a/attachment.bin>


More information about the cfe-commits mailing list