Descriptionrewrite_to_chrome_style: Check expression is const when deciding style
For things labeled as "const", check if they can be compile-time
evaluated when deciding to name them kFooBar or foo_bar.
This fixes cases of const kFooBar = THING + OTHERTHING getting renamed
to k_foo_bar in blink.
Note that the tool is doing a slightly wrong thing when renaming a foo_bar
to a kFooBar, which we can fix separately (this adds some tests for it
that currently fail on that case).
R=dcheng
BUG=581185
Committed: https://crrev.com/92142e3e35d45e2a975b0b56114da4609602835c
Cr-Commit-Position: refs/heads/master@{#371370}
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|