Commit fc7dae40 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ function signature: Allow most specifiers to be replaced.

Except for some SimpleSpecifiers and AttributeSpecifiers. Fixes a bug
where NamedTypeSpecifiers would not be replaced when the return type
was adjusted.

Change-Id: Ie093615ebf1b26d181b888fcbcc341e5bdf85fd1
Reviewed-on: http://codereview.qt-project.org/4749

Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 72056e35
......@@ -455,7 +455,9 @@ static bool canReplaceSpecifier(TranslationUnit *translationUnit, SpecifierAST *
return false;
}
}
return false;
if (specifier->asAttributeSpecifier())
return false;
return true;
}
static SpecifierAST *findFirstReplaceableSpecifier(TranslationUnit *translationUnit, SpecifierListAST *list)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment