This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point
ClosedPublic

Authored by sammccall on Jun 29 2020, 10:52 AM.

Details

Summary

By making all overloads non-virtual and delegating to a differently-named
private method, we avoid any (harmless) name-hiding in the subclasses.

Diff Detail

Event Timeline

sammccall created this revision.Jun 29 2020, 10:52 AM
kadircet accepted this revision.Jun 30 2020, 12:32 AM

thanks, LGTM!

clang-tools-extra/clangd/Preamble.cpp
231–232

private

clang-tools-extra/clangd/support/ThreadsafeFS.h
49–50

make this private ?

nit: also make the occurences in tests private

This revision is now accepted and ready to land.Jun 30 2020, 12:32 AM
This revision was automatically updated to reflect the committed changes.