Skip to content

Commit c68a435

Browse files
authored
Fix hidden virtual methods diagnostic on Windows
1 parent 2564e38 commit c68a435

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/lib/Sema/SemaDeclCXX.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10409,6 +10409,11 @@ void Sema::NoteHiddenVirtualMethods(CXXMethodDecl *MD,
1040910409
/// Diagnose methods which overload virtual methods in a base class
1041010410
/// without overriding any.
1041110411
void Sema::DiagnoseHiddenVirtualMethods(CXXMethodDecl *MD) {
10412+
// There is no need to display it on Windows.
10413+
#ifdef _WIN32
10414+
return;
10415+
#endif
10416+
1041210417
if (MD->isInvalidDecl())
1041310418
return;
1041410419

0 commit comments

Comments
 (0)