aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/QtQmlDevTools
diff options
context:
space:
mode:
authorFurkan Uzumcu <furkanuzumcu@gmail.com>2021-02-07 17:07:04 -0500
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-10 18:47:24 +0000
commitbada254d4cdc3a6cd188619fce554b4b2abffb67 (patch)
treeeaea5055ac9ce9ffeb546b2b334e7e09186a1be1 /src/qmlcompiler/QtQmlDevTools
parentb2fccf2f2d15c91cf52ca9a2a779eae3004f8b55 (diff)
qmlformat: Use a struct to hold the command line options
Keeping the parser and the code that uses the command line options in the same function increases the number of lines for the same function, making it harder to read, and the number of arguments for parseFile function, makes it harder to understand and maintain. This commit adds an `Options` struct to hold on to the command line options and a build function to create the `Options` object. Change-Id: I5dec0a5a5e990f413ee65bf2eba2ea1087e0ea28 Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 1c35c8f71eb6863498548c6724f82be01d872b33) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qmlcompiler/QtQmlDevTools')
0 files changed, 0 insertions, 0 deletions