mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix CCE
This commit is contained in:
parent
6d4eea9995
commit
b3608892c4
1 changed files with 5 additions and 4 deletions
|
@ -936,11 +936,12 @@ public class CModelBuilder2 implements IContributedModelBuilder {
|
|||
methodElement= new Method(parent, ASTStringUtil.getQualifiedName(name));
|
||||
}
|
||||
element= methodElement;
|
||||
final ICPPMethod methodBinding;
|
||||
ICPPMethod methodBinding= null;
|
||||
if (scope != null) {
|
||||
methodBinding= (ICPPMethod)simpleName.getBinding();
|
||||
} else {
|
||||
methodBinding= null;
|
||||
final IBinding binding= simpleName.getBinding();
|
||||
if (binding instanceof ICPPMethod) {
|
||||
methodBinding= (ICPPMethod)binding;
|
||||
}
|
||||
}
|
||||
if (methodBinding != null) {
|
||||
methodElement.setVirtual(methodBinding.isVirtual());
|
||||
|
|
Loading…
Add table
Reference in a new issue