That's an interesting discovery about ninja. On Windows:
D:\>more build.ninja
rule cc
command = /bin/echo "\\" $in
build test: cc dir\test.c
D:\>ninja -t compdb cc
[
{
"directory": "D:\\",
"command": "/bin/echo \"\\\\\" dir\\test.c",
"file": "dir\\test.c"
}
]
So ninja isn't even internally consistent! I'll file a bug against ninja.
That being said, I'm not convinced that it makes sense to handle anything
other than the literal \" specially--we still need to skip processing every
other 'normal' escape sequence, so we may as well limit this special
behavior to the combination of the two.
On Mon Nov 24 2014 at 9:51:16 AM Tomasz Miąsko <[email protected]>
wrote:
> And then quotes, backslash and space character all have special meaning
> outside
> quotes. So probably there should be separate implementation of skipEscape
> for
> unquoted string. Sorry for the noise.
>
> http://reviews.llvm.org/D6376
>
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits