Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371054 - Indexer array/pointer resolution
Summary: Indexer array/pointer resolution
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 05:20 EST by Yann Diorcet CLA
Modified: 2012-04-04 08:57 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Diorcet CLA 2012-02-09 05:20:22 EST
Indexer fail on pointer on object array.
For example:
	string tt[1];
	tt[0].clear();
	tt->clear();

The second and the third line have the same goal but third is not resolved by the indexer.
Comment 1 Doug Schaefer CLA 2012-02-09 11:54:35 EST
While technically valid, that is pretty bad code...
Comment 2 Markus Schorn CLA 2012-02-10 02:29:21 EST
This works for me. Please specify the exact version of CDT you are using. Why do you think that the indexer does not resolve the third line?
Comment 3 Yann Diorcet CLA 2012-02-10 03:17:54 EST
Version: Indigo Service Release 1
Build id: 20110916-0149

Eclipse shows:
Method 'clear' could not be resolved
Comment 4 Yann Diorcet CLA 2012-02-13 12:08:15 EST
Have you succeeded to reproduce the same behavior?
Comment 5 Markus Schorn CLA 2012-04-04 08:57:13 EDT
(In reply to comment #4)
> Have you succeeded to reproduce the same behavior?

Yes, I can reproduce the problem with CDT 8.0.1. It works with the version on HEAD.