mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2024-11-21 07:54:09 -06:00
add clang-format
This commit is contained in:
parent
cd2ec6c0a3
commit
1e829c094f
19
.clang-format
Normal file
19
.clang-format
Normal file
@ -0,0 +1,19 @@
|
||||
Language: Cpp
|
||||
|
||||
# Unindent access modifiers after regular indenting
|
||||
AccessModifierOffset: -8
|
||||
AlignAfterOpenBracket: DontAlign
|
||||
AllowShortEnumsOnASingleLine: false
|
||||
ColumnLimit: 100
|
||||
EmptyLineAfterAccessModifier: Never
|
||||
EmptyLineBeforeAccessModifier: Never
|
||||
IndentAccessModifiers: false
|
||||
IndentPPDirectives: BeforeHash
|
||||
IndentWrappedFunctionNames: true
|
||||
PointerAlignment: Right
|
||||
SortIncludes: Never # src/plugins/Nvidia.cpp breaks with this on
|
||||
|
||||
# 8 column tabs
|
||||
IndentWidth: 8
|
||||
TabWidth: 8
|
||||
UseTab: Always
|
8
clangFormat.sh
Executable file
8
clangFormat.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
cppPat=(-name "*.cpp" -o -name "*.hpp" -o -name "*.h")
|
||||
clang-format -i $(
|
||||
(find src/tuxclocker-qt/ ${cppPat[@]}
|
||||
find src/tuxclockerd/ ${cppPat[@]}
|
||||
find src/plugins/ ${cppPat[@]}
|
||||
find src/lib/ ${cppPat[@]}
|
||||
find src/include/ -maxdepth 1 ${cppPat[@]}))
|
Loading…
Reference in New Issue
Block a user