~aleteoryx/muditaos

ce2dbe96250f016ee6a4483312a7bfdd5b1e3df8 — Adam Dobrowolski 5 years ago ea88104
[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
1 files changed, 3 insertions(+), 2 deletions(-)

M config/clang_check.sh
M config/clang_check.sh => config/clang_check.sh +3 -2
@@ 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