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

Issue 2597863002: rewrite_to_chrome_style: associate replacements with the affected file (Closed)

Created:
4 years ago by dcheng
Modified:
4 years ago
CC:
chromium-reviews, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

rewrite_to_chrome_style: associate replacements with the affected file To make the rebase helper more accurate, track edits on a per-file basis. The theory is that within a file, a simple search-and-replace approach can work more reliably without depending on as much contextual information (e.g. detecting whether something is a method call or not). BUG=676588 R=lukasza@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/2bd7f8bf68e7f57558106183333d7763c8def486

Patch Set 1 #

Patch Set 2 : actually implement stuff #

Total comments: 24

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -58 lines) Patch
M tools/clang/rewrite_to_chrome_style/CMakeLists.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/EditTracker.h View 1 2 1 chunk +49 lines, -0 lines 1 comment Download
A tools/clang/rewrite_to_chrome_style/EditTracker.cpp View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 4 chunks +15 lines, -46 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-expected.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/methods-original.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
dcheng
+thakis, is it safe to assume that source filenames in Chromium are unique? https://codereview.chromium.org/2597863002/diff/20001/tools/clang/rewrite_to_chrome_style/EditTracker.cpp File ...
4 years ago (2016-12-22 10:26:22 UTC) #3
Łukasz Anforowicz
Overall direction LGTM. The only major question I have is about desirability of jumping out ...
4 years ago (2016-12-22 17:34:36 UTC) #4
Nico
On 2016/12/22 10:26:22, dcheng wrote: > +thakis, is it safe to assume that source filenames ...
4 years ago (2016-12-22 17:45:16 UTC) #5
dcheng
On 2016/12/22 17:45:16, Nico (swamped sorry) wrote: > On 2016/12/22 10:26:22, dcheng wrote: > > ...
4 years ago (2016-12-22 17:53:35 UTC) #6
danakj
There are at least two layer.cc files for example. Not sure about in blink tho. ...
4 years ago (2016-12-22 18:14:08 UTC) #7
dcheng
https://codereview.chromium.org/2597863002/diff/20001/tools/clang/rewrite_to_chrome_style/EditTracker.cpp File tools/clang/rewrite_to_chrome_style/EditTracker.cpp (right): https://codereview.chromium.org/2597863002/diff/20001/tools/clang/rewrite_to_chrome_style/EditTracker.cpp#newcode17 tools/clang/rewrite_to_chrome_style/EditTracker.cpp:17: // bugs in the past when this wasn't true. ...
4 years ago (2016-12-22 20:49:41 UTC) #8
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/2bd7f8bf68e7f57558106183333d7763c8def486 Cr-Commit-Position: refs/heads/master@{#440496}
4 years ago (2016-12-22 20:56:15 UTC) #10
dcheng
Committed patchset #5 (id:80001) manually as 2bd7f8bf68e7f57558106183333d7763c8def486 (presubmit successful).
4 years ago (2016-12-22 20:57:21 UTC) #12
danakj
https://codereview.chromium.org/2597863002/diff/80001/tools/clang/rewrite_to_chrome_style/EditTracker.h File tools/clang/rewrite_to_chrome_style/EditTracker.h (right): https://codereview.chromium.org/2597863002/diff/80001/tools/clang/rewrite_to_chrome_style/EditTracker.h#newcode25 tools/clang/rewrite_to_chrome_style/EditTracker.h:25: // Simple class that tracks the edits made by ...
4 years ago (2016-12-22 21:06:40 UTC) #13
Primiano Tucci (use gerrit)
4 years ago (2016-12-22 21:13:59 UTC) #14
Message was sent while issue was closed.
On 2016/12/22 18:14:08, danakj_OOO_and_slow wrote:
> There are at least two layer.cc files for example. Not sure about in blink
> tho.
> 
> On Thu, Dec 22, 2016 at 12:53 PM, <mailto:dcheng@chromium.org> wrote:
> 
> > On 2016/12/22 17:45:16, Nico (swamped sorry) wrote:
> > > On 2016/12/22 10:26:22, dcheng wrote:
> > > > +thakis, is it safe to assume that source filenames in Chromium are
> > unique?
> > >
> > > You mean the qualified path (src/foo/a/b.cc)? I'd say yes, else there'd
> > be two
> > > files at the same path. Just the basename? No.
> > >
> > > I believe I'm not understanding the question :-)
> >
> > I was hoping base names were unique-ish;
There are definitely basename collision (e.g, Trace_event) 

> I seem to recall some issue with
> > .o's
> > colliding in the past if this wasn't the case.
I recall being bitten by something similar during the gyp - > transition but I
think that is limited to the scope of a gn target. 

> >
> > https://codereview.chromium.org/2597863002/
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "Chromium-reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email
> to mailto:chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698