Construct regex to filter defines beforehand

This commit is contained in:
GriffinR
2024-09-11 14:54:58 -04:00
parent a0ebae00c6
commit 2f5f401a37
2 changed files with 26 additions and 9 deletions

View File

@@ -104,7 +104,8 @@ private:
};
ParsedDefines readCDefines(const QString &filename, const QStringList &filterList, bool useRegex);
QMap<QString, int> evaluateCDefines(const QString &filename, const QStringList &filterList, bool useRegex);
bool defineNameMatchesFilter(const QString &name, const QStringList &filterList, bool useRegex);
bool defineNameMatchesFilter(const QString &name, const QStringList &filterList) const;
bool defineNameMatchesFilter(const QString &name, const QList<QRegularExpression> &filterList) const;
static const QRegularExpression re_incScriptLabel;
static const QRegularExpression re_globalIncScriptLabel;