]> granicus.if.org Git - clang/commit
[MSVC Compat] Accept elided commas in macro function arguments
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Fri, 22 Jan 2016 19:26:44 +0000 (19:26 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Fri, 22 Jan 2016 19:26:44 +0000 (19:26 +0000)
commitdc46911de23b935cd8272225b96aec677e394e5c
tree23d4c0001be33f712ed217774315c0fef7b487ed
parent2e0dd420505265b143d0399d06846ef6b0f652d2
[MSVC Compat] Accept elided commas in macro function arguments

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.

Reviewers: rnk, rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D15670

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258530 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Token.h
lib/Lex/PPMacroExpansion.cpp
lib/Lex/TokenLexer.cpp
test/Preprocessor/microsoft-ext.c