mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 45203. Fixed accounting of already processed bindings.
This commit is contained in:
parent
b603ca080d
commit
c20748bf30
1 changed files with 15 additions and 3 deletions
|
@ -288,9 +288,17 @@ public class BindingClassifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canForwardDeclare(requiredBinding)) {
|
if (canForwardDeclare(requiredBinding)) {
|
||||||
fBindingsToDeclare.add(requiredBinding);
|
if (requiredBinding == binding) {
|
||||||
|
fBindingsToDeclare.add(requiredBinding);
|
||||||
|
} else {
|
||||||
|
declareBinding(requiredBinding);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fBindingsToDefine.add(requiredBinding);
|
if (requiredBinding == binding) {
|
||||||
|
fBindingsToDefine.add(requiredBinding);
|
||||||
|
} else {
|
||||||
|
defineBinding(requiredBinding);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,7 +368,11 @@ public class BindingClassifier {
|
||||||
List<IBinding> requiredBindings = getRequiredBindings(binding);
|
List<IBinding> requiredBindings = getRequiredBindings(binding);
|
||||||
for (IBinding requiredBinding : requiredBindings) {
|
for (IBinding requiredBinding : requiredBindings) {
|
||||||
fBindingsToDeclare.remove(requiredBinding);
|
fBindingsToDeclare.remove(requiredBinding);
|
||||||
fBindingsToDefine.add(requiredBinding);
|
if (requiredBinding == binding) {
|
||||||
|
fBindingsToDefine.add(requiredBinding);
|
||||||
|
} else {
|
||||||
|
defineBinding(requiredBinding);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue