diff options
author | Kaelyn Uhrain <rikka@google.com> | 2013-08-12 22:11:14 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2013-08-12 22:11:14 +0000 |
commit | 5d937b3fe7832f8ffa0a258d1b037c64708e97c1 (patch) | |
tree | 063aa9d88befb9ca5c60820dbe845e14347b74a5 /lib/Sema/MultiplexExternalSemaSource.cpp | |
parent | 2d66dfa35375e032cd58a2580da8dd41ec955fc9 (diff) |
Add hooks to ExternalSemaSource for after-the-fact diagnosis of
incomplete types, courtesy of Luke Zarko.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/MultiplexExternalSemaSource.cpp')
-rw-r--r-- | lib/Sema/MultiplexExternalSemaSource.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Sema/MultiplexExternalSemaSource.cpp b/lib/Sema/MultiplexExternalSemaSource.cpp index 43bafd3482..ad7627a457 100644 --- a/lib/Sema/MultiplexExternalSemaSource.cpp +++ b/lib/Sema/MultiplexExternalSemaSource.cpp @@ -289,3 +289,12 @@ TypoCorrection MultiplexExternalSemaSource::CorrectTypo( } return TypoCorrection(); } + +bool MultiplexExternalSemaSource::MaybeDiagnoseMissingCompleteType( + SourceLocation Loc, QualType T) { + for (size_t I = 0, E = Sources.size(); I < E; ++I) { + if (Sources[I]->MaybeDiagnoseMissingCompleteType(Loc, T)) + return true; + } + return false; +} |