diff options
Diffstat (limited to 'clang/lib/Lex/TokenLexer.cpp')
-rw-r--r-- | clang/lib/Lex/TokenLexer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/TokenLexer.cpp b/clang/lib/Lex/TokenLexer.cpp index 6e962df..97cb2cf 100644 --- a/clang/lib/Lex/TokenLexer.cpp +++ b/clang/lib/Lex/TokenLexer.cpp @@ -152,7 +152,8 @@ bool TokenLexer::MaybeRemoveCommaBeforeVaArgs( // named arguments, where it remains. With GNU extensions, it is removed // regardless of named arguments. // Microsoft also appears to support this extension, unofficially. - if (!PP.getLangOpts().GNUMode && Macro->getNumParams() < 2) + if (!PP.getLangOpts().GNUMode && !PP.getLangOpts().MSVCCompat && + Macro->getNumParams() < 2) return false; // Is a comma available to be removed? |