Don't remove backslashes from arguments unless the following char is recognized.
authorZachary Turner <zturner@google.com>
Tue, 20 Jan 2015 17:53:36 +0000 (17:53 +0000)
committerZachary Turner <zturner@google.com>
Tue, 20 Jan 2015 17:53:36 +0000 (17:53 +0000)
commit2d53c31eb799b544fe28e82c8cd3f683d8e37e9a
tree448f7cf77878c76f349443badee93b2859d4576f
parent95292bbfcd70cd52648b930827c76c8b6c86272f
Don't remove backslashes from arguments unless the following char is recognized.

This fixes file paths on Windows, as you can now write, for example,
file d:\foo\bar.txt, but does not break the case that this tokenization
logic was originally designed for, which is to allow escaping of things
like quotes and double quotes, so that all of the escapable characters
can appear in the same string together.

Reviewed by: Jim Ingham, Greg Clayton
Differential Revision: http://reviews.llvm.org/D7018

llvm-svn: 226587
lldb/source/Interpreter/Args.cpp