Chromium is starting to use clang-format on more JavaScript.
In doing this, we discovered that our defaults were not doing a good job differentiating between JS and C++.
This change moves some defaults to only apply to C++.
Differential D28165
Change clang-format's Chromium JavaScript defaults danbeam on Dec 29 2016, 12:39 PM. Authored by
Details
Chromium is starting to use clang-format on more JavaScript. In doing this, we discovered that our defaults were not doing a good job differentiating between JS and C++. This change moves some defaults to only apply to C++.
Diff Detail
Event Timeline
Comment Actions I'd rather we don't deviate from google style at all, but this brings us closer from where we are to that, so lgtm :-) |
Thanks for the patch! Do we want these as false in Chromium's JS? I would've thought the diff would just be
so that we just use google style for JS.
If we do want to deviate from google style here for some reason then
a) say why somewhere
b) change the check for cpp to also include || Language == FormatStyle::LK_ObjC
(If you include more diff context as described on http://llvm.org/docs/Phabricator.html, reviewing on phab is a bit easier.)