Ditch $any() and $all() in favour of simple paren nesting

* This means that literals are no longer allowed to contains ()s to match e.g.
  Draw( to implicitly exclude DrawIndexed().
This commit is contained in:
baldurk
2021-07-01 15:15:04 +01:00
parent 5abfb7d5a2
commit e669eaebfc
2 changed files with 199 additions and 108 deletions
+3 -2
View File
@@ -77,6 +77,8 @@ struct FilterExpression
QString printName() const
{
if(name == lit("$any$"))
return lit("(...)");
if(function)
return QFormatStr("$%1(%2)").arg(name).arg(params);
return name;
@@ -199,8 +201,7 @@ private:
void ShowSavedFilterCompleter(RDTextEdit *filter);
void CreateFilterDialog();
void AddFilterExplanations(QString parentFunc, RDTreeWidgetItem *root,
QVector<FilterExpression> exprs, QString &notes);
void AddFilterExplanations(RDTreeWidgetItem *root, QVector<FilterExpression> exprs, QString &notes);
QString GetExportString(int indent, bool firstchild, const QModelIndex &idx);
void GetMaxNameLength(int &maxNameLength, int indent, bool firstchild, const QModelIndex &idx);