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

Issue 2307643002: Account for the fact that some type traits have static methods. (Closed)

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

Description

Handle type traits with 1) static methods or 2) enum type. BUG=640749 Committed: https://crrev.com/c6a6c934a3c611b004f00290fab85a0b08f5887e Cr-Commit-Position: refs/heads/master@{#416331}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed CR feedback from dcheng@. #

Patch Set 3 : Taking car of type traits with enum value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -4 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc View 1 2 2 chunks +53 lines, -1 line 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-original.cc View 1 2 2 chunks +53 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
Łukasz Anforowicz
Daniel, can you take a look please? Just one small tweak in |is_type_trait_value| matcher.
4 years, 3 months ago (2016-09-01 20:11:49 UTC) #2
dcheng
https://codereview.chromium.org/2307643002/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2307643002/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode651 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:651: recordDecl(has(cxxMethodDecl(isUserProvidedInstanceMethod())))))); Might be slightly nicer to compose the isUserProvided() ...
4 years, 3 months ago (2016-09-01 21:04:22 UTC) #3
Łukasz Anforowicz
Daniel, can you take another look please? https://codereview.chromium.org/2307643002/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2307643002/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode651 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:651: recordDecl(has(cxxMethodDecl(isUserProvidedInstanceMethod())))))); On ...
4 years, 3 months ago (2016-09-01 21:39:45 UTC) #4
Łukasz Anforowicz
Just a heads-up that I added one more tweak in patchset #3 to account for ...
4 years, 3 months ago (2016-09-02 18:43:56 UTC) #6
dcheng
lgtm
4 years, 3 months ago (2016-09-02 19:05:22 UTC) #7
dcheng
lgtm
4 years, 3 months ago (2016-09-02 19:05:44 UTC) #8
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/2307643002/40001
4 years, 3 months ago (2016-09-02 19:17:40 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-02 20:18:08 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 20:20:58 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c6a6c934a3c611b004f00290fab85a0b08f5887e
Cr-Commit-Position: refs/heads/master@{#416331}

Powered by Google App Engine
This is Rietveld 408576698