Add .clang-format function

This commit is contained in:
Anthony Rose 2023-05-18 20:34:13 +01:00
parent 904353d492
commit 95bcec6fa5

View file

@ -420,6 +420,20 @@ tlscheck () {
fi fi
} }
myclangformat () {
cat << __EOF__
---
BasedOnStyle: WebKit
BreakBeforeBraces: Stroustrup
ColumnLimit: 100
ContinuationIndentWidth: 2
Cpp11BracedListStyle: true
FixNamespaceComments: true
...
__EOF__
}
if [ -r "$XDG_CONFIG_HOME/profile.local" ] if [ -r "$XDG_CONFIG_HOME/profile.local" ]
then then
. "$XDG_CONFIG_HOME/profile.local" . "$XDG_CONFIG_HOME/profile.local"