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

Issue 2032983002: base::Value cleanup: add simple Clang tool for structured cleanups (Closed)

Created:
4 years, 6 months ago by dcheng
Modified:
4 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base::Value cleanup: add simple Clang tool for structured cleanups Rewrites base::ListValue::Append(new base::StringValue(...)) and base::ListValue::Append(new base::FundamentalValue(...)) to use base::ListValue::Append{Boolean,Integer,Double,String} instead. BUG=581865 R=danakj@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/7891d93e5c34ea4da75aac7011515dbdfa6a3c4e

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : . #

Total comments: 7

Patch Set 4 : Fix comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -4 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
A tools/clang/value_cleanup/CMakeLists.txt View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A tools/clang/value_cleanup/ListValueRewriter.h View 1 2 1 chunk +80 lines, -0 lines 0 comments Download
A tools/clang/value_cleanup/ListValueRewriter.cpp View 1 2 3 1 chunk +191 lines, -0 lines 0 comments Download
A tools/clang/value_cleanup/ValueCleanup.cpp View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
A tools/clang/value_cleanup/tests/list-value-append-expected.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A tools/clang/value_cleanup/tests/list-value-append-original.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
dcheng
https://codereview.chromium.org/2032983002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (left): https://codereview.chromium.org/2032983002/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#oldcode57 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:57: unresolvedLookupExpr; Somewhat of an unrelated cleanup, but I noticed ...
4 years, 6 months ago (2016-06-02 08:04:49 UTC) #2
danakj
LGTM https://codereview.chromium.org/2032983002/diff/20001/tools/clang/value_cleanup/ValueCleanup.cpp File tools/clang/value_cleanup/ValueCleanup.cpp (right): https://codereview.chromium.org/2032983002/diff/20001/tools/clang/value_cleanup/ValueCleanup.cpp#newcode1 tools/clang/value_cleanup/ValueCleanup.cpp:1: // Copyright 2015 The Chromium Authors. All rights ...
4 years, 6 months ago (2016-06-02 18:33:02 UTC) #3
dcheng
If I was feeling really ambitious, I'd have this thing catch ListValue::Append(base::MakeUnique<base::StringValue>("hello")) too, but it's ...
4 years, 6 months ago (2016-06-02 19:51:33 UTC) #5
dcheng
(Also, I updated it to do bools, ints, and doubles as well)
4 years, 6 months ago (2016-06-02 19:51:46 UTC) #6
danakj
LGTM some more https://codereview.chromium.org/2032983002/diff/40001/tools/clang/value_cleanup/ListValueRewriter.cpp File tools/clang/value_cleanup/ListValueRewriter.cpp (right): https://codereview.chromium.org/2032983002/diff/40001/tools/clang/value_cleanup/ListValueRewriter.cpp#newcode1 tools/clang/value_cleanup/ListValueRewriter.cpp:1: // Copyright 2015 The Chromium Authors. ...
4 years, 6 months ago (2016-06-02 20:15:08 UTC) #7
dcheng
https://codereview.chromium.org/2032983002/diff/40001/tools/clang/value_cleanup/ListValueRewriter.cpp File tools/clang/value_cleanup/ListValueRewriter.cpp (right): https://codereview.chromium.org/2032983002/diff/40001/tools/clang/value_cleanup/ListValueRewriter.cpp#newcode1 tools/clang/value_cleanup/ListValueRewriter.cpp:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 6 months ago (2016-06-02 20:48:29 UTC) #8
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7891d93e5c34ea4da75aac7011515dbdfa6a3c4e Cr-Commit-Position: refs/heads/master@{#397506}
4 years, 6 months ago (2016-06-02 21:00:39 UTC) #10
dcheng
4 years, 6 months ago (2016-06-02 21:00:42 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
7891d93e5c34ea4da75aac7011515dbdfa6a3c4e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698