UTBotCpp
UTBotCpp copied to clipboard
Add tracking of one line build to bear
Description
Often in Makefile we can find one line build commands like clang a.c b.c -o res. Where catch by bear only as compile command. But inside of it command also have link command to binary, that we should use as target.
[
{
"arguments": [
"clang",
"-c",
"-o",
"res",
"a.c"
],
"directory": "/home/utbot/remote/one_command_multi_src",
"file": "a.c"
},
{
"arguments": [
"clang",
"-c",
"-o",
"res",
"b.c"
],
"directory": "/home/utbot/remote/one_command_multi_src",
"file": "b.c"
}
]
Expected behavior
Link command for res executable
Potential solution
Add to bear functionality that catch link part of command like clang a.c b.c -o res
Probably we should update our Bear to last version