зеркало из https://github.com/microsoft/clang-1.git
Fix screwup with my previous patch which broke tests. (The patch is
making sure we return true when annotating a function template with explicit template arguments, but not when we don't annotate anything.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8060ed55d6
Коммит
3c9028a5e8
|
@ -963,7 +963,7 @@ bool Parser::TryAnnotateTypeOrScopeToken() {
|
|||
}
|
||||
|
||||
if (SS.isEmpty())
|
||||
return Tok.isNot(tok::identifier);
|
||||
return Tok.isNot(tok::identifier) && Tok.isNot(tok::coloncolon);
|
||||
|
||||
// A C++ scope specifier that isn't followed by a typename.
|
||||
// Push the current token back into the token stream (or revert it if it is
|
||||
|
|
Загрузка…
Ссылка в новой задаче