AbstractMacroExpander: expand macros recursively

Started-by: Tobias Hunger <tobias.hunger@digia.com>
Change-Id: Id2e88efbb475221cd7c0347f7d5e7009e4372eec
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Oswald Buddenhagen
2014-09-12 19:14:54 +02:00
committed by Tobias Hunger
parent 1b11f9b3c0
commit 62da66a0aa
3 changed files with 58 additions and 15 deletions

View File

@@ -71,6 +71,8 @@ public:
//! \param ret Replacement string on output
//! \return True if the expando was found
virtual bool resolveMacro(const QString &name, QString *ret) = 0;
private:
bool expandNestedMacros(const QString &str, int *pos, QString *ret);
};
QTCREATOR_UTILS_EXPORT void expandMacros(QString *str, AbstractMacroExpander *mx);