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

Issue 2583623002: Fix filtering of where edits are applied when --all switch is used. (Closed)

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

Description

Fix filtering of where edits are applied when --all switch is used. Before this CL, when --all switch was used, then |filenames| 1) wouldn't include any header filenames (which should get rewritten) 2) would include generated files (which shouldn't get rewritten) This would lead to incorrect filtering of edits/files that are passed to _ApplyEdits function. The new filtering behavior helps to ensure that we apply edits to header files that are only included from generated files. Doing this requires 1) running the tool on generated files (this is what --all switch accomplishes even before this CL) and 2) ensuring that edits are applied to the right files (this is what this CL does). Examples of headers that are only included from generated files can be found in https://crbug.com/643779#c11 BUG=643779 Committed: https://crrev.com/d857418db3173e922d97cefe2346724922c8acd6 Cr-Commit-Position: refs/heads/master@{#439136}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M tools/clang/scripts/run_tool.py View 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Łukasz Anforowicz
Daniel, can you take a look please? I've verified that after this CL, https://crbug.com/643779 is ...
4 years ago (2016-12-15 19:46:26 UTC) #2
dcheng
On 2016/12/15 19:46:26, Łukasz Anforowicz wrote: > Daniel, can you take a look please? > ...
4 years ago (2016-12-15 21:11:07 UTC) #3
Łukasz Anforowicz
On 2016/12/15 21:11:07, dcheng wrote: > On 2016/12/15 19:46:26, Łukasz Anforowicz wrote: > > Daniel, ...
4 years ago (2016-12-15 22:23:13 UTC) #4
dcheng
I think one of the other motivations is that so we correctly rewrite headers that ...
4 years ago (2016-12-16 00:45:54 UTC) #5
Łukasz Anforowicz
On 2016/12/16 00:45:54, dcheng wrote: > I think one of the other motivations is that ...
4 years ago (2016-12-16 01:18:19 UTC) #7
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/2583623002/1
4 years ago (2016-12-16 17:16:11 UTC) #9
Łukasz Anforowicz
I am pushing this CL to CQ right now. Q: do we have email contacts ...
4 years ago (2016-12-16 17:17:15 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-16 17:35:27 UTC) #13
commit-bot: I haz the power
4 years ago (2016-12-16 17:39:59 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d857418db3173e922d97cefe2346724922c8acd6
Cr-Commit-Position: refs/heads/master@{#439136}

Powered by Google App Engine
This is Rietveld 408576698