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

Issue 1673543004: Moving swap IWYU from <algorithm> to <utility>. (Closed)

Created:
4 years, 10 months ago by skym
Modified:
4 years, 10 months ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Moving swap IWYU from <algorithm> to <utility>. In C++11 std::swap was moved from <algorithm> to <utility>. As such, lint needed to be updated to look for/suggest <utility> when it finds std::swap. The IWYU logic is a little bit different for <utility> functions, including swap, because they do not typically include template parameters, unlike most other std:: functions. Reworked the existing algorithm pattern to be more generic and support multiple differet headers. Did not rename/all caps _re_pattern_templates as it is referenced/modified outside of cpplint.py. BUG=584689 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298622

Patch Set 1 #

Patch Set 2 : Renaming to reflect that algorithm/utility pattern will match with and without templates. #

Total comments: 2

Patch Set 3 : Lower casing name of non-constant. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -14 lines) Patch
M cpplint.py View 1 2 5 chunks +22 lines, -14 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
skym
PTAL
4 years, 10 months ago (2016-02-05 16:39:20 UTC) #3
Dirk Pranke
lgtm w/ one nit. https://codereview.chromium.org/1673543004/diff/2/cpplint.py File cpplint.py (right): https://codereview.chromium.org/1673543004/diff/2/cpplint.py#newcode5510 cpplint.py:5510: _RE_PATTERN_HEADERS_MAYBE_TEMPLATES = [] this isn't ...
4 years, 10 months ago (2016-02-05 20:40:38 UTC) #5
skym
https://codereview.chromium.org/1673543004/diff/2/cpplint.py File cpplint.py (right): https://codereview.chromium.org/1673543004/diff/2/cpplint.py#newcode5510 cpplint.py:5510: _RE_PATTERN_HEADERS_MAYBE_TEMPLATES = [] On 2016/02/05 20:40:38, Dirk Pranke wrote: ...
4 years, 10 months ago (2016-02-05 20:52:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673543004/30001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673543004/30001
4 years, 10 months ago (2016-02-05 20:53:31 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 20:55:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:30001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298622

Powered by Google App Engine
This is Rietveld 408576698