-
Notifications
You must be signed in to change notification settings - Fork 9
Sync with upstream 2025-08 #58
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
Sync with upstream 2025-08 #58
Conversation
- Include friend types in class declaration order guidance. - Include previously omitted text (due to mismatched tags) about preferring int16_t over short, et cetera. - Function declarations: - Updated guidance for what comments should cover. - Add a C++ attribute example.
Update C++ style guide.
Update style guideline URL
PiperOrigin-RevId: 480954960
There is no Common Lisp operator named PRINT-UNPRINTABLE-OBJECT. Given the context, it is certain that PRINT-UNREADABLE-OBJECT (www.lispworks.com/documentation/lw51/CLHS/Body/m_pr_unr.htm) was meant instead.
Fix PRINT-UNPRINTABLE-OBJECT
Update ts styleguide with latest google version
PiperOrigin-RevId: 489165518
Go Style Guide
PiperOrigin-RevId: 489255983
Go: Fix a logic error in an example.
s/Vimscript/Vim script/
PiperOrigin-RevId: 489430034
PiperOrigin-RevId: 489956630
Add link to the Go guide from README.md.
PiperOrigin-RevId: 493761232
PiperOrigin-RevId: 497970050
…patch-1 Trivial typofix
Internal Change.
pylint triggered: pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.StandardError' ?) instead. pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.Exception' ?) instead. pylint: Command line or configuration file:1: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. Suggestion works out.
PiperOrigin-RevId: 510217476
- Encourage use of the `internal` namespace to document parts of an API that are not public. - Create a separate section for `switch` statements. - Require a project-specific prefix for macros. - Reorganize guidance for formatting conditional statements. - Other miscellaneous wording and formatting fixes.
Update C++ style guide.
PiperOrigin-RevId: 522150370
Upstream's new text is exactly what we wanted, instead allowing the crazypants whitespace like prior guides.
11ab0d1
to
eae65d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jwnimmer-tri reviewed 1 of 1 files at r5, all commit messages.
Reviewable status: LGTM missing from assignees rpoyner-tri(platform),ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform),sherm1(platform) (waiting on @ggould-tri, @rpoyner-tri, @sammy-tri, @SeanCurtis-TRI, and @sherm1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rpoyner-tri reviewed 44 of 44 files at r1, 1 of 2 files at r2, 1 of 1 files at r5, all commit messages.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform),sherm1(platform) (waiting on @ggould-tri, @sammy-tri, @SeanCurtis-TRI, and @sherm1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new for us, I believe:
When explicitly converting to a class type, use a function-style cast;
e.g., preferstd::string(some_cord)
to
static_cast<std::string>(some_cord)
.
Checkpoint for r1
@sherm1 reviewed 44 of 44 files at r1.
Reviewable status: 1 unresolved discussion, LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform),sherm1(platform) (waiting on @ggould-tri, @sammy-tri, and @SeanCurtis-TRI)
cppguide.html
line 5176 at r1 (raw file):
are mixed case with the first letter of each word capitalized ("<a href="https://en.wikipedia.org/wiki/Camel_case">camelCase</a>" or "<a href="https://en.wiktionary.org/wiki/Pascal_case">PascalCase</a>").
BTW the above appears to approve of snake_case
, PascalCase
, and camelCase
. I don't think we ever permit camelCase
(initial lower case)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with one question below. Also, we should announce the new conversion style noted above. I like it!
@sherm1 reviewed 1 of 2 files at r2, 1 of 1 files at r5, all commit messages.
Reviewable status: 1 unresolved discussion, LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform) (waiting on @ggould-tri, @jwnimmer-tri, @sammy-tri, and @SeanCurtis-TRI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should announce the new conversion style noted above.
For starters, I added it to the summary atop this PR.
@jwnimmer-tri reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform) (waiting on @ggould-tri, @sammy-tri, and @SeanCurtis-TRI)
cppguide.html
line 5176 at r1 (raw file):
Previously, sherm1 (Michael Sherman) wrote…
BTW the above appears to approve of
snake_case
,PascalCase
, andcamelCase
. I don't think we ever permitcamelCase
(initial lower case)?
I think its point was to give names to the various styles in the world, without endorsement. Anyway, I pushed a clarification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rpoyner-tri reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform) (waiting on @ggould-tri, @sammy-tri, and @SeanCurtis-TRI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sherm1 reviewed 1 of 1 files at r6, all commit messages.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform) (waiting on @ggould-tri, @sammy-tri, and @SeanCurtis-TRI)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeanCurtis-TRI reviewed 11 of 44 files at r1, 1 of 2 files at r2, 1 of 1 files at r6, all commit messages.
Reviewable status: 1 unresolved discussion, LGTM missing from assignees ggould-tri(platform),sammy-tri(platform) (waiting on @ggould-tri and @sammy-tri)
cppguide.html
line 524 at r1 (raw file):
<li>and the function is non-virtual,</li> <li>and the function is not recursive,</li> <li>and the function is "small" (~10 lines).</li>
BTW The new google documentation now calls out this size limit. We probably don't need to echo it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform) (waiting on @ggould-tri and @sammy-tri)
cppguide.html
line 524 at r1 (raw file):
Previously, SeanCurtis-TRI (Sean Curtis) wrote…
BTW The new google documentation now calls out this size limit. We probably don't need to echo it?
So did the old upstream text (in a slightly different place). But in both cases, the upstream wording is more of a suggestion than a rule; here, we specifically strengthen it into a hard requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform) (waiting on @ggould-tri and @sammy-tri)
cppguide.html
line 524 at r1 (raw file):
Previously, jwnimmer-tri (Jeremy Nimmer) wrote…
So did the old upstream text (in a slightly different place). But in both cases, the upstream wording is more of a suggestion than a rule; here, we specifically strengthen it into a hard requirement.
Sounds good.
Gentle reminder for @ggould-tri and @sammy-tri -- comments are due by next Monday, please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sammy-tri reviewed 1 of 1 files at r6.
Reviewable status: LGTM missing from assignee ggould-tri(platform) (waiting on @ggould-tri)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
; sorry, thought I'd already punched this one.
Reviewable status:
complete! all discussions resolved, LGTM from assignees rpoyner-tri(platform),ggould-tri(platform),sammy-tri(platform),SeanCurtis-TRI(platform),sherm1(platform),xuchen-han (waiting on @jwnimmer-tri)
FYI For reviewers:
Highlights:
std::string(some_cord)
instead ofstatic_cast<std::string>(some_cord)
.This change is