DescriptionMoving 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. #Messages
Total messages: 11 (6 generated)
|