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

Issue 1639663003: Clean up rewrite_to_chrome_style naming logic. (Closed)

Created:
4 years, 11 months ago by dcheng
Modified:
4 years, 10 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

Clean up rewrite_to_chrome_style naming logic. Previously, the naming logic was pretty minimal and haphazard. Identifiers that were named inconsistently with Blink style would often get rewritten incorrectly. Now, the naming logic always normalizes the identifier to a list of words before performing any transformations, ensuring the output is consistent. BUG=580739, 580740

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix V8Data case and add more test cases #

Patch Set 3 : More comprehensive fixes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -42 lines) Patch
M tools/clang/CMakeLists.txt View 1 chunk +2 lines, -1 line 0 comments Download
M tools/clang/rewrite_to_chrome_style/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/Renamer.h View 1 chunk +11 lines, -0 lines 0 comments Download
A tools/clang/rewrite_to_chrome_style/Renamer.cpp View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp View 4 chunks +5 lines, -40 lines 0 comments Download
M tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc View 1 2 1 chunk +18 lines, -1 line 3 comments Download
M tools/clang/rewrite_to_chrome_style/tests/variables-original.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
dcheng
There's probably a few other naming fixes to make, but those should probably happen in ...
4 years, 11 months ago (2016-01-26 07:07:30 UTC) #3
danakj
https://codereview.chromium.org/1639663003/diff/1/tools/clang/rewrite_to_chrome_style/Renamer.cpp File tools/clang/rewrite_to_chrome_style/Renamer.cpp (right): https://codereview.chromium.org/1639663003/diff/1/tools/clang/rewrite_to_chrome_style/Renamer.cpp#newcode41 tools/clang/rewrite_to_chrome_style/Renamer.cpp:41: if (was_lowercase && is_uppercase) { What about V8Stuff? 8 ...
4 years, 11 months ago (2016-01-26 21:32:10 UTC) #4
dcheng
https://codereview.chromium.org/1639663003/diff/1/tools/clang/rewrite_to_chrome_style/Renamer.cpp File tools/clang/rewrite_to_chrome_style/Renamer.cpp (right): https://codereview.chromium.org/1639663003/diff/1/tools/clang/rewrite_to_chrome_style/Renamer.cpp#newcode41 tools/clang/rewrite_to_chrome_style/Renamer.cpp:41: if (was_lowercase && is_uppercase) { On 2016/01/26 at 21:32:10, ...
4 years, 11 months ago (2016-01-27 00:09:28 UTC) #5
danakj
So close! https://codereview.chromium.org/1639663003/diff/40001/tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc File tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc (right): https://codereview.chromium.org/1639663003/diff/40001/tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc#newcode29 tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc:29: bool enable_unsafe_es3_ap_is; itym es3_apis D:
4 years, 11 months ago (2016-01-27 00:28:56 UTC) #6
dcheng
https://codereview.chromium.org/1639663003/diff/40001/tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc File tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc (right): https://codereview.chromium.org/1639663003/diff/40001/tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc#newcode29 tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc:29: bool enable_unsafe_es3_ap_is; On 2016/01/27 at 00:28:56, danakj wrote: > ...
4 years, 11 months ago (2016-01-27 00:38:29 UTC) #7
danakj
LGTM but file a bug for APIs and we can sort it out/data-collect. https://codereview.chromium.org/1639663003/diff/40001/tools/clang/rewrite_to_chrome_style/tests/variables-expected.cc File ...
4 years, 11 months ago (2016-01-27 00:40:53 UTC) #8
dcheng
On 2016/01/27 at 00:40:53, danakj wrote: > LGTM but file a bug for APIs and ...
4 years, 11 months ago (2016-01-27 00:45:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639663003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639663003/40001
4 years, 11 months ago (2016-01-27 00:45:56 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/13276) android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, ...
4 years, 11 months ago (2016-01-27 00:51:45 UTC) #13
dcheng
4 years, 10 months ago (2016-01-29 00:17:47 UTC) #14
Closing this for now, since we've decided to not make our lives harder than they
have to be.

Powered by Google App Engine
This is Rietveld 408576698