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

Issue 1785563002: rewrite_to_chrome_style: Consistently decide if things are in blink. (Closed)

Created:
4 years, 9 months ago by danakj
Modified:
4 years, 9 months ago
Reviewers:
dcheng
CC:
dcheng, chromium-reviews, piman, Nico
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: Consistently decide if things are in blink. The matcher rules would check IsInBlink and then exclude stuff in gen/. But the method-matcher is special and it has to look at overrides, and it would look check IsInBlink but would not exclude gen/. 2ndly, the matcher rules would check that any ancestor namespace was blink or WTF, but the method-matcher would only check the first namespace. This makes them consistent. IsInBlinkOrWTF will always return false for things in gen/, both for the matcher rules and for the method-matcher. And both will check any ancestor namespace, not just the next namespace. R=dcheng BUG=593446 Committed: https://crrev.com/e8821e2f26fadc019c3b82807854d03ae203d5de Cr-Commit-Position: refs/heads/master@{#380720}

Patch Set 1 #

Patch Set 2 : rewrite-asserts: test2 #

Total comments: 3

Patch Set 3 : rewrite-asserts: not-plumbing-sourcemanager #

Patch Set 4 : rewrite-asserts: matcher-magic #

Total comments: 4

Patch Set 5 : rewrite-asserts: name #

Patch Set 6 : rewrite-asserts: review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -64 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 4 5 8 chunks +66 lines, -64 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/gen/thing.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-original.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
danakj
Added a test where we have a method in blink { nestednamespace {} } and ...
4 years, 9 months ago (2016-03-10 00:39:17 UTC) #1
danakj
Added a test for gen/ with methods also.
4 years, 9 months ago (2016-03-10 00:42:56 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785563002/40001
4 years, 9 months ago (2016-03-10 02:04:59 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/194281)
4 years, 9 months ago (2016-03-10 02:48:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785563002/40001
4 years, 9 months ago (2016-03-10 19:11:06 UTC) #9
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 9 months ago (2016-03-10 19:11:08 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785563002/40001
4 years, 9 months ago (2016-03-10 19:54:28 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 20:34:31 UTC) #15
dcheng
https://codereview.chromium.org/1785563002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1785563002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode91 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:91: const clang::SourceLocation& location, Nit: pass by value. https://codereview.chromium.org/1785563002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode139 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:139: ...
4 years, 9 months ago (2016-03-11 09:03:57 UTC) #16
danakj
PTAL https://codereview.chromium.org/1785563002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1785563002/diff/40001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode91 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:91: const clang::SourceLocation& location, On 2016/03/11 09:03:57, dcheng wrote: ...
4 years, 9 months ago (2016-03-11 19:27:09 UTC) #17
dcheng
lgtm https://codereview.chromium.org/1785563002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1785563002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode90 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:90: bool IsDeclContextInBlinkOrWTF(const clang::DeclContext* decl_context, We can make this ...
4 years, 9 months ago (2016-03-11 19:35:54 UTC) #18
danakj
https://codereview.chromium.org/1785563002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/1785563002/diff/80001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode90 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:90: bool IsDeclContextInBlinkOrWTF(const clang::DeclContext* decl_context, On 2016/03/11 19:35:54, dcheng wrote: ...
4 years, 9 months ago (2016-03-11 19:58:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1785563002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1785563002/120001
4 years, 9 months ago (2016-03-11 19:58:57 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years, 9 months ago (2016-03-11 20:43:59 UTC) #23
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 20:45:33 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e8821e2f26fadc019c3b82807854d03ae203d5de
Cr-Commit-Position: refs/heads/master@{#380720}

Powered by Google App Engine
This is Rietveld 408576698