Skip to content

Dscanner upgrade #5527

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 3 commits into from
Jun 30, 2017
Merged

Dscanner upgrade #5527

merged 3 commits into from
Jun 30, 2017

Conversation

wilzbach
Copy link
Member

Important PRs:

1) Add support for C-style alias declarations

The D Grammar tries to deprecate alias ref int x in favor of ... alias y = ref int - nope, that's not valid D. As DScanner didn't bother about this, we were forced to manually exclude std.traits and std.typecons from the statically analysed modules.
For more details about the D grammar issue: https://issues.dlang.org/show_bug.cgi?id=16020 or https://issues.dlang.org/show_bug.cgi?id=11632

-> This PR updates DScanner, removes the hard-coded exclusion & fixes trivial issues. For more complex (or controversial ones), I added the modules to the respective blacklists.

2) Has public example

Checking for public functions without a ddoced unittest has previously been a separate check as DScanner didn't allow for selective checks. Now that DScanner supports selective checks, this check got backported to DScanner

See also: cleanup PR at dlang/tools (dlang/tools#237)
I used my filter script to generate the new blacklist for has_public_example.

@dlang-bot
Copy link
Contributor

dlang-bot commented Jun 30, 2017

Thanks for your pull request, @wilzbach!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Most notably this contains:
- upgraded libdparse with support for deprecated C-style alias
declarations
(-> dlang-community/libdparse#150)
- has_public_example check

Full changelog: dlang-community/D-Scanner@455cc3f...40d7561
Copy link
Member

@CyberShadow CyberShadow left a comment

Choose a reason for hiding this comment

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

Thanks!

@dlang-bot dlang-bot merged commit 0ee79d7 into dlang:master Jun 30, 2017
@wilzbach wilzbach deleted the dscanner-upgrade branch December 11, 2017 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants