summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-08-14 20:24:10 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-08-14 20:24:10 +0300
commit1dc163c06639d6c225b25c9dd2955b21bbb706d3 (patch)
tree5a379a32304aca490df87211d0425220eea69643 /.clang-format
parentUpdate CMakeLists to use Qt6 (diff)
downloadrekonq-1dc163c06639d6c225b25c9dd2955b21bbb706d3.tar.xz
pre-commit hook: Add clang-format check
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format10
1 files changed, 10 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..c033b363
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,10 @@
+---
+BasedOnStyle: LLVM
+AllowShortIfStatementsOnASingleLine: Always
+AllowShortBlocksOnASingleLine: 'true'
+AllowShortLoopsOnASingleLine: 'true'
+BreakBeforeBraces: Stroustrup
+ColumnLimit: '120'
+UseTab: Never
+
+...