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/ObjC] Fix: be more lenient about macro identifiers with enum return types #1718

Merged
merged 2 commits into from
Jul 29, 2019

Conversation

rwols
Copy link
Contributor

@rwols rwols commented Sep 17, 2018

Fixes #1712.

Since there were not any tests that failed after removing a line in the match rule, I am somewhat hesitant about merging this. @wbond let me know what could go wrong in this case.

@wbond
Copy link
Member

wbond commented Nov 28, 2018

I believe the __declspec condition is required to handle the format:

class __declspec(dllimport) X {};  

(From https://msdn.microsoft.com/en-us/library/dabb5z75.aspx)

Also added tests for nested anonymous data structures
@wbond
Copy link
Member

wbond commented Jul 29, 2019

I added some fixes and tests for handling __declspec, and it turned out not to require the lines you removed.

@wbond wbond merged commit b94f72a into sublimehq:master Jul 29, 2019
@rwols
Copy link
Contributor Author

rwols commented Jul 29, 2019

Thanks! I totally forgot about this PR!

@rwols rwols deleted the bugfix/C++/enum-scope-does-not-close branch July 29, 2019 17:28
ismell pushed a commit to ismell/Packages that referenced this pull request Dec 16, 2019
b94f72a [C/ObjC] Fix: be more lenient about macro identifiers with enum return types (sublimehq#1718)

Makes the merge easier

Signed-off-by: Raul E Rangel <[email protected]>
mitranim pushed a commit to mitranim/Packages that referenced this pull request Mar 25, 2022
…n types (sublimehq#1718)

* [C/ObjC] Fix: be more lenient about macro identifiers with enum return types
* [C/Objective-C] Fix handling of __declspec() after struct/enum/union
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C] enum scope does not close
2 participants