-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator fixes for Qt 6.7 (#224) #225
Commits on Jun 27, 2024
-
Fix a problem with character after comment always added to macro defi…
…nition This was especially problematic if the line ended with the comment, since then the next line would be added, too, even though the current one didn't end with a '\'
Configuration menu - View commit details
-
Copy full SHA for cd7ec0a - Browse repository at this point
Copy the full SHA cd7ec0aView commit details -
Fix comma being dropped from macro varargs argument
This prevented QT6_DECL_NEW_OVERLOAD_TAIL from being expanded correctly
Configuration menu - View commit details
-
Copy full SHA for 15e0ad0 - Browse repository at this point
Copy the full SHA 15e0ad0View commit details -
Also move friend function definitions to top-level scope if...
they don't have an implementation. Often the friend definitions are the only definition there is, and we translate these definitions (currently always operators) to wrapper members then.
Configuration menu - View commit details
-
Copy full SHA for 5b0ecba - Browse repository at this point
Copy the full SHA 5b0ecbaView commit details -
Skip attributes that can occur after the enum identifier
(this fixes some parser errors)
Configuration menu - View commit details
-
Copy full SHA for de4c838 - Browse repository at this point
Copy the full SHA de4c838View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75f745e - Browse repository at this point
Copy the full SHA 75f745eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66a1469 - Browse repository at this point
Copy the full SHA 66a1469View commit details -
Qt 6.7 introduced macros to define comparison operators
that might use the "spaceship" operator for C++20 and onwards. The generator had trouble to parse these. Simply replace the definitions with something that works for the generator.
Configuration menu - View commit details
-
Copy full SHA for 338e9d5 - Browse repository at this point
Copy the full SHA 338e9d5View commit details -
Qt sometimes uses the Qt::Disambiguated_t parameter (with a default v…
…alue) to differentiate new methods with a different return value from the old, deprecated ones.
Configuration menu - View commit details
-
Copy full SHA for d2d19a2 - Browse repository at this point
Copy the full SHA d2d19a2View commit details -
decltype can contain a comma-expression
(this fixes some parser errors)
Configuration menu - View commit details
-
Copy full SHA for 949e944 - Browse repository at this point
Copy the full SHA 949e944View commit details -
Correctly parse string literals with a prefix (e.g. raw string: R"...")
(this fixes some parser errors)
Configuration menu - View commit details
-
Copy full SHA for 611fe39 - Browse repository at this point
Copy the full SHA 611fe39View commit details -
Ignore Q_GADGET_EXPORT for now, it doesn't help us
(this fixes some parser errors)
Configuration menu - View commit details
-
Copy full SHA for ef257b5 - Browse repository at this point
Copy the full SHA ef257b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04dabfe - Browse repository at this point
Copy the full SHA 04dabfeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eac84e - Browse repository at this point
Copy the full SHA 4eac84eView commit details -
Introduce alias names for types
Add an entry "aliases" to a type entry in the type database, these types will automatically be changed to the main type in the generated code. This fixes the problem that in Qt 6.7 QAudio enums are used under the QtAudio alias. These enum names are now automatically mapped to the QAudio name with the right alias entries in the type database. This doesn't make QAudio available as QtAudio in Python, though.
Configuration menu - View commit details
-
Copy full SHA for c9e2799 - Browse repository at this point
Copy the full SHA c9e2799View commit details
Commits on Jun 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e66848a - Browse repository at this point
Copy the full SHA e66848aView commit details -
Print the place in the code where the (ambiguous) parser error was emitted (currently only for GCC and MSVC)
Configuration menu - View commit details
-
Copy full SHA for 35c65df - Browse repository at this point
Copy the full SHA 35c65dfView commit details -
Check for duplicates at one more place
(should fix compare methods generated twice for Qt 5.12/5.15)
Configuration menu - View commit details
-
Copy full SHA for ecce9b8 - Browse repository at this point
Copy the full SHA ecce9b8View commit details