aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generator/shiboken/cppgenerator.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-10-29 09:33:16 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-05 14:11:33 +0100
commit8b414806b80683e162133338c4b3ca0816746aaa (patch)
tree723b4829896c4ab2c37e2197ceac9a370107cc01 /sources/shiboken6/generator/shiboken/cppgenerator.cpp
parent391e47893c463da5b91024508b739e51ecdaaf45 (diff)
shiboken6: Implement enum search by value in code model
Replace (currently unused) AbstractMetaBuilder::searchForEnumScope() by _ScopeModelItem::findEnumByValue() returning an enum and the fully qualified name. This function is intended for resolving enum values used as default values for functions taking int where the underlying enum is not known. As opposed to old code, all parts of a (partially) qualified name are checked for a match to ensure no mismatches of equally named values. Another advantage is that also enum values that are not in the type system are found. The function returns the fully qualified name (also including the enum name for non-class type enums). Task-number: PYSIDE-1691 Pick-to: 6.2 Change-Id: I89ebfdf8435470c626cfdee4fc0d0738cc3fc195 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/cppgenerator.cpp')
0 files changed, 0 insertions, 0 deletions