aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/utils.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-18 08:47:22 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-20 17:19:04 +0100
commitb60cdf97b41ab6db977c5acd96d491003a5a046d (patch)
treed78be6e1e5e0c4aeac2779c9e5fc5738fb212be0 /build_scripts/utils.py
parent87eb93ea934774bab6e8359ce3c80ae818fa9b7e (diff)
shiboken6: Refactor file name generation
Simplify and streamline the code: - Remove virtual Generator::fileNameSuffix(), leave only a static function in QtDocGenerator which reuses it. - Introduce a static helper function for fileNameForContext() to build the name. - Remove the AbstractMetaClass * parameter from getFileNameBaseForSmartPointer() since the name is available from the type entry as well. - Add a public static function to HeaderGenerator to be used in CppGenerator to generate the include statements instead of replacing ".cpp" by ".h" for this. One goal is to no longer use GeneratorContext::metaClass() for smart pointers so that the smart pointer classes can be removed or made built-in. Task-number: PYSIDE-454 Change-Id: Ie6ace5ee93467a02940e43f781b626d1c13ead20 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'build_scripts/utils.py')
0 files changed, 0 insertions, 0 deletions