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

fix issue 17139 - dscanner needs to handle 'scope' function attributes #5085

Merged
merged 1 commit into from Feb 4, 2017
Merged

fix issue 17139 - dscanner needs to handle 'scope' function attributes #5085

merged 1 commit into from Feb 4, 2017

Conversation

ghost
Copy link

@ghost ghost commented Feb 3, 2017

No description provided.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
17139 [BLOCKING] dscanner needs to handle 'scope' function attributes

JackStouffer
JackStouffer previously approved these changes Feb 3, 2017
@JackStouffer
Copy link
Member

I would disable the final check for now

@ghost
Copy link
Author

ghost commented Feb 3, 2017

This is another thing that's not handled by libdparse. I see exactly what's the problem but it's not fixable quickly, it requires @Hackerpilot intervention. This is like dlang-community/libdparse#106. There's 3rd rule that's still not handled.

std/json.d Outdated
@@ -37,7 +37,7 @@ import std.traits;

// check a type
long x;
if (const(JSONValue)* code = "code" in j)
if (auto code = "code" in j)
Copy link
Member

Choose a reason for hiding this comment

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

Can you use const here instead of auto?

Copy link
Author

@ghost ghost Feb 3, 2017

Choose a reason for hiding this comment

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

const identifier now works but it breaks const(Type). because it predates the typectors which are also used for the rule I broke. I'm gonna make a libdparse PR.

@ghost
Copy link
Author

ghost commented Feb 4, 2017

@JackStouffer, sorry for the mishaps but this is good now.

@JackStouffer
Copy link
Member

Auto-merge toggled on

@JackStouffer JackStouffer merged commit 72a2b2e into dlang:master Feb 4, 2017
@ghost ghost deleted the issue-17139 branch February 6, 2017 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants