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

Issue 1839573002: rewrite_to_chrome_style: making globals great again. (Closed)

Created:
4 years, 9 months ago by dcheng
Modified:
4 years, 8 months ago
Reviewers:
danakj
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

rewrite_to_chrome_style: making globals great again. Prefix globals at translation unit / namespace scope to reduce the chance of a naming collision. BUG=598175 Committed: https://crrev.com/71dbc98da81b7d8a758a674b1971672bf1573556 Cr-Commit-Position: refs/heads/master@{#383556}

Patch Set 1 #

Patch Set 2 : g_g_g_g_ #

Total comments: 2

Patch Set 3 : And we'll let the translation units pay for it. #

Total comments: 5

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc View 1 2 chunks +9 lines, -7 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/variables-original.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/wtf-expected.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (3 generated)
dcheng
This is a mild recommendation in the style guide [1], and might save us from ...
4 years, 9 months ago (2016-03-27 07:35:18 UTC) #2
danakj
https://codereview.chromium.org/1839573002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1839573002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode384 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:384: (decl_context->isTranslationUnit() || decl_context->isNamespace())) Why isTranslationUnit? I thought the matcher ...
4 years, 8 months ago (2016-03-28 18:18:46 UTC) #3
dcheng
https://codereview.chromium.org/1839573002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1839573002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode384 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:384: (decl_context->isTranslationUnit() || decl_context->isNamespace())) On 2016/03/28 at 18:18:46, danakj wrote: ...
4 years, 8 months ago (2016-03-28 18:22:23 UTC) #4
danakj
https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode379 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:379: // Non-const variables with static storage duration at translation ...
4 years, 8 months ago (2016-03-28 18:28:33 UTC) #5
dcheng
https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode379 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:379: // Non-const variables with static storage duration at translation ...
4 years, 8 months ago (2016-03-28 19:50:54 UTC) #6
danakj
LGTM https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1839573002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode384 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:384: decl_context->isNamespace()) On 2016/03/28 19:50:54, dcheng wrote: > On ...
4 years, 8 months ago (2016-03-28 19:54:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839573002/60001
4 years, 8 months ago (2016-03-28 19:55:38 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-03-28 20:46:59 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 20:47:55 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/71dbc98da81b7d8a758a674b1971672bf1573556
Cr-Commit-Position: refs/heads/master@{#383556}

Powered by Google App Engine
This is Rietveld 408576698