Add .clang-format function
This commit is contained in:
parent
a5bb79df7f
commit
77d1b16c7c
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