git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zhongxing Xu 2008-12-08 05:12:38 +00:00
Родитель e9a0f43927
Коммит 00c028b4a1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -38,7 +38,7 @@ bool Parser::MaybeParseCXXScopeSpecifier(CXXScopeSpec &SS) {
(Tok.isNot(tok::identifier) || NextToken().isNot(tok::coloncolon))) (Tok.isNot(tok::identifier) || NextToken().isNot(tok::coloncolon)))
return false; return false;
// ::new and ::delete aren'T nested-name-specifiers, so parsing the :: as // ::new and ::delete aren't nested-name-specifiers, so parsing the :: as
// a scope specifier only makes things more complicated. // a scope specifier only makes things more complicated.
if (Tok.is(tok::coloncolon) && (NextToken().is(tok::kw_new) || if (Tok.is(tok::coloncolon) && (NextToken().is(tok::kw_new) ||
NextToken().is(tok::kw_delete))) NextToken().is(tok::kw_delete)))