Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2582)

Unified Diff: chrome/browser/resources/.clang-format

Issue 2597303002: Add a .clang-format for chrome/browser/resources (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/.clang-format
diff --git a/chrome/browser/resources/.clang-format b/chrome/browser/resources/.clang-format
new file mode 100644
index 0000000000000000000000000000000000000000..4d25b73988ff076891c1c64af83459d3a7d2de10
--- /dev/null
+++ b/chrome/browser/resources/.clang-format
@@ -0,0 +1,13 @@
+BasedOnStyle: Chromium
+
+# Renaming quotes in <include> and <if> break things.
+# For normal JS code, please prefer ' to ".
+JavaScriptQuotes: Leave
stevenjb 2016/12/22 20:51:34 Does this break things in all subdirectories? If i
Dan Beam 2016/12/22 20:54:30 Anywhere that does <include src="blah.js"> will ge
+
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+SpacesInContainerLiterals: false
+SpacesInSquareBrackets: false
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698