1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

- added catch by pointer as exception

This commit is contained in:
Alena Laskavaia 2010-04-18 02:27:24 +00:00
parent 1d2c6d0f73
commit 556a433366

View file

@ -16,6 +16,7 @@ import org.eclipse.cdt.core.dom.ast.ASTVisitor;
import org.eclipse.cdt.core.dom.ast.IASTDeclSpecifier;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTPointer;
import org.eclipse.cdt.core.dom.ast.IASTPointerOperator;
import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTStatement;
@ -84,6 +85,7 @@ public class CatchByReference extends AbstractIndexAstChecker {
}
/**
* If it uses reference or ponter
* @param catchHandler
* @return
*/
@ -99,6 +101,9 @@ public class CatchByReference extends AbstractIndexAstChecker {
if (po instanceof ICPPASTReferenceOperator) {
return true;
}
if (po instanceof IASTPointer) {
return true;
}
}
}
}