Use QMultiHash explicitly, and build list of values in a QSet via the range constructor. Task-number: QTBUG-131842 Change-Id: I9cbcddeada0bfd88b11515262f5476e5d59e0fad Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit e1217cc52bd367b7e040edeb86700dc923df39a8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| tests | ||
| README | ||
| REUSE.toml | ||
| configfile.cpp | ||
| configfile.h | ||
| css3-simplified.lexgen | ||
| generator.cpp | ||
| generator.h | ||
| global.h | ||
| lexgen.lexgen | ||
| lexgen.pri | ||
| lexgen.pro | ||
| main.cpp | ||
| nfa.cpp | ||
| nfa.h | ||
| re2nfa.cpp | ||
| re2nfa.h | ||
| test.lexgen | ||
| tokenizer.cpp | ||
README
Lexgen ------ This is a little tool to generate lexical scanners from a rather simplistic configuration file. We use it internally in Qt to generate the scanner for the CSS parser that is built into the toolkit (used for the widget styling and the HTML import into QTextDocument). Beware, it's very slow (in generating the code) and it may not generate what you want. But I like that it generates code that operates on QChar and friends. Use at your own risk ;-) -- Simon Hausmann <simon.hausmann@qt.io>