CNDErrorHighlighting

C/C++ Error Highlighting

Team

Dev: Vladimir Kvashin (VK; NB nick: vkvashin), Alexey Vladykin (AV; NB nick: alexey_vladykin)

QA: Valery Soldatov (NB nick: soldatov)

Lead: Vladimir Kvashin


Charter

Discover and highlight syntax and semantic errors as soon as user opens the file or modifies it.

User View

Link to the user view

Goals

  • Two types of errors are implemented:
  • Syntax errors as such
    (i.e. constructs that can not be valid in C/C++ )
    - Disbalanced curly braces
    - Missed semicolons
    - Probably something else
  • Unresolved symbols
  • The inaccuracy is less than (average) 1 error in 10,000 lines of code (With the possible exception of "perverted" code)
  • No P1 or P2 issues.

Metrics

Projects to measure metrics on: the same set as for accuracy

Metrics definitions

File:///net/10.16.32.136/export/inaccuracy results

Test Plan

Plan

Schedule

Milestone Date Content
M0 Late May Planning, User View, Metrics (definition), Test Plan
M1 Late May Syntax errors detected by the parser are highlighted ("as is" - most likely the quality is low)
M2 Mid June Major issues from M1 solved
M3 Early July Unresolved symbols are highlighted
M4 FCS Quality raised to production level


Risks and dependencies

Link to risks and dependencies doc

Status and test results

M0 done

M1 done

M2 done, with the exception of the fact that since we decided not to display ANTLR-based parser messages as is, there is some work on message filtering left. (This work can be considered as fixing bugs.)

M3 done

Link to the test results

There are 3 groups of issues remaining

  • Inaccuracy isses (caused mostly by the lack of code model accuracy)
  • Filtering issues (filtering out meaningful messages from ANTLR messages)
  • Several usability issues that cause infrastructure changes

Design secifications

Design docs

Unit tests

Some unit tests are planned, but aren't yet implemented.

Issuezilla

Status Whiteboard keyword: error_hl

(click on the keyword above to get issues list)

Main feature IZ: 87684

Common code model issues 87684 depends on

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo