1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cmd/v: remove clang-format (the generated code is pretty from the start)

This commit is contained in:
Alexander Medvednikov
2020-04-06 17:11:01 +02:00
parent 87c00a61da
commit 2006995020
6 changed files with 5 additions and 27 deletions

View File

@@ -299,8 +299,6 @@ fn (gen_vc mut GenVC) generate() {
gen_vc.assert_file_exists_and_is_not_too_short(c_file, err_msg_gen_c)
// embed the latest v commit hash into the c file
gen_vc.cmd_exec('sed -i \'1s/^/#define V_COMMIT_HASH "$last_commit_hash_v_short"\\n/\' $c_file')
// run clang-format to make the c file more readable
gen_vc.cmd_exec('clang-format -i $c_file')
// move to vc repo
gen_vc.cmd_exec('mv $c_file $git_repo_dir_vc/$c_file')
// add new .c file to local vc repo