diff options
author | Sean Callanan <scallanan@apple.com> | 2017-07-10 23:47:00 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2017-07-10 23:47:00 +0000 |
commit | 660c98f3e30c5c1b6aa566365ec22ea34d09eacf (patch) | |
tree | fe5404a443c17773833ea5e53bba844908c5b626 /lib/AST | |
parent | dc3817f04345e25d8b14db950d9d3d46d792f292 (diff) |
clang-import-test had some dead code. I did the following to eliminate it:
- eliminated error handling for the indirect CompilerInstance, which should
never generate an error as it is created;
- added a new test for direct importation; and
- removed an unused implementation of the CompleteType() API.
This brings clang-import-test.cpp and ExternalASTMerge.cpp back to 100%
coverage on all metrics measured by DLLVM_BUILD_INSTRUMENTED_COVERAGE.
Differential Revision: https://reviews.llvm.org/D35220
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/ExternalASTMerger.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/AST/ExternalASTMerger.cpp b/lib/AST/ExternalASTMerger.cpp index b746edaf64..4f4a99794c 100644 --- a/lib/AST/ExternalASTMerger.cpp +++ b/lib/AST/ExternalASTMerger.cpp @@ -180,8 +180,3 @@ void ExternalASTMerger::FindExternalLexicalDecls( }); } -void ExternalASTMerger::CompleteType(TagDecl *Tag) { - SmallVector<Decl *, 0> Result; - FindExternalLexicalDecls(Tag, [](Decl::Kind) { return true; }, Result); - Tag->setHasExternalLexicalStorage(false); -} |