projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d1fb8
)
[clang][NFC] Fix a GCC warning in ASTImporterTest.cpp
author
Raphael Isemann
<teemperor@gmail.com>
Mon, 24 Aug 2020 15:07:56 +0000
(17:07 +0200)
committer
Raphael 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
patch
|
blob
|
history
diff --git
a/clang/unittests/AST/ASTImporterTest.cpp
b/clang/unittests/AST/ASTImporterTest.cpp
index
9cab6cc
..
ecddd4d
100644
(file)
--- a/
clang/unittests/AST/ASTImporterTest.cpp
+++ b/
clang/unittests/AST/ASTImporterTest.cpp
@@
-5803,6
+5803,7
@@
struct SourceWithCompletedTagList : clang::ExternalASTSource {
Record->completeDefinition();
CompletedTags.push_back(Tag);
}
+ void CompleteType(ObjCInterfaceDecl *) override {}
};
TEST_P(ImportWithExternalSource, CompleteRecordBeforeImporting) {