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

Issue 2599193002: Split run_tool.py into run_tool.py, extract_edits.py and apply_edits.py (Closed)

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

Description

Split run_tool.py into run_tool.py, extract_edits.py and apply_edits.py The split will allow generation of edits on multiple configs (e.g. linux vs windows OR rel vs dbg) and merging the edits before applying them once: $ tools/clang/scripts/run_tool.py rewrite_to_chrome_style \ --generate-compdb --all out/rel >run_tool.linux.rel.out $ ... $ cat run_tool.*.out \ | tools/clang/scripts/extract_edits.py \ | tools/clang/scripts/apply_edits.py --generate-compdb --all out/rel >run_tool.linux.rel.out Test steps: - tools/clang/translation_unit/test_translation_unit.py - tools/clang/scripts/test_tool.py rewrite_to_chrome_style - manually running run_tool | extract_edits | apply_edits pipeline on WTF and verifying that it still builds after the rename BUG=598138 TEST=See "Test steps" above. Committed: https://crrev.com/f9b89e7bd49caf2c5137bd540528001d36b577bc Cr-Commit-Position: refs/heads/master@{#440881}

Patch Set 1 #

Patch Set 2 : --similarity=15 #

Total comments: 40

Patch Set 3 : Addressed CR feedback from dcheng@ and danakj@. #

Total comments: 14

Patch Set 4 : Addressed remaining nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -452 lines) Patch
M docs/clang_tool_refactoring.md View 1 2 3 3 chunks +40 lines, -9 lines 0 comments Download
A + tools/clang/scripts/apply_edits.py View 1 2 3 5 chunks +80 lines, -204 lines 0 comments Download
A tools/clang/scripts/extract_edits.py View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
M tools/clang/scripts/run_tool.py View 1 2 3 7 chunks +55 lines, -169 lines 0 comments Download
M tools/clang/scripts/test_tool.py View 1 2 2 chunks +100 lines, -66 lines 0 comments Download
M tools/clang/translation_unit/TranslationUnitGenerator.cpp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
Łukasz Anforowicz
dcheng@, can you PTAL?
3 years, 12 months ago (2016-12-22 23:07:40 UTC) #2
danakj
https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md File docs/clang_tool_refactoring.md (right): https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md#newcode141 docs/clang_tool_refactoring.md:141: out/Debug <path 1> <path 2> ... >/tmp/list-of-edits suggest putting ...
3 years, 12 months ago (2016-12-23 15:45:06 UTC) #5
danakj
LGTM once that stuff is resolved
3 years, 12 months ago (2016-12-23 16:13:02 UTC) #6
dcheng
+dsansome as FYI, since this potentially affects the code search pipeline (hopefully in a positive ...
3 years, 11 months ago (2016-12-27 07:15:00 UTC) #7
dcheng
https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md File docs/clang_tool_refactoring.md (right): https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md#newcode158 docs/clang_tool_refactoring.md:158: Finally - apply the edits as follows: Super minor ...
3 years, 11 months ago (2016-12-27 07:30:15 UTC) #8
Łukasz Anforowicz
https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md File docs/clang_tool_refactoring.md (right): https://codereview.chromium.org/2599193002/diff/20001/docs/clang_tool_refactoring.md#newcode141 docs/clang_tool_refactoring.md:141: out/Debug <path 1> <path 2> ... >/tmp/list-of-edits On 2016/12/23 ...
3 years, 11 months ago (2016-12-27 22:33:27 UTC) #9
dcheng
LGTM with nits https://codereview.chromium.org/2599193002/diff/20001/tools/clang/scripts/extract_edits.py File tools/clang/scripts/extract_edits.py (right): https://codereview.chromium.org/2599193002/diff/20001/tools/clang/scripts/extract_edits.py#newcode50 tools/clang/scripts/extract_edits.py:50: unique_lines.add(line) On 2016/12/27 22:33:26, Łukasz Anforowicz ...
3 years, 11 months ago (2016-12-28 19:01:37 UTC) #10
Łukasz Anforowicz
Thanks for the reviews everyone. https://codereview.chromium.org/2599193002/diff/20001/tools/clang/scripts/extract_edits.py File tools/clang/scripts/extract_edits.py (right): https://codereview.chromium.org/2599193002/diff/20001/tools/clang/scripts/extract_edits.py#newcode50 tools/clang/scripts/extract_edits.py:50: unique_lines.add(line) On 2016/12/28 19:01:36, ...
3 years, 11 months ago (2016-12-28 19:33:07 UTC) #11
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/2599193002/60001
3 years, 11 months ago (2016-12-28 19:33:28 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2016-12-28 19:43:45 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:49:57 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f9b89e7bd49caf2c5137bd540528001d36b577bc
Cr-Commit-Position: refs/heads/master@{#440881}

Powered by Google App Engine
This is Rietveld 408576698