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

Update C++ style guide #835

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

zetafunction
Copy link
Contributor

  • Explicitly ban long double
  • Use absl formatting libraries or std::ostream over printf-style functions.
  • Portability: use serialization libraries instead of copying the in-memory representation.
  • Update guidance to use uintptr_t (previously intptr_t) when working with pointers as integers.
  • Ban C++20 modules.
  • Ban coroutines (though this is expected to be temporary).
  • Minor wording updates.

These style guides are copies of Google's internal style guides to
assist developers working on Google owned and originated open source
projects. Changes should be made to the internal style guide first and
only then copied here.

Unsolicited pull requests will not be merged and are usually closed
without comment. If a PR points out a simple mistake — a typo, a broken
link, etc. — then the correction can be made internally and copied here
through the usual process.

Substantive changes to the style rules and suggested new rules should
not be submitted as a PR in this repository. Material changes must be
proposed, discussed, and approved on the internal forums first.

cppguide.html Outdated Show resolved Hide resolved
- Explicitly ban `long double`
- Use absl formatting libraries or `std::ostream` over printf-style
  functions.
- Portability: use serialization libraries instead of copying the
  in-memory representation.
- Update guidance to use `uintptr_t` (previously `intptr_t`) when
  working with pointers as integers.
- Ban C++20 modules.
- Ban coroutines (though this is expected to be temporary).
- Minor wording updates.
@vapier vapier added the lang:cpp The C++ language label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:cpp The C++ language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants