[all-commits] [llvm/llvm-project] da236f: Strip preceeding -Xclang when stripping -fcolor-di...
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Wed Feb 26 00:11:39 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: da236f235028c82c2f0e00eea1f6f9c689bcae4a
https://github.com/llvm/llvm-project/commit/da236f235028c82c2f0e00eea1f6f9c689bcae4a
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
More information about the All-commits
mailing list