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

Issue 2608443002: Blacklisting renaming of "hash" in case of static methods and functions. (Closed)

Created:
3 years, 12 months ago by Łukasz Anforowicz
Modified:
3 years, 11 months ago
Reviewers:
dcheng
CC:
chromium-reviews, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blacklisting renaming of "hash" in case of static methods and functions. BUG=677166 Committed: https://crrev.com/1b4b746ad2d2c288bdc568a046b2461b637a75fd Cr-Commit-Position: refs/heads/master@{#440878}

Patch Set 1 #

Patch Set 2 : Trying to remove code duplication. #

Total comments: 4

Patch Set 3 : Addressed CR feedback + shuffled code around a bit. #

Total comments: 6

Patch Set 4 : Shortcircuiting if decl.isStatic() #

Patch Set 5 : Making IsBlacklistedMethodName a free function again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -9 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 4 2 chunks +31 lines, -9 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-original.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Łukasz Anforowicz
Daniel, can you PTAL? This CL adds blacklisting of "hash" when it is the name ...
3 years, 12 months ago (2016-12-27 19:08:44 UTC) #2
dcheng
https://codereview.chromium.org/2608443002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2608443002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode210 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:210: bool IsBlacklistedFunctionOrInstanceOrStaticMethodName(llvm::StringRef name) { I find the naming of ...
3 years, 12 months ago (2016-12-27 20:30:40 UTC) #3
Łukasz Anforowicz
Daniel, I've addressed the feedback + also moved the code around a little bit. Can ...
3 years, 12 months ago (2016-12-27 22:42:43 UTC) #4
dcheng
https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode247 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:247: return true; I think we can just early return ...
3 years, 11 months ago (2016-12-28 18:48:49 UTC) #5
Łukasz Anforowicz
https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode247 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:247: return true; On 2016/12/28 18:48:49, dcheng wrote: > I ...
3 years, 11 months ago (2016-12-28 18:56:50 UTC) #6
dcheng
LGTM with comment https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode868 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:868: static bool IsBlacklistedMethodName(llvm::StringRef name) { On ...
3 years, 11 months ago (2016-12-28 19:03:38 UTC) #7
Łukasz Anforowicz
https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2608443002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode868 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:868: static bool IsBlacklistedMethodName(llvm::StringRef name) { On 2016/12/28 19:03:38, dcheng ...
3 years, 11 months ago (2016-12-28 19:08:07 UTC) #8
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/2608443002/80001
3 years, 11 months ago (2016-12-28 19:08:26 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2016-12-28 19:17:20 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:49:52 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1b4b746ad2d2c288bdc568a046b2461b637a75fd
Cr-Commit-Position: refs/heads/master@{#440878}

Powered by Google App Engine
This is Rietveld 408576698