mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Fixed Bug 84092 - 2 problems with enum, getReferences and null node
This commit is contained in:
parent
e4e8d7c6d4
commit
88562cda49
1 changed files with 2 additions and 1 deletions
|
@ -1489,7 +1489,8 @@ public class CVisitor {
|
|||
} else if( statement instanceof IASTLabelStatement ){
|
||||
if( !visitName( ((IASTLabelStatement)statement).getName(), action ) ) return false;
|
||||
} else if( statement instanceof IASTReturnStatement ){
|
||||
if( !visitExpression( ((IASTReturnStatement) statement ).getReturnValue(), action ) ) return false;
|
||||
if( ((IASTReturnStatement) statement ).getReturnValue() != null )
|
||||
if( !visitExpression( ((IASTReturnStatement) statement ).getReturnValue(), action ) ) return false;
|
||||
} else if( statement instanceof IASTSwitchStatement ){
|
||||
if( !visitExpression( ((IASTSwitchStatement) statement ).getController(), action ) ) return false;
|
||||
if( !visitStatement( ((IASTSwitchStatement) statement ).getBody(), action ) ) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue