Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318843 - Indexer hangs on png_dynamic_io.hpp
Summary: Indexer hangs on png_dynamic_io.hpp
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 5.0.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 6.0.2   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 04:44 EDT by Stuart McDonald CLA
Modified: 2010-07-05 09:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart McDonald CLA 2010-07-05 04:44:02 EDT
Just started using Eclipse on a Fedora machine, it's based on version 3.4.2 with CDT 5.0.2.200903191301 and if I have a single source with
[CODE]#include <boost/gil/extension/io/png_dynamic_io.hpp>[/CODE]
The indexer hangs; fast or full index. Also tried skip all references.

If it replace the #include with the actual file contents then it doesn't hang.
type filter text
Comment 1 Markus Schorn CLA 2010-07-05 09:58:08 EDT
In general versions before CDT 6.0 don't work well for code with c++ templates. You need to upgrade CDT. Your specific example is a performance issue. It takes 19 minutes to index the file plus its headers. In CDT 6.0.2 or 7.0 the same code is indexed in 47 sec. 

When you paste the content of the header into the source file, the indexer no longer picks up some of the includes, which makes it fast but incomplete.


Here are the statistics:

5.0.2: (1 sources, 601 headers) in 1,147.11 sec: 
   53,990 declarations; 513,881 references; 
   1 unresolved inclusions; 76 syntax errors; 6,453 unresolved names (1.12%)

6.0.2: (1 sources, 610 headers) in 46.62 sec: 
   54,017 declarations; 437,202 references; 
   3 unresolved inclusions; 76 syntax errors; 2,161 unresolved names (0.44%)

7.0.0: (1 sources, 610 headers) in 47.76 sec: 
   53,903 declarations; 437,509 references; 
   3 unresolved inclusions; 74 syntax errors; 2,112 unresolved names (0.43%)

5.0.2 with header pasted into source: (1 sources, 119 headers) in 2.08 sec: 
   8,389 declarations; 17,165 references; 
   5 unresolved inclusions; 0 syntax errors; 535 unresolved names (2.05%)