if (!hasExternalVisibleStorage() && !hasExternalLexicalStorage() && Name) {
lookup_result LookupResults = lookup(Name);
Results.insert(Results.end(), LookupResults.begin(), LookupResults.end());
- return;
+ if (!Results.empty())
+ return;
}
// If we have a lookup table, check there first. Maybe we'll get lucky.
FooDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls);
EXPECT_EQ(FoundDecls.size(), 0u);
- // Cannot find in the LookupTable of its LexicalDC (A).
+ // Finds via linear search of its LexicalDC (A).
FooLexicalDC->getRedeclContext()->localUncachedLookup(FooName, FoundDecls);
- EXPECT_EQ(FoundDecls.size(), 0u);
+ EXPECT_EQ(FoundDecls.size(), 1u);
// Can't find in the list of Decls of the DC.
EXPECT_EQ(findInDeclListOfDC(FooDC, FooName), nullptr);
self.main_source_file = lldb.SBFileSpec("main.cpp")
@add_test_categories(["gmodules"])
- @skipIf(bugnumber='rdar://96581048')
def test_same_template_arg(self):
lldbutil.run_to_source_breakpoint(self, "Break here", self.main_source_file)
])
@add_test_categories(["gmodules"])
- @skipIf(bugnumber='rdar://96581048')
def test_duplicate_decls(self):
lldbutil.run_to_source_breakpoint(self, "Break here", self.main_source_file)