Skip to content

Commit f82d789

Browse files
committed
Fixes issue #44. Never reuse a checker after run was executed there.
1 parent 54cd7b6 commit f82d789

File tree

1 file changed

+3
-0
lines changed
  • com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui

1 file changed

+3
-0
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/Builder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class Builder extends IncrementalProjectBuilder {
3737
public static final String[] VALID_EXTENSIONS = { ".cpp", ".cxx", ".c++", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
3838
".cc", ".c", ".txx" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
3939

40+
// FIXME: Only one checker per builder, but multiple calls of processResource possible
4041
private Checker checker;
4142
private IProject project;
4243
private final IConsole console;
@@ -138,6 +139,8 @@ public void runChecker() throws CoreException {
138139
"Could not run cppcheck", e); //$NON-NLS-1$
139140
throw new CoreException(status);
140141
}
142+
// reset checker so that is is not reused
143+
checker = null;
141144
}
142145
}
143146

0 commit comments

Comments
 (0)