This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix a declare-constructor tweak crash on incomplete fields.
ClosedPublic

Authored by hokein on Apr 21 2022, 2:15 AM.

Diff Detail

Event Timeline

hokein created this revision.Apr 21 2022, 2:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2022, 2:15 AM
hokein requested review of this revision.Apr 21 2022, 2:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2022, 2:15 AM
sammccall accepted this revision.Apr 21 2022, 4:02 AM
sammccall added inline comments.
clang-tools-extra/clangd/refactor/tweaks/MemberwiseConstructor.cpp
182

Fail instead?

This revision is now accepted and ready to land.Apr 21 2022, 4:02 AM
hokein added inline comments.Apr 21 2022, 10:51 AM
clang-tools-extra/clangd/refactor/tweaks/MemberwiseConstructor.cpp
182

Fail seems too strict, the tweak is entirely unavailable if there is any incomplete-type field decls in a class, I think it is still useful to make the tweak available.