Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 1 | //===--- MultiplexExternalSemaSource.cpp ---------------------------------===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file implements the event dispatching to the subscribed clients. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | #include "clang/Sema/MultiplexExternalSemaSource.h" |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 13 | #include "clang/AST/DeclContextInternals.h" |
| 14 | #include "clang/Sema/Lookup.h" |
| 15 | |
| 16 | using namespace clang; |
| 17 | |
Raphael Isemann | aa45584 | 2019-12-15 16:09:20 +0100 | [diff] [blame] | 18 | char MultiplexExternalSemaSource::ID; |
| 19 | |
Adrian Prantl | 9fc8faf | 2018-05-09 01:00:01 +0000 | [diff] [blame] | 20 | ///Constructs a new multiplexing external sema source and appends the |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 21 | /// given element to it. |
| 22 | /// |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 23 | MultiplexExternalSemaSource::MultiplexExternalSemaSource(ExternalSemaSource &s1, |
| 24 | ExternalSemaSource &s2){ |
| 25 | Sources.push_back(&s1); |
| 26 | Sources.push_back(&s2); |
| 27 | } |
| 28 | |
| 29 | // pin the vtable here. |
Angel Garcia Gomez | 637d1e6 | 2015-10-20 13:23:58 +0000 | [diff] [blame] | 30 | MultiplexExternalSemaSource::~MultiplexExternalSemaSource() {} |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 31 | |
Adrian Prantl | 9fc8faf | 2018-05-09 01:00:01 +0000 | [diff] [blame] | 32 | ///Appends new source to the source list. |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 33 | /// |
| 34 | ///\param[in] source - An ExternalSemaSource. |
| 35 | /// |
| 36 | void MultiplexExternalSemaSource::addSource(ExternalSemaSource &source) { |
| 37 | Sources.push_back(&source); |
| 38 | } |
| 39 | |
| 40 | //===----------------------------------------------------------------------===// |
| 41 | // ExternalASTSource. |
| 42 | //===----------------------------------------------------------------------===// |
| 43 | |
| 44 | Decl *MultiplexExternalSemaSource::GetExternalDecl(uint32_t ID) { |
| 45 | for(size_t i = 0; i < Sources.size(); ++i) |
| 46 | if (Decl *Result = Sources[i]->GetExternalDecl(ID)) |
| 47 | return Result; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 48 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 49 | } |
| 50 | |
Richard Smith | 053f6c6 | 2014-05-16 23:01:30 +0000 | [diff] [blame] | 51 | void MultiplexExternalSemaSource::CompleteRedeclChain(const Decl *D) { |
| 52 | for (size_t i = 0; i < Sources.size(); ++i) |
| 53 | Sources[i]->CompleteRedeclChain(D); |
| 54 | } |
| 55 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 56 | Selector MultiplexExternalSemaSource::GetExternalSelector(uint32_t ID) { |
| 57 | Selector Sel; |
| 58 | for(size_t i = 0; i < Sources.size(); ++i) { |
| 59 | Sel = Sources[i]->GetExternalSelector(ID); |
| 60 | if (!Sel.isNull()) |
| 61 | return Sel; |
| 62 | } |
| 63 | return Sel; |
| 64 | } |
| 65 | |
| 66 | uint32_t MultiplexExternalSemaSource::GetNumExternalSelectors() { |
| 67 | uint32_t total = 0; |
| 68 | for(size_t i = 0; i < Sources.size(); ++i) |
| 69 | total += Sources[i]->GetNumExternalSelectors(); |
| 70 | return total; |
| 71 | } |
| 72 | |
| 73 | Stmt *MultiplexExternalSemaSource::GetExternalDeclStmt(uint64_t Offset) { |
| 74 | for(size_t i = 0; i < Sources.size(); ++i) |
| 75 | if (Stmt *Result = Sources[i]->GetExternalDeclStmt(Offset)) |
| 76 | return Result; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 77 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | CXXBaseSpecifier *MultiplexExternalSemaSource::GetExternalCXXBaseSpecifiers( |
| 81 | uint64_t Offset){ |
| 82 | for(size_t i = 0; i < Sources.size(); ++i) |
| 83 | if (CXXBaseSpecifier *R = Sources[i]->GetExternalCXXBaseSpecifiers(Offset)) |
| 84 | return R; |
Craig Topper | c3ec149 | 2014-05-26 06:22:03 +0000 | [diff] [blame] | 85 | return nullptr; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 86 | } |
| 87 | |
Richard Smith | c2bb818 | 2015-03-24 06:36:48 +0000 | [diff] [blame] | 88 | CXXCtorInitializer ** |
| 89 | MultiplexExternalSemaSource::GetExternalCXXCtorInitializers(uint64_t Offset) { |
| 90 | for (auto *S : Sources) |
| 91 | if (auto *R = S->GetExternalCXXCtorInitializers(Offset)) |
| 92 | return R; |
| 93 | return nullptr; |
| 94 | } |
| 95 | |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 96 | ExternalASTSource::ExtKind |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 97 | MultiplexExternalSemaSource::hasExternalDefinitions(const Decl *D) { |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 98 | for (const auto &S : Sources) |
David Blaikie | 1ac9c98 | 2017-04-11 21:13:37 +0000 | [diff] [blame] | 99 | if (auto EK = S->hasExternalDefinitions(D)) |
David Blaikie | 9ffe5a3 | 2017-01-30 05:00:26 +0000 | [diff] [blame] | 100 | if (EK != EK_ReplyHazy) |
| 101 | return EK; |
| 102 | return EK_ReplyHazy; |
| 103 | } |
| 104 | |
Richard Smith | 9ce12e3 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 105 | bool MultiplexExternalSemaSource:: |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 106 | FindExternalVisibleDeclsByName(const DeclContext *DC, DeclarationName Name) { |
Richard Smith | 9ce12e3 | 2013-02-07 03:30:24 +0000 | [diff] [blame] | 107 | bool AnyDeclsFound = false; |
| 108 | for (size_t i = 0; i < Sources.size(); ++i) |
| 109 | AnyDeclsFound |= Sources[i]->FindExternalVisibleDeclsByName(DC, Name); |
| 110 | return AnyDeclsFound; |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | void MultiplexExternalSemaSource::completeVisibleDeclsMap(const DeclContext *DC){ |
| 114 | for(size_t i = 0; i < Sources.size(); ++i) |
| 115 | Sources[i]->completeVisibleDeclsMap(DC); |
| 116 | } |
| 117 | |
Richard Smith | 3cb1572 | 2015-08-05 22:41:45 +0000 | [diff] [blame] | 118 | void MultiplexExternalSemaSource::FindExternalLexicalDecls( |
| 119 | const DeclContext *DC, llvm::function_ref<bool(Decl::Kind)> IsKindWeWant, |
| 120 | SmallVectorImpl<Decl *> &Result) { |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 121 | for(size_t i = 0; i < Sources.size(); ++i) |
Richard Smith | 3cb1572 | 2015-08-05 22:41:45 +0000 | [diff] [blame] | 122 | Sources[i]->FindExternalLexicalDecls(DC, IsKindWeWant, Result); |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 123 | } |
| 124 | |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 125 | void MultiplexExternalSemaSource::FindFileRegionDecls(FileID File, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 126 | unsigned Offset, |
| 127 | unsigned Length, |
| 128 | SmallVectorImpl<Decl *> &Decls){ |
| 129 | for(size_t i = 0; i < Sources.size(); ++i) |
| 130 | Sources[i]->FindFileRegionDecls(File, Offset, Length, Decls); |
| 131 | } |
| 132 | |
| 133 | void MultiplexExternalSemaSource::CompleteType(TagDecl *Tag) { |
| 134 | for(size_t i = 0; i < Sources.size(); ++i) |
| 135 | Sources[i]->CompleteType(Tag); |
| 136 | } |
| 137 | |
| 138 | void MultiplexExternalSemaSource::CompleteType(ObjCInterfaceDecl *Class) { |
| 139 | for(size_t i = 0; i < Sources.size(); ++i) |
| 140 | Sources[i]->CompleteType(Class); |
| 141 | } |
| 142 | |
| 143 | void MultiplexExternalSemaSource::ReadComments() { |
| 144 | for(size_t i = 0; i < Sources.size(); ++i) |
| 145 | Sources[i]->ReadComments(); |
| 146 | } |
| 147 | |
| 148 | void MultiplexExternalSemaSource::StartedDeserializing() { |
| 149 | for(size_t i = 0; i < Sources.size(); ++i) |
| 150 | Sources[i]->StartedDeserializing(); |
| 151 | } |
| 152 | |
| 153 | void MultiplexExternalSemaSource::FinishedDeserializing() { |
| 154 | for(size_t i = 0; i < Sources.size(); ++i) |
| 155 | Sources[i]->FinishedDeserializing(); |
| 156 | } |
| 157 | |
| 158 | void MultiplexExternalSemaSource::StartTranslationUnit(ASTConsumer *Consumer) { |
| 159 | for(size_t i = 0; i < Sources.size(); ++i) |
| 160 | Sources[i]->StartTranslationUnit(Consumer); |
| 161 | } |
| 162 | |
| 163 | void MultiplexExternalSemaSource::PrintStats() { |
| 164 | for(size_t i = 0; i < Sources.size(); ++i) |
| 165 | Sources[i]->PrintStats(); |
| 166 | } |
| 167 | |
Raphael Isemann | 025d620c | 2018-01-22 15:27:25 +0000 | [diff] [blame] | 168 | Module *MultiplexExternalSemaSource::getModule(unsigned ID) { |
| 169 | for (size_t i = 0; i < Sources.size(); ++i) |
| 170 | if (auto M = Sources[i]->getModule(ID)) |
| 171 | return M; |
| 172 | return nullptr; |
| 173 | } |
| 174 | |
Hans Wennborg | 08c5a7b | 2018-06-25 13:23:49 +0000 | [diff] [blame] | 175 | bool MultiplexExternalSemaSource::DeclIsFromPCHWithObjectFile(const Decl *D) { |
| 176 | for (auto *S : Sources) |
| 177 | if (S->DeclIsFromPCHWithObjectFile(D)) |
| 178 | return true; |
| 179 | return false; |
| 180 | } |
| 181 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 182 | bool MultiplexExternalSemaSource::layoutRecordType(const RecordDecl *Record, |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 183 | uint64_t &Size, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 184 | uint64_t &Alignment, |
| 185 | llvm::DenseMap<const FieldDecl *, uint64_t> &FieldOffsets, |
| 186 | llvm::DenseMap<const CXXRecordDecl *, CharUnits> &BaseOffsets, |
| 187 | llvm::DenseMap<const CXXRecordDecl *, CharUnits> &VirtualBaseOffsets){ |
| 188 | for(size_t i = 0; i < Sources.size(); ++i) |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 189 | if (Sources[i]->layoutRecordType(Record, Size, Alignment, FieldOffsets, |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 190 | BaseOffsets, VirtualBaseOffsets)) |
| 191 | return true; |
| 192 | return false; |
| 193 | } |
| 194 | |
| 195 | void MultiplexExternalSemaSource:: |
| 196 | getMemoryBufferSizes(MemoryBufferSizes &sizes) const { |
| 197 | for(size_t i = 0; i < Sources.size(); ++i) |
| 198 | Sources[i]->getMemoryBufferSizes(sizes); |
| 199 | |
| 200 | } |
| 201 | |
| 202 | //===----------------------------------------------------------------------===// |
| 203 | // ExternalSemaSource. |
| 204 | //===----------------------------------------------------------------------===// |
| 205 | |
| 206 | |
| 207 | void MultiplexExternalSemaSource::InitializeSema(Sema &S) { |
| 208 | for(size_t i = 0; i < Sources.size(); ++i) |
| 209 | Sources[i]->InitializeSema(S); |
| 210 | } |
| 211 | |
| 212 | void MultiplexExternalSemaSource::ForgetSema() { |
| 213 | for(size_t i = 0; i < Sources.size(); ++i) |
| 214 | Sources[i]->ForgetSema(); |
| 215 | } |
| 216 | |
| 217 | void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { |
| 218 | for(size_t i = 0; i < Sources.size(); ++i) |
| 219 | Sources[i]->ReadMethodPool(Sel); |
| 220 | } |
| 221 | |
Manman Ren | a0f31a0 | 2016-04-29 19:04:05 +0000 | [diff] [blame] | 222 | void MultiplexExternalSemaSource::updateOutOfDateSelector(Selector Sel) { |
| 223 | for(size_t i = 0; i < Sources.size(); ++i) |
| 224 | Sources[i]->updateOutOfDateSelector(Sel); |
| 225 | } |
| 226 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 227 | void MultiplexExternalSemaSource::ReadKnownNamespaces( |
| 228 | SmallVectorImpl<NamespaceDecl*> &Namespaces){ |
| 229 | for(size_t i = 0; i < Sources.size(); ++i) |
| 230 | Sources[i]->ReadKnownNamespaces(Namespaces); |
| 231 | } |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 232 | |
Nick Lewycky | 9c7eb1d | 2013-02-01 08:13:20 +0000 | [diff] [blame] | 233 | void MultiplexExternalSemaSource::ReadUndefinedButUsed( |
Richard Smith | d6a04d7 | 2016-03-25 21:49:43 +0000 | [diff] [blame] | 234 | llvm::MapVector<NamedDecl *, SourceLocation> &Undefined) { |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 235 | for(size_t i = 0; i < Sources.size(); ++i) |
Nick Lewycky | 9c7eb1d | 2013-02-01 08:13:20 +0000 | [diff] [blame] | 236 | Sources[i]->ReadUndefinedButUsed(Undefined); |
Nick Lewycky | 8334af8 | 2013-01-26 00:35:08 +0000 | [diff] [blame] | 237 | } |
Ismail Pazarbasi | e5768d1 | 2015-05-18 19:59:11 +0000 | [diff] [blame] | 238 | |
| 239 | void MultiplexExternalSemaSource::ReadMismatchingDeleteExpressions( |
| 240 | llvm::MapVector<FieldDecl *, |
| 241 | llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> & |
| 242 | Exprs) { |
| 243 | for (auto &Source : Sources) |
| 244 | Source->ReadMismatchingDeleteExpressions(Exprs); |
| 245 | } |
| 246 | |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 247 | bool MultiplexExternalSemaSource::LookupUnqualified(LookupResult &R, Scope *S){ |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 248 | for(size_t i = 0; i < Sources.size(); ++i) |
| 249 | Sources[i]->LookupUnqualified(R, S); |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 250 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 251 | return !R.empty(); |
| 252 | } |
| 253 | |
| 254 | void MultiplexExternalSemaSource::ReadTentativeDefinitions( |
| 255 | SmallVectorImpl<VarDecl*> &TentativeDefs) { |
| 256 | for(size_t i = 0; i < Sources.size(); ++i) |
| 257 | Sources[i]->ReadTentativeDefinitions(TentativeDefs); |
| 258 | } |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 259 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 260 | void MultiplexExternalSemaSource::ReadUnusedFileScopedDecls( |
| 261 | SmallVectorImpl<const DeclaratorDecl*> &Decls) { |
| 262 | for(size_t i = 0; i < Sources.size(); ++i) |
| 263 | Sources[i]->ReadUnusedFileScopedDecls(Decls); |
| 264 | } |
Fangrui Song | 6907ce2 | 2018-07-30 19:24:48 +0000 | [diff] [blame] | 265 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 266 | void MultiplexExternalSemaSource::ReadDelegatingConstructors( |
| 267 | SmallVectorImpl<CXXConstructorDecl*> &Decls) { |
| 268 | for(size_t i = 0; i < Sources.size(); ++i) |
| 269 | Sources[i]->ReadDelegatingConstructors(Decls); |
| 270 | } |
| 271 | |
| 272 | void MultiplexExternalSemaSource::ReadExtVectorDecls( |
| 273 | SmallVectorImpl<TypedefNameDecl*> &Decls) { |
| 274 | for(size_t i = 0; i < Sources.size(); ++i) |
| 275 | Sources[i]->ReadExtVectorDecls(Decls); |
| 276 | } |
| 277 | |
Nico Weber | 7288943 | 2014-09-06 01:25:55 +0000 | [diff] [blame] | 278 | void MultiplexExternalSemaSource::ReadUnusedLocalTypedefNameCandidates( |
| 279 | llvm::SmallSetVector<const TypedefNameDecl *, 4> &Decls) { |
| 280 | for(size_t i = 0; i < Sources.size(); ++i) |
| 281 | Sources[i]->ReadUnusedLocalTypedefNameCandidates(Decls); |
| 282 | } |
| 283 | |
Axel Naumann | dd433f0 | 2012-10-18 19:05:02 +0000 | [diff] [blame] | 284 | void MultiplexExternalSemaSource::ReadReferencedSelectors( |
| 285 | SmallVectorImpl<std::pair<Selector, SourceLocation> > &Sels) { |
| 286 | for(size_t i = 0; i < Sources.size(); ++i) |
| 287 | Sources[i]->ReadReferencedSelectors(Sels); |
| 288 | } |
| 289 | |
| 290 | void MultiplexExternalSemaSource::ReadWeakUndeclaredIdentifiers( |
| 291 | SmallVectorImpl<std::pair<IdentifierInfo*, WeakInfo> > &WI) { |
| 292 | for(size_t i = 0; i < Sources.size(); ++i) |
| 293 | Sources[i]->ReadWeakUndeclaredIdentifiers(WI); |
| 294 | } |
| 295 | |
| 296 | void MultiplexExternalSemaSource::ReadUsedVTables( |
| 297 | SmallVectorImpl<ExternalVTableUse> &VTables) { |
| 298 | for(size_t i = 0; i < Sources.size(); ++i) |
| 299 | Sources[i]->ReadUsedVTables(VTables); |
| 300 | } |
| 301 | |
| 302 | void MultiplexExternalSemaSource::ReadPendingInstantiations( |
| 303 | SmallVectorImpl<std::pair<ValueDecl*, |
| 304 | SourceLocation> > &Pending) { |
| 305 | for(size_t i = 0; i < Sources.size(); ++i) |
| 306 | Sources[i]->ReadPendingInstantiations(Pending); |
| 307 | } |
Richard Smith | e40f2ba | 2013-08-07 21:41:30 +0000 | [diff] [blame] | 308 | |
| 309 | void MultiplexExternalSemaSource::ReadLateParsedTemplates( |
Justin Lebar | 28f09c5 | 2016-10-10 16:26:08 +0000 | [diff] [blame] | 310 | llvm::MapVector<const FunctionDecl *, std::unique_ptr<LateParsedTemplate>> |
| 311 | &LPTMap) { |
Richard Smith | e40f2ba | 2013-08-07 21:41:30 +0000 | [diff] [blame] | 312 | for (size_t i = 0; i < Sources.size(); ++i) |
| 313 | Sources[i]->ReadLateParsedTemplates(LPTMap); |
| 314 | } |
Kaelyn Uhrain | f0aabda | 2013-08-12 19:54:38 +0000 | [diff] [blame] | 315 | |
| 316 | TypoCorrection MultiplexExternalSemaSource::CorrectTypo( |
| 317 | const DeclarationNameInfo &Typo, |
| 318 | int LookupKind, Scope *S, CXXScopeSpec *SS, |
| 319 | CorrectionCandidateCallback &CCC, |
| 320 | DeclContext *MemberContext, |
| 321 | bool EnteringContext, |
| 322 | const ObjCObjectPointerType *OPT) { |
| 323 | for (size_t I = 0, E = Sources.size(); I < E; ++I) { |
| 324 | if (TypoCorrection C = Sources[I]->CorrectTypo(Typo, LookupKind, S, SS, CCC, |
| 325 | MemberContext, |
| 326 | EnteringContext, OPT)) |
| 327 | return C; |
| 328 | } |
| 329 | return TypoCorrection(); |
| 330 | } |
Kaelyn Uhrain | 2c351bb | 2013-08-12 22:11:14 +0000 | [diff] [blame] | 331 | |
| 332 | bool MultiplexExternalSemaSource::MaybeDiagnoseMissingCompleteType( |
| 333 | SourceLocation Loc, QualType T) { |
| 334 | for (size_t I = 0, E = Sources.size(); I < E; ++I) { |
| 335 | if (Sources[I]->MaybeDiagnoseMissingCompleteType(Loc, T)) |
| 336 | return true; |
| 337 | } |
| 338 | return false; |
| 339 | } |