mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
fix bug 89255
This commit is contained in:
parent
2ea954d056
commit
55b8cf6afa
2 changed files with 10 additions and 3 deletions
|
@ -1476,8 +1476,11 @@ public class CompleteParser2Tests extends TestCase {
|
|||
|
||||
ICPPConstructor ctor = A.getConstructors()[0];
|
||||
|
||||
IProblemBinding fp = (IProblemBinding) col.getName(12).resolveBinding();
|
||||
assertEquals( fp.getID(), IProblemBinding.SEMANTIC_NAME_NOT_FOUND );
|
||||
|
||||
assertInstances( col, N, 3 );
|
||||
assertInstances( col, f, 2 );
|
||||
assertInstances( col, f, 1 );
|
||||
assertInstances( col, A, 3 );
|
||||
assertInstances( col, ctor, 2 );
|
||||
}
|
||||
|
|
|
@ -724,8 +724,12 @@ public class CPPSemantics {
|
|||
return;
|
||||
|
||||
//if still not found, loop and check our containing scope
|
||||
if( data.qualified() && !data.usingDirectives.isEmpty() )
|
||||
data.usingDirectivesOnly = true;
|
||||
if( data.qualified() ) {
|
||||
if( !data.usingDirectives.isEmpty() )
|
||||
data.usingDirectivesOnly = true;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if( blockItem != null )
|
||||
node = blockItem;
|
||||
|
|
Loading…
Add table
Reference in a new issue