1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00
cdt/qt/org.eclipse.cdt.qt.core
Andrew Eidsness a512bbb011 Bug 424499: Find References does not work for Qt signals and slots
The QtASTVisitor is trying to use the QtIndex during indexing.  Any
results available at this time are based on the state of the AST the
last time the code was indexed.

This adds a test case to reproduce the problem.  The test cases indexes
the project one time.  It should find two references to the signal.  If
the QtIndex data is stale, then it will find 0 references.

This also replaces the code that looks for QObject::connect function
calls.  The proper behaviour is to find all overloads of #connect as
well as references with QObject::disconnect (all overloads) function
calls.

A new test case checks for references in all overloads of #connect and
#disconnect function calls.

Change-Id: I28fc4213d6dddff10f81a6bd3ef01e24c74f31db
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20223
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-02 21:49:38 -05:00
..
.settings Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
META-INF Content assistant for Qt elements 2013-12-12 14:05:53 -05:00
schema Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
src/org/eclipse/cdt Bug 424499: Find References does not work for Qt signals and slots 2014-01-02 21:49:38 -05:00
templates/project Bug 418406: Qt4 and Qt5 specific HelloWorld project wizards 2013-12-03 18:51:38 -05:00
.classpath Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
.project Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
about.html Added support for Qt. Extended AddFiles template to change start/end 2013-01-12 00:57:49 -05:00
build.properties Bug 422797 - API for retrieving QMake information from Qt project 2013-11-28 23:33:42 -05:00
plugin.properties Fix Qt plugin's project structure 2013-12-12 11:12:13 -05:00
plugin.xml Clean up the API around QtNature. Add isProject expr def. 2013-12-13 17:03:52 -05:00
pom.xml Fix Qt plugin's project structure 2013-12-12 11:12:13 -05:00