Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 2127713004: Add C++ style guide to repo. (Closed)

Created:
4 years, 5 months ago by brettw
Modified:
4 years, 5 months ago
Reviewers:
Nico, jbroman
CC:
chromium-reviews, danakj+watch_chromium.org, jbroman+cpp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add C++ style guide to repo. This is a Markdown conversion of https://www.chromium.org/developers/coding-style This separates out the language-independent parts from the C++-specific parts. The C++ portion is mostly the same as the web page with the following updates: - New stuff at the top that references clang format and style update process. - The sections on ?: and function parameter ordering were deleted. The advice was long and detailed and seems to contradict Clang format. - Converted scoped_ptr to unique_ptr - Removed the one-line section on return values vs out params as it didn't seem to add much. - Removed the list of platform-specific ifdefs. Some were out-of-date, and "use the ones from build_config.h" seems sufficient for the style guide. Committed: https://crrev.com/f0e606a5b56221da0b97ca0eda5bfc83332bdfdc Cr-Commit-Position: refs/heads/master@{#403954}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Comments fixed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -0 lines) Patch
A styleguide/c++/c++.md View 1 1 chunk +358 lines, -0 lines 1 comment Download
A styleguide/styleguide.md View 1 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
brettw
4 years, 5 months ago (2016-07-06 19:15:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127713004/1
4 years, 5 months ago (2016-07-06 19:16:23 UTC) #5
jbroman
I hope you don't mind some drive-by review comments from me. https://codereview.chromium.org/2127713004/diff/1/styleguide/c++/c++.md File styleguide/c++/c++.md (right): ...
4 years, 5 months ago (2016-07-06 19:38:03 UTC) #7
Nico
rs-lgtm
4 years, 5 months ago (2016-07-06 19:39:26 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 20:07:18 UTC) #10
brettw
Comments fixed
4 years, 5 months ago (2016-07-06 20:36:51 UTC) #11
brettw
Thanks, I addressed all of jbroman's comments.
4 years, 5 months ago (2016-07-06 20:36:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127713004/20001
4 years, 5 months ago (2016-07-06 20:37:48 UTC) #15
jbroman
Thanks, LGTM too.
4 years, 5 months ago (2016-07-06 20:43:40 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-06 21:17:38 UTC) #18
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f0e606a5b56221da0b97ca0eda5bfc83332bdfdc Cr-Commit-Position: refs/heads/master@{#403954}
4 years, 5 months ago (2016-07-06 21:19:35 UTC) #20
Nico
i think the old guide had a "don't log" section that i pointed people at ...
4 years, 5 months ago (2016-07-12 01:12:31 UTC) #21
brettw
https://codereview.chromium.org/2127713004/diff/20001/styleguide/c++/c++.md File styleguide/c++/c++.md (right): https://codereview.chromium.org/2127713004/diff/20001/styleguide/c++/c++.md#newcode132 styleguide/c++/c++.md:132: ## Logging Nico: This is what you're referring to ...
4 years, 5 months ago (2016-07-12 20:19:45 UTC) #22
Nico
4 years, 5 months ago (2016-07-12 20:22:31 UTC) #23
Message was sent while issue was closed.
On 2016/07/12 20:19:45, brettw (ping after 24h) wrote:
> https://codereview.chromium.org/2127713004/diff/20001/styleguide/c++/c++.md
> File styleguide/c++/c++.md (right):
> 
>
https://codereview.chromium.org/2127713004/diff/20001/styleguide/c++/c++.md#n...
> styleguide/c++/c++.md:132: ## Logging
> Nico: This is what you're referring to I think. The logging advice should be
> unchanged from the old style guide, I only removed the parts I noted in the
> description.

Errrrrrr thanks. Yes, that's what I was looking for. Now that I know where it
is, I don't understand how I couldn't find it.

Powered by Google App Engine
This is Rietveld 408576698