This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271297 - Clank hints: 'Unknown' type in Inspector tab
Summary: Clank hints: 'Unknown' type in Inspector tab
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-15 11:43 UTC by soldatov
Modified: 2017-08-18 14:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-08-15 11:43:36 UTC
Scenario;
- Create C++ project with such code:

int main(int argc, char** argv) {
    int i = 1/0;
    int a[2];
    a[4] = 1;
    return 0;
}
- Select project's node and push Source|Inspect...
- Select "Use Clank to get warning and static analysis diagnostics (Experimental)"
- Press Inspect button
- Press 'Categorize' button in Inspector tab
==> On top I see 'Unknown' message

+ Unknown (2)
|+ Unknown (2)
 |+ CppApplication_3 (2)
  |+ Source Files (2)
   |+ main.cpp (2)
    |- 3:division by zero is undefined
    |- 5:array index 4 is past the end of the array (which contains 2 elements)
Comment 1 Maria Tishkova 2017-08-18 14:04:17 UTC
fixed in cnd-main
changeset:   304462:36f9c615d425
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Fri Aug 18 17:02:44 2017 +0300