diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2020-02-26 09:03:03 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2020-02-26 09:05:05 +0100 |
commit | da236f235028c82c2f0e00eea1f6f9c689bcae4a (patch) | |
tree | 793ade8709b751d59e8bd4a9f34f5c17f8c3592c /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | d00900801aae04e6dfde7eb4ca2811d9a6887cf8 (diff) | |
download | llvm-da236f235028c82c2f0e00eea1f6f9c689bcae4a.zip llvm-da236f235028c82c2f0e00eea1f6f9c689bcae4a.tar.gz llvm-da236f235028c82c2f0e00eea1f6f9c689bcae4a.tar.bz2 |
Strip preceeding -Xclang when stripping -fcolor-diagnostics or -fdiagnostics-color
Summary: Fixes https://github.com/clangd/clangd/issues/279. We were removing the color options but not the preceeding -Xclang which causes errors since the -Xclang would now apply to the next option in the list of options. Now, when removing a color option, we check if there was a preceeding -Xclang and remove it as well.
Patch By @DaanDeMeyer !
Reviewers: sammccall, kadircet
Reviewed By: sammccall
Subscribers: ilya-biryukov, usaxena95
Differential Revision: https://reviews.llvm.org/D75019
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions