mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Cosmetics.
This commit is contained in:
parent
0c4ddcf922
commit
4e5201e47c
1 changed files with 10 additions and 10 deletions
|
@ -32,9 +32,9 @@ import org.eclipse.cdt.core.index.IIndexFileSet;
|
||||||
import org.eclipse.cdt.core.parser.util.CharArrayObjectMap;
|
import org.eclipse.cdt.core.parser.util.CharArrayObjectMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Models the scope represented by an unknown type (e.g.: typeof(template type parameter)). Used within
|
* Models the scope represented by an unknown type (e.g.: typeof(template type parameter)).
|
||||||
* the context of templates, only.
|
* Used within the context of templates, only. For safe usage in index bindings, all fields need
|
||||||
* For safe usage in index bindings, all fields need to be final or used in a thread-safe manner otherwise.
|
* to be final or used in a thread-safe manner otherwise.
|
||||||
*/
|
*/
|
||||||
public class CPPUnknownTypeScope implements ICPPInternalUnknownScope {
|
public class CPPUnknownTypeScope implements ICPPInternalUnknownScope {
|
||||||
private final IASTName fName;
|
private final IASTName fName;
|
||||||
|
@ -176,7 +176,7 @@ public class CPPUnknownTypeScope implements ICPPInternalUnknownScope {
|
||||||
|
|
||||||
protected IBinding getOrCreateBinding(final char[] name, int idx) {
|
protected IBinding getOrCreateBinding(final char[] name, int idx) {
|
||||||
if (map == null)
|
if (map == null)
|
||||||
map = new CharArrayObjectMap<IBinding[]>(2);
|
map = new CharArrayObjectMap<>(2);
|
||||||
|
|
||||||
IBinding[] o = map.get(name);
|
IBinding[] o = map.get(name);
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
|
@ -204,7 +204,7 @@ public class CPPUnknownTypeScope implements ICPPInternalUnknownScope {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addBinding(IBinding binding) {
|
public void addBinding(IBinding binding) {
|
||||||
// do nothing, this is part of template magic and not a normal scope
|
// Do nothing, this is part of template magic and not a normal scope.
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue