[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
Showing
- include/clang/Lex/Token.h 6 additions, 0 deletionsinclude/clang/Lex/Token.h
- lib/Lex/PPMacroExpansion.cpp 6 additions, 1 deletionlib/Lex/PPMacroExpansion.cpp
- lib/Lex/TokenLexer.cpp 11 additions, 6 deletionslib/Lex/TokenLexer.cpp
- test/Preprocessor/microsoft-ext.c 9 additions, 0 deletionstest/Preprocessor/microsoft-ext.c
Loading
Please register or sign in to comment