This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Enable -Wweak-vtables
ClosedPublic

Authored by philnik on Jun 15 2022, 12:56 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG55cb62f34a6f: [libc++] Enable -Wweak-vtables
Summary

This makes Clang scream at us if there is a class without a key function.

Diff Detail

Event Timeline

philnik created this revision.Jun 15 2022, 12:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 12:56 PM
Herald added a subscriber: arichardson. · View Herald Transcript
philnik requested review of this revision.Jun 15 2022, 12:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2022, 12:56 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

I think this is a good idea, except for the number of diagnostics it generates that we don't really care about (in the test suite).

philnik updated this revision to Diff 437401.Jun 15 2022, 4:48 PM
  • Enable the warning only for clang-tidy
ldionne accepted this revision.Jun 17 2022, 1:43 PM
This revision is now accepted and ready to land.Jun 17 2022, 1:43 PM
This revision was automatically updated to reflect the committed changes.