diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-01-24 17:23:03 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-01-31 10:15:52 +0000 |
commit | 1e350a8c98d9c98823dde83a6745d2f26a9c0785 (patch) | |
tree | 78653d29556a2a3570fde746d597311342e49bdf /tools | |
parent | 406ef45aaa3e84eb402a451eb4900afa17d20ea9 (diff) |
Disallow registration of types beginning with lowercase letters
Allowing types with lowercase names causes ambiguity, as can be seen in
QTBUG-43567 and the comment in IRBuilder::visit(), which explains that
"the grammar can't distinguish between two different definitions" whose
only difference is casing of the first letter.
- Prevent registration (return -1 with e.g. qmlRegisterType()) when a
type name doesn't begin with an uppercase letter.
- Document the uppercase type name rule in more places.
Change-Id: I4e522c65990f418eaafa45a256e3cb07a3e01ba4
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions