From 77d1b16c7c2046b78f1fe716165897481078314c Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 18 May 2023 20:34:13 +0100 Subject: [PATCH] Add .clang-format function --- roles/home-cli/files/profile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 835ea38..f51274a 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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"