From b79ca34530e88c3a13a9c7afb1df42d7a622e3dd Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sun, 19 Jul 2020 11:12:39 -0400 Subject: [PATCH] Revert 7dfff42f019583076c55993d30a63889613922dd as it broke non-Windows builds. --- clang-tools-extra/clangd/CompileCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/CompileCommands.cpp b/clang-tools-extra/clangd/CompileCommands.cpp index 6df29bd..f6210a4 100644 --- a/clang-tools-extra/clangd/CompileCommands.cpp +++ b/clang-tools-extra/clangd/CompileCommands.cpp @@ -354,7 +354,7 @@ llvm::ArrayRef ArgStripper::rulesFor(llvm::StringRef Arg) { #define PREFIX(NAME, VALUE) static const char *const NAME[] = VALUE; #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELP, METAVAR, VALUES) \ - if (DriverID::OPT_##ALIAS != DriverID::OPT_INVALID && !ALIASARGS) \ + if (DriverID::OPT_##ALIAS != DriverID::OPT_INVALID && ALIASARGS == nullptr) \ AddAlias(DriverID::OPT_##ID, DriverID::OPT_##ALIAS); \ Prefixes[DriverID::OPT_##ID] = PREFIX; #include "clang/Driver/Options.inc" -- 2.7.4