C++: Do not compare flags when matching types

Trust the matcher to do the job.

Task-number: QTCREATORBUG-13564
Change-Id: I4ff14608a1ce12d3f4424242e50ba71233ac9bfd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-01-07 23:20:26 +02:00
committed by Orgad Shaneh
parent 50efe4a5b3
commit 8bb176d2ec
4 changed files with 32 additions and 4 deletions

View File

@@ -1918,7 +1918,7 @@ bool Bind::visit(SimpleDeclarationAST *ast)
for (DeclaratorListAST *it = ast->declarator_list; it; it = it->next) {
DeclaratorIdAST *declaratorId = 0;
FullySpecifiedType declTy = this->declarator(it->value, type.qualifiedType(), &declaratorId);
FullySpecifiedType declTy = this->declarator(it->value, type, &declaratorId);
const Name *declName = 0;
unsigned sourceLocation = location(it->value, ast->firstToken());

View File

@@ -235,8 +235,5 @@ void FullySpecifiedType::copySpecifiers(const FullySpecifiedType &type)
bool FullySpecifiedType::match(const FullySpecifiedType &otherTy, Matcher *matcher) const
{
if (_flags != otherTy._flags)
return false;
return type()->match(otherTy.type(), matcher);
}