fix(trixy-macros): Format the generated header with in the GNU style

This commit is contained in:
Benedikt Peetz 2024-02-19 20:51:33 +01:00
parent 1b8a33c919
commit 7c27cdc0e0
Signed by: bpeetz
GPG Key ID: A5E94010C3A642AD
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ impl TrixyConfig {
write!(c_header_out, "{}\n{}", c_header, VIM_LINE_C).expect("Write should work"); write!(c_header_out, "{}\n{}", c_header, VIM_LINE_C).expect("Write should work");
Command::new("clang-format") Command::new("clang-format")
.args(["--style", "GNU"])
.args(["-i", &c_header_path.to_str().unwrap()]) .args(["-i", &c_header_path.to_str().unwrap()])
.status() .status()
.unwrap_or_else(|err| { .unwrap_or_else(|err| {