| Summary: | Remote C/C++ search on method return class instance | ||
|---|---|---|---|
| Product: | [Tools] PTP | Reporter: | Qirui Yang <iharrimoon> |
| Component: | RDT | Assignee: | Project Inbox <ptp-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, iharrimoon, jwsliu, recoskie, yangqiru |
| Version: | 4.0.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Note: This issue also happens using C/C++ Search on a local C++ project. This is cause by select reference in search setting. Will modify the test case. This is a right result as "a" is a reference of myClass. If you uncheck the reference in the search condition, you won't see it in the search result. |
Build Identifier: 7.0.2.201102110609 See below Reproducible: Always Steps to Reproduce: 1.Create a remote C/C++ project. -- add a source file 'myClass.C' with code: #include "myClass.h" myClass::myClass() { } myClass::~myClass() { } int main(void){ myClass a; return 0; } -- add a header file 'myClass.h' with code: #ifndef MYCLASS_H_ #define MYCLASS_H_ class myClass { public: myClass(); virtual ~myClass(); }; #endif /* MYCLASS_H_ */ 2. Do a remote c/c++ search on "myClass", only check 'Method' in 'Search for'. 3. Double click myClass::myClass (2 matches) in Search View, you can see that 'a' is highlighted.