From f0efb42a30be61abb77b2df97a077c8d08759758 Mon Sep 17 00:00:00 2001 From: prime31 Date: Sat, 1 Feb 2020 17:51:27 -0800 Subject: [PATCH] cc: add file style selector to clang-format --- vlib/compiler/cc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/cc.v b/vlib/compiler/cc.v index d47d1a9f43..94ab5d883a 100644 --- a/vlib/compiler/cc.v +++ b/vlib/compiler/cc.v @@ -38,7 +38,7 @@ fn (v mut V) cc() { ends_with_js := v.out_name.ends_with('.js') if v.pref.is_pretty_c && !ends_with_js { - format_result := os.exec('clang-format -i "$v.out_name_c"') or { + format_result := os.exec('clang-format -i -style=file "$v.out_name_c"') or { eprintln('clang-format not found') os.Result{exit_code:-1} }