This is an archive of the discontinued LLVM Phabricator instance.

[clang-tools-extra] Disable -Wsuggest-override for unittests/
ClosedPublic

Authored by logan-5 on Jul 20 2020, 4:52 PM.

Details

Summary

I added -Wsuggest-override to the LLVM build earlier today, and have been putting out small fires I caused since then. One sticky area here has been directories that have files that include googlemock and/or googletest headers, which unfortunately do not themselves use override, so I've had to add -Wno-suggest-override to the CMakeLists.txt's in those directories. This patch adds this same flag to CMakeLists.txt in clang-tools-extra/unittests. I just wanted to get the LGTM from one or more of you fine folks before I committed it.

Diff Detail

Event Timeline

logan-5 created this revision.Jul 20 2020, 4:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2020, 4:52 PM
aaron.ballman accepted this revision.Jul 21 2020, 4:14 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jul 21 2020, 4:14 AM
This revision was automatically updated to reflect the committed changes.