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

Issue 2271203004: Tweak |in_blink_namespace|, to look at ancestors *and also* at qualifiers. (Closed)

Created:
4 years, 4 months ago by Łukasz Anforowicz
Modified:
4 years, 3 months ago
Reviewers:
dcheng
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@blink-style-same-type-and-method-name
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tweak |in_blink_namespace|, to look at ancestors *and also* at qualifiers. BUG=640688 Committed: https://crrev.com/f5e43f031c552c4461cc0451c54662c9f099dbe0 Cr-Commit-Position: refs/heads/master@{#415101}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Self-review. #

Total comments: 4

Patch Set 3 : Clarify why both hasPrefix(specifiesNamespace(...)) and specifiesNamespace(...) are needed. #

Patch Set 4 : Replace declaratorDeclHasQualifier(...) with has(nestedNameSpecifier(...)). #

Patch Set 5 : Handle parameters and variables underneath namespace-less function decl. #

Total comments: 1

Patch Set 6 : Using hasTopLevelPrefix instead of hasPrefix. #

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

Messages

Total messages: 14 (5 generated)
Łukasz Anforowicz
Daniel, can you take a look please? https://codereview.chromium.org/2271203004/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2271203004/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode193 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:193: declaratorDeclHasQualifier, Ideally ...
4 years, 4 months ago (2016-08-24 19:20:21 UTC) #3
dcheng
https://codereview.chromium.org/2271203004/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2271203004/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode195 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:195: InnerMatcher) { Is there any chance we can use ...
4 years, 4 months ago (2016-08-25 00:33:13 UTC) #4
Łukasz Anforowicz
Daniel - thanks for the feedback and improvement suggestions. Can you take another look please? ...
4 years, 3 months ago (2016-08-25 21:08:09 UTC) #5
Łukasz Anforowicz
Also - heads-up that I've realized that (in patchset #5) I need to add or_hasAncestor(decl_has_qualifier_to_blink_namespace) ...
4 years, 3 months ago (2016-08-25 23:35:52 UTC) #6
dcheng
https://codereview.chromium.org/2271203004/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2271203004/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode601 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:601: // void WTF::Class::method() {} // (2) As mentioned offline, ...
4 years, 3 months ago (2016-08-29 21:12:17 UTC) #7
dcheng
PS6 LGTM
4 years, 3 months ago (2016-08-29 21:13:14 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/2271203004/90001
4 years, 3 months ago (2016-08-29 21:47:21 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years, 3 months ago (2016-08-30 04:36:11 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 04:39:14 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f5e43f031c552c4461cc0451c54662c9f099dbe0
Cr-Commit-Position: refs/heads/master@{#415101}

Powered by Google App Engine
This is Rietveld 408576698