From a390ee355e6686ec4f2f739741a80cbc7a707b9b Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 31 Jul 2023 17:53:39 +0300 Subject: [PATCH] format code by LLVM --- ~/C/format-code | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ~/C/format-code diff --git a/~/C/format-code b/~/C/format-code new file mode 100755 index 0000000..aac7d47 --- /dev/null +++ b/~/C/format-code @@ -0,0 +1,10 @@ +#!/bin/sh + +files=( + "file.c" +) + +for file in "${files[@]}" +do + clang-format -i --style=LLVM --sort-includes=false $file +done