Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2016-10-15 05:34:43 +0000
committerGerrit Code Review @ Eclipse.org2016-10-26 05:18:55 +0000
commitd77511f4c409c7aba2f75bace8d1800224d6d272 (patch)
treeb8229fa13723306ac6485bce4988d7b9de4a10eb /codan/org.eclipse.cdt.codan.core.cxx
parentd1528d0c5dd387f22ab9ac5f9fc3c655a7a0d977 (diff)
downloadorg.eclipse.cdt-d77511f4c409c7aba2f75bace8d1800224d6d272.tar.gz
org.eclipse.cdt-d77511f4c409c7aba2f75bace8d1800224d6d272.tar.xz
org.eclipse.cdt-d77511f4c409c7aba2f75bace8d1800224d6d272.zip
Bug 496720 - Respect scope filters for AST-based checkers
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core.cxx')
-rw-r--r--codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java
index d1b9a8ce869..2d3e2823467 100644
--- a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java
+++ b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/model/AbstractIndexAstChecker.java
@@ -152,13 +152,13 @@ public abstract class AbstractIndexAstChecker extends AbstractCheckerWithProblem
protected boolean shouldProduceProblem(IProblem problem, IProblemLocation loc, Object... args) {
String suppressionComment = (String) getSuppressionCommentPreference(problem).getValue();
if (suppressionComment.isEmpty())
- return true;
+ return super.shouldProduceProblem(problem, loc, args);
List<IASTComment> lineComments = getLineCommentsForLocation(loc);
for (IASTComment astComment : lineComments) {
if (astComment.getRawSignature().contains(suppressionComment))
return false;
}
- return true;
+ return super.shouldProduceProblem(problem, loc, args);
}
protected List<IASTComment> getLineCommentsForLocation(IProblemLocation loc) {

Back to the top