aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/optionsparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6: Add an options parser for common optionsFriedemann Kleint2023-09-201-0/+11
| | | | | | | | | Remove the old option handling completely. Pick-to: 6.6 Change-Id: I00661b530527cd072c346b983c33b789240ce722 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* shiboken6: Introduce simple option structFriedemann Kleint2023-09-201-0/+148
| | | | | | | | | | | Add a struct Options to replace the struct CommandLineArguments from main.cpp with built-in handling of the project file. Port the generators over. Pick-to: 6.6 Change-Id: I3012d211761e7a43c709f2754e6846f008ff2b0d Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Move OptionsParser out of the generatorFriedemann Kleint2023-09-191-0/+18
| | | | | | | | | | | | | | | | Move the interface out to a separate class in ApiExtractor so that it can be used for options handling of ApiExtractor and type database as well. Add a class OptionsParserList that aggregates option parser instances. Replace it by static functions creating OptionsParser instances. Pick-to: 6.6 Change-Id: Ic1b3a2020af6d18f682f7026a7e9c2c7ba704d6e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* shiboken6: Extract options parser from the generatorsFriedemann Kleint2023-09-191-0/+55
This is the beginning of a series of patches simplifying the command line/project file options handling of shiboken. Extract an options parser base class and move helper functions there. Move utility functions into the class. Introduce an enumeration for the source which will be used to discriminate project file path options (single values in repeated lines) from command line path options (delimiter-separated lists) later on. Make the functions returning the OptionDescriptions static per generator. Pick-to: 6.6 Change-Id: Ic49e4c0d440dbda6e3dd119615e70eea5a25651c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>