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

Parser improvements to handle attributes #3696

Merged
merged 4 commits into from
Oct 2, 2014
Merged

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jun 26, 2014

I replace "storage class" word with "attribute" in diagnostic messages, because the latter is more general word.

@9rnsr
Copy link
Contributor Author

9rnsr commented Jul 6, 2014

@WalterBright Could you merge this? I'd like to introduce "more strict" check for redundant/conflicting attributes in 2.066 release. This is the last piece for that.

@9rnsr 9rnsr force-pushed the refactor_parse branch 2 times, most recently from c99d24e to ccaec7e Compare August 26, 2014 10:20
@9rnsr 9rnsr force-pushed the refactor_parse branch 2 times, most recently from 02a03f4 to 01503a9 Compare September 1, 2014 00:04
@9rnsr 9rnsr force-pushed the refactor_parse branch 2 times, most recently from 7f0d387 to b5c5844 Compare September 21, 2014 17:24
@9rnsr
Copy link
Contributor Author

9rnsr commented Sep 22, 2014

@WalterBright ping.

@9rnsr 9rnsr force-pushed the refactor_parse branch 2 times, most recently from 82543a9 to f16c73f Compare September 30, 2014 06:18
@9rnsr
Copy link
Contributor Author

9rnsr commented Oct 1, 2014

@WalterBright This code logic cleanup has been proposed by you, in the PR #3689.

@yebblies Do you have a time to review this PR?

{
OutBuffer buf;
StorageClassDeclaration::stcToCBuffer(&buf, stc);
if (*(buf.data + buf.offset - 1) == ' ')
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to use indexing here instead of pointer arith? This whole construct is pretty nasty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was no reason. I replaced it with pointer indexing.

9rnsr added 4 commits October 2, 2014 22:39
Check redundant/conflicting attributes between prefix and postfix
… VarDeclaration

I'd like to store all prefix attributes to `Declaration::storage_class`, but
currently it's not possible because of these behaviors.
@yebblies
Copy link
Member

yebblies commented Oct 2, 2014

Okie dokie.

@yebblies
Copy link
Member

yebblies commented Oct 2, 2014

Auto-merge toggled on

yebblies added a commit that referenced this pull request Oct 2, 2014
Parser improvements to handle attributes
@yebblies yebblies merged commit b7ace0b into dlang:master Oct 2, 2014
@9rnsr
Copy link
Contributor Author

9rnsr commented Oct 2, 2014

Thanks!

@9rnsr 9rnsr deleted the refactor_parse branch October 2, 2014 23:32
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