Skip to content

[Driver] NFC: Add some "const"s to clarify the code. #15769

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
Apr 7, 2018

Conversation

davidungar
Copy link
Contributor

All this PR does is add some "const"s to existing declarations. It is a tiny first step to improving the malleability of the driver.

@davidungar davidungar requested a review from jrose-apple April 5, 2018 17:41
@davidungar
Copy link
Contributor Author

@swift-ci please smoke test


/// Provides a randomization seed to batch-mode partitioning, for debugging.
unsigned BatchSeed;
const unsigned BatchSeed;

/// In order to test repartitioning, set to true if
/// -driver-force-one-batch-repartition is present. This is cleared after the
/// forced repartition happens.
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, looks like the comment didn't get updated for the final approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks--great catch! I guess this const'ing already found one bogus comment.

@davidungar davidungar force-pushed the PR-18-20-driver-consts branch from 27df976 to 906e1ca Compare April 7, 2018 01:49
@davidungar
Copy link
Contributor Author

@swift-ci smoke test and merge

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar davidungar merged commit 478d846 into swiftlang:master Apr 7, 2018
@davidungar davidungar deleted the PR-18-20-driver-consts branch May 16, 2018 16:59
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