Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349647

Summary: After running C/C++ indexer, cannot find references for a function
Product: [Tools] CDT Reporter: Kevin Connor Arpe <kevin.c.arpe>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED WORKSFORME QA Contact: Markus Schorn <mschorn.eclipse>
Severity: major    
Priority: P3 CC: cdtdoug, kevin.c.arpe, markus.wypych.sp, waste.manager, yevshif, zeratul976
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kevin Connor Arpe CLA 2011-06-17 02:30:42 EDT
Build Identifier: 20110301-1815

I have a large C/C++ project in CDT.  About 1000 header files and source files.

Right click on root -> Index -> Freshen All Files
(wait a while)

Open a source file.
Put my cursor in the name of one function.
Right click -> References -> Project

Search window says: (0 matches)

I use regular File Search for function name... I find references.

Something interesting to note:
This project is checked out using Subclipse (SVN for Eclipse).
I noticed the indexer always falls out of date after an update.
Takes a few "Refresh" or "Index -> Freshen All Files" to get things working again.

My Subclipse plug-in is 2.2.3

Reproducible: Sometimes

Steps to Reproduce:
See details above.
Comment 1 Markus CLA 2011-06-20 04:22:30 EDT
Hello together,

the problem exists also for me. We have also a Project with approx. an equal amount of header and source files. The Indexer isn't able to find all references for functions. I use the latest version of source navigator for crossreferencing instead, but I would love to have all in one tool. 

sincerely

M
Comment 2 Markus Schorn CLA 2011-06-29 08:36:42 EDT
Sounds similar to bug 302767. Are there any suspicious log-entries in <workspace>/.log/.metadata ?
Comment 3 Nathan Ridge CLA 2017-01-10 02:23:41 EST
If you're still seeing this, please reopen and provide the information requested in comment 2.