Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343343 - DBCS4.1: Variable search not working in CDT C++ Search.
Summary: DBCS4.1: Variable search not working in CDT C++ Search.
Status: RESOLVED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 03:05 EDT by Harendra CLA
Modified: 2011-04-20 03:58 EDT (History)
5 users (show)

See Also:


Attachments
Screen capture. (215.99 KB, image/png)
2011-04-20 03:07 EDT, Harendra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.