diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-02 17:10:24 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-12-02 17:10:24 +0000 |
| commit | 538787f57138209eda47f1bf9b792fbd2b61e712 (patch) | |
| tree | 6225ebc365b8e311458201fdbd6887bbb5c5dbfa /clang/lib/Parse/ParseExpr.cpp | |
| parent | 6ef75e9ee890ce70f7d6a952c2e3f2efc6b53ded (diff) | |
| download | bcm5719-llvm-538787f57138209eda47f1bf9b792fbd2b61e712.tar.gz bcm5719-llvm-538787f57138209eda47f1bf9b792fbd2b61e712.zip | |
Add better comments to ::new parsing. Thanks to Doug for the review.
llvm-svn: 60423
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index 50b3a7a4ef9..52caffbb7fc 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -639,6 +639,8 @@ Parser::ExprResult Parser::ParseCastExpression(bool isUnaryExpression) { return ParsePostfixExpressionSuffix(Res); case tok::coloncolon: // [C++] new-expression or [C++] delete-expression + // If the next token is neither 'new' nor 'delete', the :: would have been + // parsed as a scope specifier already. if (NextToken().is(tok::kw_new)) return ParseCXXNewExpression(); else |

