Bug 100568 - [All Declarations][All References] has internal error and displays "Search "()""
Summary: [All Declarations][All References] has internal error and displays "Search "()""
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Andrew Niefer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-06-17 09:24 EDT by Devin Steffler CLA
Modified: 2009-01-09 15:00 EST (History)
1 user (show)

See Also:


Attachments
fix for this PR (750 bytes, patch)
2005-06-17 09:54 EDT, Devin Steffler CLA
bjorn.freeman-benson: iplog+
Details | Diff
tests that depend on this PR (11.35 KB, patch)
2005-06-17 10:15 EDT, Devin Steffler CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Steffler CLA 2005-06-17 09:24:36 EDT
When I perform All Declarations on the x in test.c then I see the following 
error:
An internal error occurred during: "Search "()"".

The same thing happens for All References (even though there's no results for 
references there still shouldn't be an internal error).

I see this for both the DOM Indexer and CTags Indexer.

// test.h:
int x() {return 1;}
// test.c:
int f() {return x();} // All Declarations of x should find x in test.h
Comment 1 Devin Steffler CLA 2005-06-17 09:54:26 EDT
Created attachment 23437 [details]
fix for this PR

Vlad, can you take a look at this patch?
Comment 2 Devin Steffler CLA 2005-06-17 09:59:22 EDT
Note:  I just realized that this patch also fixes the 7 failures from the 
AutomatedSuite tests.
Comment 3 Devin Steffler CLA 2005-06-17 10:15:58 EDT
Created attachment 23442 [details]
tests that depend on this PR

Can you apply this patch once this gets fixed?	Since 97079, 96689, and 96690
have been fixed.
Comment 4 Andrew Niefer CLA 2005-06-17 10:18:29 EDT
I can do this
Comment 5 Andrew Niefer CLA 2005-06-17 10:28:38 EDT
done