aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/TokenLexer.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-06-22 23:59:08 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-06-22 23:59:08 +0000
commit19b02cd7fc91946f8151abbc5aabf91d1532e73d (patch)
treeec714f3c02f61c52910d5ece9096adc6fdfe44bf /clang/lib/Lex/TokenLexer.cpp
parent087affe2f3ce52dc0a314517eb77b684af6dec51 (diff)
downloadllvm-19b02cd7fc91946f8151abbc5aabf91d1532e73d.zip
llvm-19b02cd7fc91946f8151abbc5aabf91d1532e73d.tar.gz
llvm-19b02cd7fc91946f8151abbc5aabf91d1532e73d.tar.bz2
Minor improvements to some C99 variadic-macro-related diagnostics.
llvm-svn: 159054
Diffstat (limited to 'clang/lib/Lex/TokenLexer.cpp')
-rw-r--r--clang/lib/Lex/TokenLexer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Lex/TokenLexer.cpp b/clang/lib/Lex/TokenLexer.cpp
index 81c9d0a..0f1004f 100644
--- a/clang/lib/Lex/TokenLexer.cpp
+++ b/clang/lib/Lex/TokenLexer.cpp
@@ -252,9 +252,9 @@ void TokenLexer::ExpandFunctionArguments() {
const Token *ArgToks = ActualArgs->getUnexpArgument(ArgNo);
unsigned NumToks = MacroArgs::getArgLength(ArgToks);
if (NumToks) { // Not an empty argument?
- // If this is the GNU ", ## __VA_ARG__" extension, and we just learned
- // that __VA_ARG__ expands to multiple tokens, avoid a pasting error when
- // the expander trys to paste ',' with the first token of the __VA_ARG__
+ // If this is the GNU ", ## __VA_ARGS__" extension, and we just learned
+ // that __VA_ARGS__ expands to multiple tokens, avoid a pasting error when
+ // the expander trys to paste ',' with the first token of the __VA_ARGS__
// expansion.
if (PasteBefore && ResultToks.size() >= 2 &&
ResultToks[ResultToks.size()-2].is(tok::comma) &&