Bug 1508255 - Allow clang-format to reflow comments in js/src r=jandem,arai
authorTed Campbell <tcampbell@mozilla.com>
Tue, 20 Nov 2018 11:43:42 +0000
changeset 506453 d437391bafa1ec497443aedac9500cbfa172ec26
parent 506452 fa3eaa0d2cde35eb9435f6f8455148f9eec5ff4f
child 506454 2d8d64aff05a9af6af00a99c7922b86ad9d1bb55
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem, arai
bugs1508255
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1508255 - Allow clang-format to reflow comments in js/src r=jandem,arai Previous patches on this bug fix sources of bad comment reflow. This patch changes the option in js/src/.clang-format. Doing this puts SpiderMonkey in-line with Gecko and generates better results from clang-format. Depends on D12390 Differential Revision: https://phabricator.services.mozilla.com/D12391
js/src/.clang-format
--- a/js/src/.clang-format
+++ b/js/src/.clang-format
@@ -1,11 +1,7 @@
 BasedOnStyle: Google
 
 # Prevent the loss of indentation with these macros
 MacroBlockBegin: "^JS_BEGIN_MACRO$"
 MacroBlockEnd: "^JS_END_MACRO$"
 
-# Ignore all comments because they aren't reflowed properly.
-# We require 80-col comments and 99-col code.
-CommentPragmas: "^"
-
 SortIncludes: false