Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Codan and CDT6.0 ?


I've just installed the codan feature out of the latest CDT 7.0 build (I201003261023) in my CDT 6.0 and played around a little bit with it, because I probably want to use it for style checkers etc. in our company. First I thought the "as you type check" is not enabled, until I've seen errors in the log.

Opening the codan page in the project properties causes an error, too.

Should it be possible to use codan with CDT 6.0 ?
Looking on the plugin requirements it should be possible.

Since we've no access to CVS, it would be nice if the source would be included in the plugins ;)


Here are the log entries:

as you type check:
java.lang.NullPointerException: file
        at org.eclipse.cdt.codan.internal.core.model.CodanMarkerProblemReporter.reportProblem(
        at org.eclipse.cdt.codan.core.cxx.model.AbstractIndexAstChecker.reportProblem(
        at org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisChecker$ExpressionVisitor.visit(
        at org.eclipse.cdt.internal.core.dom.parser.c.CASTUnaryExpression.accept(

project properties:
java.lang.ClassCastException: org.eclipse.cdt.internal.core.model.CProject cannot be cast to org.eclipse.core.resources.IProject
        at org.eclipse.cdt.codan.internal.ui.preferences.FieldEditorOverlayPage.createControl(
        at org.eclipse.jface.preference.PreferenceDialog.createPageControl(
        at org.eclipse.jface.preference.PreferenceDialog$

Back to the top