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

Remove some "using std::..." from header files. #5113

Closed
wants to merge 2 commits into from

Conversation

siying
Copy link
Contributor

@siying siying commented Mar 26, 2019

Summary: The code convention we are following, Google C++ Style, discourage
alias in header files, especially public headers:
https://google.github.io/styleguide/cppguide.html#Aliases
Remove some of them. Might removed some from .cc files as well to be consistent.

Test Plan: Build the project.

Copy link
Contributor

@miasantreble miasantreble left a comment

Choose a reason for hiding this comment

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

LGTM.
Do you plan to remove all "using std::xxx" from the code base?
If not, what criteria shall we use to determine whether to remove them?

@siying
Copy link
Contributor Author

siying commented Mar 26, 2019

@miasantreble Google C++ Style doesn't ban using in .cc files, or where it is private to class, etc. So I left some .cc files alone.

Summary: The code convention we are following, Google C++ Style, discourage
alias in header files, especially public headers. Remove some of them.
Might removed some from .cc files as well to be consistent.

Test Plan: Build the project.
@siying siying reopened this Mar 26, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@anand1976 anand1976 left a comment

Choose a reason for hiding this comment

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

Nice. LGTM

@facebook-github-bot
Copy link
Contributor

@siying merged this pull request in 2b4d5ce.

vagogte pushed a commit to vagogte/rocksdb that referenced this pull request Jun 18, 2019
Summary:
The code convention we are following, Google C++ Style, discourage
alias in header files, especially public headers:
https://google.github.io/styleguide/cppguide.html#Aliases
Remove some of them. Might removed some from .cc files as well to be consistent.
Pull Request resolved: facebook#5113

Differential Revision: D14633030

Pulled By: siying

fbshipit-source-id: b990edc919d5de60295992284f980195e501d424
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.

None yet

5 participants