Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316154 - [f.n.] Codan does not find errors in inner functions
Summary: [f.n.] Codan does not find errors in inner functions
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-codan (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Elena Laskavaia CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-08 11:06 EDT by Elena Laskavaia CLA
Modified: 2010-06-16 21:23 EDT (History)
2 users (show)

See Also:
elaskavaia.cdt: review? (eclipse.sprigogin)


Attachments
patch (2.05 KB, patch)
2010-06-09 20:41 EDT, Elena Laskavaia CLA
elaskavaia.cdt: iplog-
Details | Diff
patch with tests (5.47 KB, patch)
2010-06-09 20:42 EDT, Elena Laskavaia CLA
elaskavaia.cdt: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Laskavaia CLA 2010-06-08 11:06:01 EDT
void test() {
  class A {
   public:
    int m() {
      return; // won't report error here
    }
  };
}
Comment 1 Elena Laskavaia CLA 2010-06-09 20:41:28 EDT
Created attachment 171596 [details]
patch
Comment 2 Elena Laskavaia CLA 2010-06-09 20:42:54 EDT
Created attachment 171597 [details]
patch with tests
Comment 3 Elena Laskavaia CLA 2010-06-16 20:31:56 EDT
fixed on head and 7.0.1