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

Issue 2276813003: Improve accuracy of detecting type trait fields. (Closed)

Created:
4 years, 4 months ago by Łukasz Anforowicz
Modified:
4 years, 3 months ago
Reviewers:
dcheng
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@blink-style-definition-outside-of-namespace-node
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve accuracy of detecting type trait fields. BUG=640749 Committed: https://crrev.com/a6f1e34b68538cffadd8e0b7636e1128c092bcb0 Cr-Commit-Position: refs/heads/master@{#414557}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moving type traits detection into |var_decl_matcher|. #

Total comments: 3

Patch Set 3 : Rebasing on top of ToT (more or less). #

Patch Set 4 : Moving part of a matcher into a separate |is_wtf_type_trait_value| variable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -29 lines) Patch
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 1 2 3 3 chunks +7 lines, -21 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-expected.cc View 2 chunks +18 lines, -4 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/fields-original.cc View 2 chunks +18 lines, -4 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (4 generated)
Łukasz Anforowicz
Daniel, can you take a look please?
4 years, 4 months ago (2016-08-24 21:21:16 UTC) #2
dcheng
https://codereview.chromium.org/2276813003/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2276813003/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode458 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:458: hasName("WTF"), hasParent(translationUnitDecl())))))); Since this is expressed as a matcher ...
4 years, 4 months ago (2016-08-24 21:42:17 UTC) #3
Łukasz Anforowicz
https://codereview.chromium.org/2276813003/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2276813003/diff/1/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode458 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:458: hasName("WTF"), hasParent(translationUnitDecl())))))); On 2016/08/24 21:42:17, dcheng wrote: > Since ...
4 years, 4 months ago (2016-08-24 21:55:09 UTC) #4
Łukasz Anforowicz
https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode842 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:842: hasName("value"), hasStaticStorageDuration(), BTW: All static fields in wtf/TypeTraits.h are ...
4 years, 4 months ago (2016-08-24 22:36:21 UTC) #5
dcheng
LGTM with comments addressed. https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode841 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:841: unless(varDecl( // Unless it is ...
4 years, 4 months ago (2016-08-25 03:05:33 UTC) #6
Łukasz Anforowicz
https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp File tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp (right): https://codereview.chromium.org/2276813003/diff/20001/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp#newcode841 tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp:841: unless(varDecl( // Unless it is a type trait's static ...
4 years, 3 months ago (2016-08-25 21:31:41 UTC) #7
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/2276813003/60001
4 years, 3 months ago (2016-08-25 21:33:13 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-25 22:20:40 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 22:23:06 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a6f1e34b68538cffadd8e0b7636e1128c092bcb0
Cr-Commit-Position: refs/heads/master@{#414557}

Powered by Google App Engine
This is Rietveld 408576698