make_names: Add capability to produce code following Google C++ style
Currently make_names.py produces blink::FooBarNames::baz_hoge constant variables. They don't match to Google C++ style. This CL adds capability to produce code following Google C++ style. If 'namespace' field in foo_bar_names.json5 contains capital letters, the behavior isn't changed. Otherwise, - Don't append 'Names' to C++ namespace - Prepend 'k' to UpperCamelCase names So 'blink::foo_bar::kBazHoge' will be produced. Bug: 889726 Change-Id: Iac8ca8040782c440d755067bec7c738d92189878 Reviewed-on: https://chromium-review.googlesource.com/c/1288518Reviewed-by:Hitoshi Yoshida <peria@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#601343}
Showing
Please register or sign in to comment