From ce2dbe96250f016ee6a4483312a7bfdd5b1e3df8 Mon Sep 17 00:00:00 2001 From: Adam Dobrowolski Date: Tue, 13 Apr 2021 08:39:15 +0200 Subject: [PATCH] [EGD-5238] Fixed error on escape in clang_check script Passing files as one string made python script use all files passed as one file instead of split multiple files --- config/clang_check.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/clang_check.sh b/config/clang_check.sh index 5089ca970f60e26afb14653f29fd7686cbdd04d0..f7176d519778217aae51bf6ceee478365635a175 100755 --- a/config/clang_check.sh +++ b/config/clang_check.sh @@ -42,7 +42,8 @@ get_compile_commands() { [[ -f build-linux-Debug/compile_commands.json ]] || ./configure.sh linux debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 > /dev/null 2>&1 cp build-linux-Debug/compile_commands.json /tmp/compile_commands.json - sed -i 's|-static-libasan||g' /tmp/compile_commands.json + sed -i 's|-static-libasan||g' /tmp/compile_commands.json + sed -i 's|-Wno-literal-suffix||g' /tmp/compile_commands.json } main() @@ -66,7 +67,7 @@ main() verify_clang_format_version get_compile_commands # run tidy - git diff -U0 --no-color remotes/origin/master...HEAD "$files_to_check" | ${tool[*]} -p 1 -path=/tmp/ + git diff -U0 --no-color remotes/origin/master...HEAD $files_to_check | ${tool[*]} -p 1 -path=/tmp/ } main