aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'libs/plugin_python/.clang-format')
-rw-r--r--libs/plugin_python/.clang-format21
1 files changed, 21 insertions, 0 deletions
diff --git a/libs/plugin_python/.clang-format b/libs/plugin_python/.clang-format
new file mode 100644
index 0000000..c040316
--- /dev/null
+++ b/libs/plugin_python/.clang-format
@@ -0,0 +1,21 @@
+---
+# We'll use defaults from the LLVM style, but with 4 columns indentation.
+BasedOnStyle: LLVM
+IndentWidth: 4
+---
+Language: Cpp
+# Force pointers to the type for C++.
+DerivePointerAlignment: false
+PointerAlignment: Left
+AlignConsecutiveAssignments: true
+AllowShortFunctionsOnASingleLine: Inline
+AllowShortIfStatementsOnASingleLine: Never
+AllowShortLambdasOnASingleLine: Empty
+AlwaysBreakTemplateDeclarations: Yes
+AccessModifierOffset: -4
+AlignTrailingComments: true
+SpacesBeforeTrailingComments: 2
+NamespaceIndentation: All
+MaxEmptyLinesToKeep: 1
+BreakBeforeBraces: Stroustrup
+ColumnLimit: 88