Skip to content
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

[C++] Macro with arguments right after class keyword breaks all subsequent file #3883

Open
ratijas opened this issue Dec 6, 2023 · 0 comments
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@ratijas
Copy link
Contributor

ratijas commented Dec 6, 2023

What happened?

Qt has class annotation macros with string arguments. And it breaks everything else that follows it.

Here, for becomes a keyword, and the rest is a string:

class QT_DEPRECATED_VERSION_X_6_6("this for that")
QPropertyAlias : public QPropertyObserver

Here it kinda just works™:

class 
QT_DEPRECATED_VERSION_X_6_6("this for that")
QPropertyAlias : public QPropertyObserver

image

@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

No branches or pull requests

2 participants