Bug 577355 - The search does not find everything
Summary: The search does not find everything
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-19 03:24 EST by Rolf Grimm CLA
Modified: 2021-11-19 03:24 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Grimm CLA 2021-11-19 03:24:12 EST
The search does not find everything. e.g. it does not find anything in the parameters of the functions.

One of my sample CPP files contains the following function: "void Controller_Actor::rtsBehavior( int signalIndex, int portIndex )".  Just to verify, using this particular function as an example, do the following steps & results reproduce the problem correctly:

1. Open the RTist workspace and project where the CPP file is located
2. Click the "Search" button (the flashlight icon at just under the main menu)
3. Click the "C/C++ Search" tab
4. Type "rtsBehavior", which is the name of the function, into the "Search string" text box
5. Click the "Search" button
RESULT: The "rtsBehavior" function is listed in the "Search" view, as expected
6. Close the "Search" view
7. Repeat Steps 2-5, only this time type "portIndex", which is one of the function's parameters, into the "Search string" text box in Step 4
EXPECTED RESULT: The "portIndex" parameter is displayed in the resulting "Search" view
ACTUAL RESULT: The "Search" view returns 0 matches, which is incorrect

The "C/C++ Search" functionality comes from Eclipse's C/C++ Development Tools (CDT) and not RTist.  I further tested on an Eclipse C/C++ instance where RTist was not installed and found that the same  problem with the "Search" occurs, even without RTist.