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

Add Declaration doesn't including "static" keyword. #36

Open
1ywan opened this issue Jul 7, 2021 · 2 comments
Open

Add Declaration doesn't including "static" keyword. #36

1ywan opened this issue Jul 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@1ywan
Copy link

1ywan commented Jul 7, 2021

when I define a static function in source file, then I do a "add declaration" refactor, seems "static" keyword will loss.

@BigBahss
Copy link
Owner

BigBahss commented Jul 28, 2021

Thank you for creating an issue. I was aware that this could be issue when I created the feature. The only method of fixing this that I can think of would be to add extra options when adding declaration (like "public static", "protected static", etc.). I will look into implementing that, unless you have a better idea that I'm not thinking of.

@BigBahss BigBahss added the enhancement New feature or request label Aug 11, 2021
@Phytolizer
Copy link

I think my issue is related. When writing C, if I write a declaration for a static function in a source file, and do the "add definition" refactor, the generated code uses "inline" instead of "static". Is this intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants