This is an archive of the discontinued LLVM Phabricator instance.

[NFC][clangd] Use table to collect option aliases
ClosedPublic

Authored by ychen on Mar 6 2021, 12:04 AM.

Details

Summary
  • Suppress a lot of -Wtautological-compare warning
  • Speed up file build a little bit

Diff Detail

Event Timeline

ychen created this revision.Mar 6 2021, 12:04 AM
ychen requested review of this revision.Mar 6 2021, 12:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 9:27 AM
kadircet accepted this revision.Jan 24 2022, 5:34 AM

thanks, lgtm!

This revision is now accepted and ready to land.Jan 24 2022, 5:34 AM
uabelho added a subscriber: uabelho.Feb 9 2022, 1:58 AM
uabelho added inline comments.
clang-tools-extra/clangd/CompileCommands.cpp
478

gcc warns about casting away "const" here.
Would it break anything to simply change the type of AliasArgs in the AliasTable to "const char *" and skip this void* cast?

ychen added inline comments.Feb 9 2022, 6:21 PM
clang-tools-extra/clangd/CompileCommands.cpp
478

gcc warns about casting away "const" here.
Would it break anything to simply change the type of AliasArgs in the AliasTable to "const char *" and skip this void* cast?

Thanks for the report. Fixed in 4f30a5269696.