Add .clang-format function
This commit is contained in:
parent
904353d492
commit
95bcec6fa5
1 changed files with 14 additions and 0 deletions
|
@ -420,6 +420,20 @@ tlscheck () {
|
|||
fi
|
||||
}
|
||||
|
||||
myclangformat () {
|
||||
cat << __EOF__
|
||||
---
|
||||
BasedOnStyle: WebKit
|
||||
|
||||
BreakBeforeBraces: Stroustrup
|
||||
ColumnLimit: 100
|
||||
ContinuationIndentWidth: 2
|
||||
Cpp11BracedListStyle: true
|
||||
FixNamespaceComments: true
|
||||
...
|
||||
__EOF__
|
||||
}
|
||||
|
||||
if [ -r "$XDG_CONFIG_HOME/profile.local" ]
|
||||
then
|
||||
. "$XDG_CONFIG_HOME/profile.local"
|
||||
|
|
Loading…
Reference in a new issue