forked from qt-creator/qt-creator
C++: Fix a typo in template declaration parser function
This is an obvious typo considering the checks at the beginning of the function. Change-Id: I11b784153b650b02bba7bb942ca1131447a3da4a Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
2
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
2
src/libs/3rdparty/cplusplus/Parser.cpp
vendored
@@ -1081,7 +1081,7 @@ bool Parser::parseTemplateDeclaration(DeclarationAST *&node)
|
||||
|
||||
TemplateDeclarationAST *ast = new (_pool) TemplateDeclarationAST;
|
||||
|
||||
if (LA() == T_EXPORT || LA() == T_EXPORT)
|
||||
if (LA() == T_EXPORT || LA() == T_EXTERN)
|
||||
ast->export_token = consumeToken();
|
||||
|
||||
ast->template_token = consumeToken();
|
||||
|
||||
Reference in New Issue
Block a user