Skip to content

Warn about packed structs #44

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

Merged
merged 1 commit into from
Jun 9, 2018
Merged

Conversation

kornilova203
Copy link
Member

@kornilova203 kornilova203 commented Jun 9, 2018

Closes #21

@kornilova203 kornilova203 merged commit 88f673e into master Jun 9, 2018
if (record->hasAttr<clang::PackedAttr>()) {
llvm::errs() << "Warning: struct " << name << " is packed. "
<< "Packed structs are not supported by Scala Native. "
<< "Access to fields will not work correctly.\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we start documenting this in a user's guide. Do you have a preference for a documentation tool? Else we can go with Paradox.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonas, I never used any, I suppose Paradox will be fine. I'll take a look at it

@jonas jonas deleted the warn-about-packed-structs branch June 9, 2018 16:46
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.

2 participants