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 | bcf293bb63d1ce9f77ef8232432d979750d30b70 (patch) | |
tree | ebdbb8615a2bb37ee79d7231fba59c40cc1ccc63 /lib/Parse/ParseExpr.cpp | |
parent | 500386194c73b7976894278a7da08ad9b59ec81e (diff) |
Add better comments to ::new parsing. Thanks to Doug for the review.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 50b3a7a4ef..52caffbb7f 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/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 |