[all-commits] [llvm/llvm-project] 0fe369: Strip preceeding -Xclang when stripping -fcolor-di...
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Wed Feb 26 00:38:12 PST 2020
Branch: refs/heads/release/10.x
Home: https://github.com/llvm/llvm-project
Commit: 0fe369ad5ff69394b9076b1a679502c3993488d1
https://github.com/llvm/llvm-project/commit/0fe369ad5ff69394b9076b1a679502c3993488d1
Author: Kadir Cetinkaya <kadircet at google.com>
Date: 2020-02-26 (Wed, 26 Feb 2020)
Changed paths:
M clang/lib/Tooling/ArgumentsAdjusters.cpp
Log Message:
-----------
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
(cherry picked from commit da236f235028c82c2f0e00eea1f6f9c689bcae4a)
More information about the All-commits
mailing list