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

Bug 343343

Summary: DBCS4.1: Variable search not working in CDT C++ Search.
Product: [Tools] CDT Reporter: Harendra <harendra>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: RESOLVED WONTFIX QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: camle, cdtdoug, kennoji, kitlo, vivkong
Version: 8.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Screen capture. none

Description Harendra CLA 2011-04-20 03:05:48 EDT
Build Identifier: I20110412-2200

CDT Version:I201103111317
Java Version:1.6.0_24-b07-334
OS: Mac OS X
Locale: ja_JP.utf8
It works for other things such as Class name but doesnt seem to work for variable name.

Reproducible: Always

Steps to Reproduce:
1.Create a new C++ project and create a new class.
2. Add a variable in the class.
3. Go to Search->C++ search and type in the variable name and search.
4. No search results are produced.
Please refer to the screenshot.
Comment 1 Harendra CLA 2011-04-20 03:07:16 EDT
Created attachment 193656 [details]
Screen capture.
Comment 2 Markus Schorn CLA 2011-04-20 03:13:24 EDT
The C/C++ search (like the Java search) does not search for local variables or parameters, you need to use a Text Search instead.
Comment 3 Harendra CLA 2011-04-20 03:58:22 EDT
(In reply to comment #2)
> The C/C++ search (like the Java search) does not search for local variables or
> parameters, you need to use a Text Search instead.

Thanks for the clarification. Like you said it only does not work for local variables,
it does work for global ones. Hard to understand such limitation. Well, like you said
text search seems to be the best bet.