Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAlena Laskavaia2009-11-21 03:03:08 +0000
committerAlena Laskavaia2009-11-21 03:03:08 +0000
commitda6cc58f76c6cd84d9296213c1c81a07048dd9f9 (patch)
tree7e3bb57bd36996928fd797f2f2c432d17576f86b /codan
parent7a2a27726ab40e4267f349d1d31e96b145d1a449 (diff)
downloadorg.eclipse.cdt-da6cc58f76c6cd84d9296213c1c81a07048dd9f9.tar.gz
org.eclipse.cdt-da6cc58f76c6cd84d9296213c1c81a07048dd9f9.tar.xz
org.eclipse.cdt-da6cc58f76c6cd84d9296213c1c81a07048dd9f9.zip
- fixed error ast node
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/SuggestedParenthesisChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/SuggestedParenthesisChecker.java b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/SuggestedParenthesisChecker.java
index 32b335e3539..27712b460bb 100644
--- a/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/SuggestedParenthesisChecker.java
+++ b/codan/org.eclipse.cdt.codan.checkers/src/org/eclipse/cdt/codan/checkers/sample/SuggestedParenthesisChecker.java
@@ -50,7 +50,7 @@ public class SuggestedParenthesisChecker extends AbstractIndexAstChecker {
int precedence = getPrecedence(expression);
if (precedence == 2) { // unary not
if (isUsedAsOperand(expression)) {
- reportProblem(ER_ID, svis.other,
+ reportProblem(ER_ID, expression,
"Suggested parenthesis around expression");
return PROCESS_SKIP;
}

Back to the top