This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Handle the C++2b elifdef and elindef PP structure in CollectMainFileMacros.
ClosedPublic

Authored by hokein on Mar 23 2023, 5:51 AM.

Diff Detail

Event Timeline

hokein created this revision.Mar 23 2023, 5:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 5:51 AM
Herald added a subscriber: arphaman. · View Herald Transcript
hokein requested review of this revision.Mar 23 2023, 5:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 5:51 AM

thanks, LG apart from the using decls

clang-tools-extra/clangd/CollectMacros.h
69

why do we have these using decls?

hokein added inline comments.Mar 29 2023, 12:42 AM
clang-tools-extra/clangd/CollectMacros.h
69

This is to suppress the -Woverloaded-virtual diagnostic from gcc (https://godbolt.org/z/9b76fYbjx) -- PPCallback has two overloads of Elifdefs, here we only override one.

kadircet accepted this revision.Mar 29 2023, 1:33 AM

thanks, LG

This revision is now accepted and ready to land.Mar 29 2023, 1:33 AM
This revision was landed with ongoing or failed builds.Mar 29 2023, 2:25 AM
This revision was automatically updated to reflect the committed changes.