Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: c++/clang-format/clang-format-eyeo

Issue 29537634: Noissue - clang-format configuration file for C++
Patch Set: new version Created Sept. 15, 2017, 12:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « c++/clang-format/README.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: c++/clang-format/clang-format-eyeo
===================================================================
new file mode 100644
--- /dev/null
+++ b/c++/clang-format/clang-format-eyeo
@@ -0,0 +1,48 @@
+---
+# The syntax herein is for Clang 4, with opt-in support for Clang 5.
+
+Language: Cpp
+BasedOnStyle: Mozilla
+
+# _de facto_ style is no breaking for return types.
+# Clang 5 version
+AlwaysBreakAfterReturnType: None
+# Clang 4 version
+# Clang 4 documentation defect: It defines "AlwaysBreakAfterReturnType" and
+# states that "AlwaysBreakAfterDefinitionReturnType" is deprecated. Disregard
+# this; the line below is necessary for Clang 4 and the Clang 5 version need not
+# be commented out.
+AlwaysBreakAfterDefinitionReturnType: None
+
+# Long function definitions or calls should not become even longer.
+BinPackArguments: true
+BinPackParameters: true
+
+# Non-assignment operators appear at the beginning of line (after indent).
+BreakBeforeBinaryOperators: NonAssignment
+
+# General override: "Opening braces always go on their own line."
+BreakBeforeBraces: Allman
+
+# Don't treat commas specially within initializers.
+# Clang 5 version
+#BreakConstructorInitializers: BeforeColon
+# Clang 4 version
+BreakConstructorInitializersBeforeComma: false
+
+# Don't wrap long lines automatically.
+# If lines need to be wrapped, do so explicitly.
+ColumnLimit: 0
+
+# Format braced lists like function calls.
+Cpp11BracedListStyle: true
+
+# Don't preserve excess vertical whitespace.
+KeepEmptyLinesAtTheStartOfBlocks: false
+
+# C++ override. "Indent namespace bodies."
+NamespaceIndentation: All
+
+# Use modern C++. Argument stands for C++11, C++14, etc.
+Standard: Cpp11
+...
« no previous file with comments | « c++/clang-format/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld