Add .clang-format function

This commit is contained in:
Anthony Rose 2023-05-18 20:34:13 +01:00
parent a5bb79df7f
commit 77d1b16c7c

View file

@ -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"