Try another coding style
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 06 Nov 2017 13:21:43 +0100
changeset 1343096 843334cfcc222addee964d4e84000c949a917db7
parent 1343095 7c43cea39e8d90488ebabdab30d1c34f1caa9c99
child 1343097 98e2b4ee9775a2a2b5cc1bb8a390bfe901814f38
push id233276
push usersledru@mozilla.com
push dateMon, 06 Nov 2017 12:29:06 +0000
treeherdertry@75712e0e92ff [default view] [failures only]
milestone58.0a1
Try another coding style MozReview-Commit-ID: EnZYz4WQQGU
.clang-format
js/src/.clang-format
--- a/.clang-format
+++ b/.clang-format
@@ -1,9 +1,9 @@
-BasedOnStyle: Mozilla
+BasedOnStyle: Google
 
 # Prevent the loss of indentation with these macros
 MacroBlockBegin: "^\
 NS_INTERFACE_MAP_BEGIN|\
 NS_INTERFACE_TABLE_HEAD|\
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION|\
 NS_IMPL_CYCLE_COLLECTION_.*_BEGIN|\
 NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED|\
@@ -15,17 +15,15 @@ NS_INTERFACE_MAP_END|\
 NS_IMPL_CYCLE_COLLECTION_.*_END|\
 NS_INTERFACE_TABLE_END|\
 NS_INTERFACE_MAP_END_INHERITING|\
 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END_INHERITED|\
 NS_IMPL_CYCLE_COLLECTION_UNLINK_END_INHERITED$"
 
 SortIncludes: false
 
-
 BreakBeforeBraces: Custom
 BraceWrapping:
   AfterEnum: true
   AfterStruct: true
   AfterFunction: true
   AfterClass: true
   SplitEmptyFunction: true
-
--- a/js/src/.clang-format
+++ b/js/src/.clang-format
@@ -1,10 +1,6 @@
 # Clang-format style for SpiderMonkey code which is different than the standard Mozilla style.
-BasedOnStyle: Mozilla
+BasedOnStyle: Google
 ColumnLimit: 99
 IndentWidth: 4
 
-# Ignore all comments because they aren't reflowed properly.
-# We require 80-col comments and 99-col code.
-CommentPragmas: "^"
-
 SortIncludes: false