Bug 1270528: Add JS-specific clang-format. r=jorendorff
authorJakob Olesen <jolesen@mozilla.com>
Thu, 05 May 2016 08:28:53 -0700
changeset 296335 f5f4b849a30bf171a2e090b2d4a0108f4699c506
parent 296334 5c0ca5b6fd4133a9aa2cb66b2765209debb53d1d
child 296336 cbe57261cb0a71696227db83d0c082c0006e09d7
push id19097
push usercbook@mozilla.com
push dateFri, 06 May 2016 12:25:17 +0000
treeherderfx-team@9d202f109312 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1270528
milestone49.0a1
Bug 1270528: Add JS-specific clang-format. r=jorendorff Add a js/src/.clang-format that better fits the style used in SpiderMonkey. Also add a js/src/jit/arm64/vixl/.clang-format to handle the imported VIXL sources. These sources are from an external source, and they are not reformatted to make merging future changes easier. MozReview-Commit-ID: CgzA24csYvp
js/src/.clang-format
js/src/jit/arm64/vixl/.clang-format
new file mode 100644
--- /dev/null
+++ b/js/src/.clang-format
@@ -0,0 +1,8 @@
+# Clang-format style for SpiderMonkey code which is different than the standard Mozilla style.
+BasedOnStyle: Mozilla
+ColumnLimit: 99
+IndentWidth: 4
+
+# Ignore all comments because they aren't reflowed properly.
+# We require 80-col comments and 99-col code.
+CommentPragmas: "^"
new file mode 100644
--- /dev/null
+++ b/js/src/jit/arm64/vixl/.clang-format
@@ -0,0 +1,4 @@
+BasedOnStyle: Chromium
+
+# Ignore all comments because they aren't reflowed properly.
+CommentPragmas: "^"