[clang][NFC] Fix a GCC warning in ASTImporterTest.cpp
authorRaphael Isemann <teemperor@gmail.com>
Mon, 24 Aug 2020 15:07:56 +0000 (17:07 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 24 Aug 2020 15:10:55 +0000 (17:10 +0200)
Apparently only overriding one of the two CompleteType overloads causes
GCC to emit a warning with -Woverloaded-virtual .

clang/unittests/AST/ASTImporterTest.cpp

index 9cab6cc..ecddd4d 100644 (file)
@@ -5803,6 +5803,7 @@ struct SourceWithCompletedTagList : clang::ExternalASTSource {
     Record->completeDefinition();
     CompletedTags.push_back(Tag);
   }
+  void CompleteType(ObjCInterfaceDecl *) override {}
 };
 
 TEST_P(ImportWithExternalSource, CompleteRecordBeforeImporting) {