Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarryd Beck <jarro.2783@gmail.com>2022-07-11 00:47:35 +0300
committerJarryd Beck <jarro.2783@gmail.com>2022-07-11 13:40:51 +0300
commit30d97369f2694212cae5e41a6a06c8c0ddc4ced3 (patch)
treede0128de23e35db8c6322841f757ae3dba03b295
parentfbd79df66bde4f070ff488d8716870667736600f (diff)
Fixes #341. Add a clang-format file
-rw-r--r--.clang-format19
1 files changed, 19 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..30146cf
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,19 @@
+---
+Language: Cpp
+BasedOnStyle: LLVM
+AccessModifierOffset: 0
+AlignConsecutiveAssignments: true
+AlwaysBreakAfterReturnType: TopLevel
+BreakBeforeBraces: Custom
+BraceWrapping:
+ AfterEnum: true
+ AfterClass: true
+ AfterStruct: true
+ AfterFunction: true
+ AfterNamespace: true
+ AfterControlStatement: Always
+ BeforeElse: true
+ConstructorInitializerIndentWidth: 2
+ContinuationIndentWidth: 2
+PenaltyReturnTypeOnItsOwnLine: 200
+PointerAlignment: Left