We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0b831 commit b2a82f9Copy full SHA for b2a82f9
lldb/source/Plugins/ExpressionParser/Clang/ASTUtils.h
@@ -281,9 +281,16 @@ class SemaSourceWithPriorities : public ImporterBackedASTSource {
281
return nullptr;
282
}
283
284
+ /// Call ExternalASTSource::CompleteRedeclChain(D)
285
+ /// on each AST source. Returns as soon as we got
286
+ /// a definition for D.
287
void CompleteRedeclChain(const clang::Decl *D) override {
- for (size_t i = 0; i < Sources.size(); ++i)
288
+ for (size_t i = 0; i < Sources.size(); ++i) {
289
Sources[i]->CompleteRedeclChain(D);
290
+ if (auto *td = llvm::dyn_cast<clang::TagDecl>(D))
291
+ if (td->getDefinition())
292
+ return;
293
+ }
294
295
296
clang::Selector GetExternalSelector(uint32_t ID) override {
0 commit comments