Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.15.0
Description
I have discovered now that I can write constraints in the following format:
/*! QString container concept (QStringList or QVector<QString>). */ template<typename T> concept QStringContainer = std::same_as<T, QStringList> || std::same_as<T, QVector<QString>>; struct BaseGrammar { /*! Wrap an array of values. */ auto wrapArray(QStringContainer auto values) const; }; auto BaseGrammar::wrapArray(QStringContainer auto values) const { for (auto &value : values) value = wrap(value); return values; }
This new format breaks syntax highlighting inside the wrapArray function and it also breaks features like Find References to Symbol Under Cursor.