[clang-tools-extra] 4f30a52 - NFC: fix GCC warning -Wcast-qual
Yuanfang Chen via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 9 18:03:53 PST 2022
Author: Yuanfang Chen
Date: 2022-02-09T18:03:25-08:00
New Revision: 4f30a5269696ff03fd600e756e934a44d4c71b46
URL: https://github.com/llvm/llvm-project/commit/4f30a5269696ff03fd600e756e934a44d4c71b46
DIFF: https://github.com/llvm/llvm-project/commit/4f30a5269696ff03fd600e756e934a44d4c71b46.diff
LOG: NFC: fix GCC warning -Wcast-qual
Added:
Modified:
clang-tools-extra/clangd/CompileCommands.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/CompileCommands.cpp b/clang-tools-extra/clangd/CompileCommands.cpp
index df5f84c894e7b..f3103b21530c6 100644
--- a/clang-tools-extra/clangd/CompileCommands.cpp
+++ b/clang-tools-extra/clangd/CompileCommands.cpp
@@ -471,11 +471,11 @@ llvm::ArrayRef<ArgStripper::Rule> ArgStripper::rulesFor(llvm::StringRef Arg) {
struct {
DriverID ID;
DriverID AliasID;
- void *AliasArgs;
+ const void *AliasArgs;
} AliasTable[] = {
#define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \
HELP, METAVAR, VALUES) \
- {DriverID::OPT_##ID, DriverID::OPT_##ALIAS, (void *)ALIASARGS},
+ {DriverID::OPT_##ID, DriverID::OPT_##ALIAS, ALIASARGS},
#include "clang/Driver/Options.inc"
#undef OPTION
};
More information about the cfe-commits
mailing list