Bug 100568

Summary: [All Declarations][All References] has internal error and displays "Search "()""
Product: [Tools] CDT Reporter: Devin Steffler <devinsteffler.lists>
Component: cdt-coreAssignee: Andrew Niefer <aniefer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: victor.lenet
Version: 3.0Keywords: contributed
Target Milestone: 3.0 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix for this PR
bjorn.freeman-benson: iplog+
tests that depend on this PR bjorn.freeman-benson: iplog+

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