make_qualified_names: Add capability to produce code following Google C++ style
Currently make_qualifed_names.py produces blink::FooNames::baz_hogeTag
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_tag_names.json5 or foo_attribute_names.json5
is in the following list, the behavior isn't changed.
'HTML', 'MathML', 'SVG', 'XLink', 'XML', 'XMLNS'
Otherwise,
- C++ namespace name is {{namespace|lower}}_names, not {{namespace}}Names
- Prepend 'k' to UpperCamelCase tag/attribute names
So 'blink::foo_names::kBazHogeTag' will be produced.
Bug: 889726
Change-Id: I997ab91b79cc13baa46e8e519e3bccb9cecc72ce
Reviewed-on: https://chromium-review.googlesource.com/c/1290052Reviewed-by:
Hitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601342}
Showing
Please register or sign in to comment