mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Only global scope in should be converted to file local.
This commit is contained in:
parent
b44d607a4f
commit
8146a961b8
1 changed files with 35 additions and 33 deletions
|
@ -359,8 +359,10 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
|
|||
} else if (binding instanceof IFunction) {
|
||||
IFunction f= (IFunction) binding;
|
||||
isFileLocal= ASTInternal.isStatic(f, false);
|
||||
} else if (binding instanceof ICPPUsingDeclaration ||
|
||||
binding instanceof ICPPNamespaceAlias) {
|
||||
} else if ((binding instanceof ICPPUsingDeclaration ||
|
||||
binding instanceof ICPPNamespaceAlias) && binding.getScope() == null) {
|
||||
// Using declarations and namespace aliases in global scope are restricted
|
||||
// to the containing file.
|
||||
isFileLocal= true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue