This is an archive of the discontinued LLVM Phabricator instance.

[Index] Correctly set symbol kind of IndirectFieldDecl
ClosedPublic

Authored by ilya-biryukov on May 29 2019, 1:24 AM.

Diff Detail

Event Timeline

ilya-biryukov created this revision.May 29 2019, 1:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2019, 1:24 AM
kadircet accepted this revision.May 29 2019, 1:31 AM

LGTM thanks!

Do you think it would be beneficial to add some logging for the default case of that switch statement ?

This revision is now accepted and ready to land.May 29 2019, 1:31 AM

Do you think it would be beneficial to add some logging for the default case of that switch statement ?

We should replace default with all cases it covers to make sure we get a warning when adding a new kind.
But I'm not sure it's going to be a big improvement, maybe it would be even nicer to replace this with some macro magic involving #include "DeclKinds.inc".

This revision was automatically updated to reflect the committed changes.