Fix bugs in EOL marking in command line tokenizers
authorReid Kleckner <rnk@google.com>
Thu, 5 Nov 2020 17:58:02 +0000 (09:58 -0800)
committerReid Kleckner <rnk@google.com>
Thu, 5 Nov 2020 21:01:32 +0000 (13:01 -0800)
commitf55247456e219bb64521c3a73c618267d5bf671c
tree0c2364f9ab73f93049d00225f0fa2510a9b3df6d
parentd2e7dca5ca92c655e451d6fcb806df38d7f2d56b
Fix bugs in EOL marking in command line tokenizers

Add unit tests for this behavior, since the integration test for
clang-cl did not catch these bugs.

Fixes PR47604

Differential Revision: https://reviews.llvm.org/D90866
llvm/lib/Support/CommandLine.cpp
llvm/unittests/Support/CommandLineTest.cpp