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:
parent
1d2c6d0f73
commit
556a433366
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue