diff options
author | Nathan Ridge | 2016-10-15 05:34:43 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2016-10-26 05:18:55 +0000 |
commit | d77511f4c409c7aba2f75bace8d1800224d6d272 (patch) | |
tree | b8229fa13723306ac6485bce4988d7b9de4a10eb /codan/org.eclipse.cdt.codan.core.cxx | |
parent | d1528d0c5dd387f22ab9ac5f9fc3c655a7a0d977 (diff) | |
download | org.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
Change-Id: Ib96879ec50bdc5a14215abbe6d109bcf3767d4f4
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.java | 4 |
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) { |