This is an archive of the discontinued LLVM Phabricator instance.

[clangd] PopulateSwitch: disable on dependent enums.
ClosedPublic

Authored by adamcz on Nov 24 2020, 11:52 AM.

Details

Summary

If the enum is a dependent type, we would crash somewhere in
getIntWidth(). -Wswitch diagnostic doesn't work on dependent enums
either.

Diff Detail

Event Timeline

adamcz created this revision.Nov 24 2020, 11:52 AM
adamcz requested review of this revision.Nov 24 2020, 11:52 AM
hokein accepted this revision.Nov 24 2020, 11:48 PM

thanks.

This revision is now accepted and ready to land.Nov 24 2020, 11:48 PM
This revision was automatically updated to reflect the committed changes.