1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

23241 commits

Author SHA1 Message Date
Sergey Prigogin
5637d3dceb Cosmetics. 2014-01-15 20:36:03 -08:00
Sergey Prigogin
a0ce578175 Removed uses of the deprecated PDOMLinkage.getNode(long) method. 2014-01-15 20:32:09 -08:00
Sergey Prigogin
8d14ab8793 Bug 425833 - IllegalArgumentException I is not a member of Cls1
Change-Id: I61d52d2585142c15be21638e614d5b8daa13dfae
2014-01-15 20:06:08 -08:00
Alvaro Sanchez-Leon
f1639f8a85 Bug 250323 - Each memory context needs a different memory retrieval
Change-Id: I7874d84e5831aeb36be508a5b6b83c1623fcc5ab
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-on: https://git.eclipse.org/r/19453
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-01-15 09:06:21 -05:00
Andrew Eidsness
54a0b2dd06 Fix Qt core plugin's provider and plug-in names
Change-Id: Ib38b93cb2e1fef0b1e57cd4afed14c35b4bccb23
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20606
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-14 09:53:09 -05:00
Sergey Prigogin
74c0954dc8 Bug 425595 - Opening 'C/C++ General-> Formatter' of a project properties
cuases NPE
2014-01-13 11:40:57 -08:00
Mikhail Khodjaiants
6891ce8e0f Bug 412547 - Selection is lost when stepping over "pthread_create" for
gdbserver sessions

Change-Id: Ide875ba350dfd3e17579519360999b82c572c355
Reviewed-on: https://git.eclipse.org/r/14415
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-01-13 14:28:14 -05:00
Andrew Eidsness
6873bc9001 Bug 422841 QtIndex accessor for QmlRegistrations of an IQObject
This adds an API method to IQObject that will return the list of QML
registrations for that type.

I've also renamed the previous "QmlRegistered" to "QmlRegistration"
because it makes more sense.

The main part of this patch is a change to the QtPDOMLinkage.  It now
maintains an index of the registrations that are keyed by type.  The
index is a BTree that uses the QObject name as the key and a list of QML
registration PDOMNames as the value.

The list is created in the linkage's onCreate callback.  Old names are
removed in the list's onDelete callback.

This includes a test case for this scenario and also updates the
previous tests to match the new naming.

Change-Id: I4b994a51958c848b4e2a3209165e6e6866e22270
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20527
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-13 10:54:42 -05:00
David Kaspar
5927d7ea30 Bug 422797 - API for retrieving QMake information from Qt project
Adding a new IQMakeInfo getter:
* getQMakeQueryMap()
* getQtDocPath()
* getResourceFiles()
* getFormFiles()

Fixing incorrect parsing of OTHER_FILES variable.

Adding QMakeTests.testQMakeInfo() JUnit test for qmake output parser.

Change-Id: Ic4e0180381967e2a96455d6a3411fe51ce1cef91
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/20500
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-01-13 09:47:43 -05:00
Sergey Prigogin
e9b3224eaa Cosmetics. 2014-01-10 09:54:58 -08:00
Andrew Eidsness
f531f2f4d8 Bug 425102 New check for Qt Codan checker
The Qt Codan checker for QObject::connect function calls was not
confirming that the SIGNAL and SLOT expansion parameter were Qt signals
and slots.  The checker would allow the function call as long as the
expansion parameter resolved to a C++ method.

This patch changes the behaviour to required signals inside SIGNAL and
slots inside SLOT.

Change-Id: Ieec2f3a7ef4968d45ac3f6323b20c2f195fe3400
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20401
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-10 10:40:14 -05:00
Andrew Eidsness
030bfc50fb Bug 425102 QObject::connect content assist broken
The QObject::connect content assistant does not work when the receiver
of the function call is an implicit this.  E.g.,

class Q : public QObject { Q_OBJECT
    f()
    {
        this->connect( ... );   // works
        connect( ... );         // does not work
        QObject::connect( ... ) // does not work
    }
};

I've changed the Qt's ASTUtil.getReceiverType to navigate to the
ICPPClassType through the IScope's.  The previous implementation was
relying on the connect function call being an IASTField

I've also added a test case for this problem.

Change-Id: I96c29a9a452280068bda39a63414c50008bfad37
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20399
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-10 10:38:13 -05:00
Marc Khouzam
86c55d8821 Bug 413437 - Disable 'delay' command when appropriate. This was a bug
introduced when we ported hardware debug to DSF.

Change-Id: I5232ab1e2e345edac9df640836bf8c8413ac6a36
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-01-09 11:46:41 -05:00
Marc Khouzam
a2e42758f2 Bug 424996 - Improved error reporting when determining GDB version
Change-Id: I8aca4b262e6545a9196ccb63dd180eb635eb9181
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20326
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-01-09 05:32:01 -05:00
Marc Khouzam
1de1915f89 Bug 422586 - Terminate session if remote connection is lost
Change-Id: I78e8ccd60c3f49e5c5ef87c5564cab8849281b8d
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20286
Tested-by: Hudson CI
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-01-08 11:05:50 -05:00
Andrew Eidsness
78fc903d16 Bug 422841 QtIndex API for qmlRegisterType function calls
The Qt spec includes a special function that is used to introduce C++
types to a namespace that is accessible from QML.  E.g.,

	qmlRegisterType<Q>( "uri", 1, 0, "QMLType" );

This will create a QML type called QMLType.  The type will include the
signals, slots, and invokable that are defined in the C++ class Q.  The
type is accessible in QML using the given URI and the version is 1.0.

More information is available at:

	http://qt-project.org/doc/qt-4.8/qdeclarativeengine.html

This patch adds IQmlRegisteredType, a collection of which can be
accessed from a new method in QtIndex.

This also includes new test cases for this feature.

Change-Id: I70c44d1d8d3a0594de44e692a16f7b26396e8464
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20347
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-07 15:21:47 -05:00
Andrew Eidsness
0e196ca5f2 Bug 425002 QObjects cannot be found within namespaces
This changes the Qt PDOM so that QObject's are stored using their fully
qualified name (including leading ::).  IQObject's API has been changed
to return the fully qualified name.  Leading :: is stripped from the
IQObject name so there is no change from the previous implementation for
names that are not inside a namspace.

This includes a new test case to check this fix.

Change-Id: I1786151463e9029cdf1f2c213466adc8c3aa3618
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20328
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-07 11:48:49 -05:00
Andrew Gvozdev
61bc81d157 bug 422558: Managed build projects context help is broken 2014-01-07 10:21:18 -05:00
Marc-Andre Laperle
fb12c43146 Bug 424635 - The wrench icon overlay for a source file does not appear
When the language settings providers functionality is enabled, also
check for build settings customization, not just the language setting
entries.

Change-Id: Ia9fec3bc377617dc9f2264dd924941879f1b64b0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20297
Tested-by: Hudson CI
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2014-01-06 15:53:33 -05:00
Marc Khouzam
6918b6c685 Bug 353034 - Cache "trace-status" command
Change-Id: Id704b2b3824a016c1d9445e8625453944001863b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/19876
2014-01-06 15:49:53 -05:00
Doug Schaefer
99bc05cba7 Bug 423201 remove the Generate Wascana launcher. 2014-01-06 14:03:53 -05:00
Andrew Eidsness
9d6055c4a3 Bug 422841: Add Q_GADGET to QtIndex
This extends the QtIndex to support C++ classes that have been annotated
with the Q_GADGET macro.  QGadgets are normal C++ classes that are able
to host Q_ENUMs.

The implementation classes for QObject have been modified to share
common parts with the implementation for QGadget.  The types are
intentionally not related in the QtIndex API.  This allows for divergent
changes in the Qt spec.

This patch includes new tests cases for Q_GADGET.

Change-Id: I59eb745ff5614c2897d67dd7d6807763091120af
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20236
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-06 09:52:15 -05:00
Sergey Prigogin
3005e7ef26 Bug 424876 - Unable to extract a function containing nested loops 2014-01-03 18:39:31 -08:00
Sergey Prigogin
59b67cd28b Cosmetics. 2014-01-03 17:38:29 -08:00
Pawel Piech
4f8e498fa7 Bug 386175 - all threads that have ever been displayed get refreshed on
suspend

Change-Id: I3b1e842e8dd82463fe2cc35bcbdb0e52ae16baef
Signed-off-by: Pawel Piech <pawel.1.piech@gmail.com>
Reviewed-on: https://git.eclipse.org/r/9088
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-01-03 13:41:36 -05:00
Andrew Eidsness
70f50274b4 Bug 424824: Codan checker for Qt
This implements a Codan checker for QObject::connect and disconnect
function calls.  There are several overloads for each function, but the
basic call looks like:

    Q * q;
    QObject::connect( q, SIGNAL( sign() ), q, SLOT( slot() ) );

This function calls requires that Q have a Qt signal called sign and a
Qt slot called slot, e.g.,

    class Q : public QObject
    {
    Q_OBJECT
    Q_SIGNAL void sign();
    Q_SLOT   void slot();
    };

The Qt checker raises a warning if either condition is not true.

It also raises a warning for SIGNAL or SLOT expansions without a
parameter.

Change-Id: If68a5bcdabb3f118801675e46ae926e6a250378a
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20231
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-02 21:53:46 -05:00
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
Sergey Prigogin
281d5ddf79 Cosmetics. 2014-01-02 17:28:50 -08:00
Sergey Prigogin
4753969951 When a file is deleted from the index, the file in the context of which
it was parsed should be marked as having unresolved includes.
2014-01-02 17:22:12 -08:00
Sergey Prigogin
c95730601b Cosmetics. 2014-01-02 17:22:04 -08:00
Sergey Prigogin
cafab91ca1 Don't allow creation of EvalID without a name. 2014-01-02 11:49:39 -08:00
Andrew Eidsness
2e6729ef6f Fix version number in qt-feature
The version number of the feature should have been changed when the
plugin versions were changed (in commit c6c1ef9).

Change-Id: Ia6cf07edacd8cf2932b496e09c3d0aab579e9eda
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20068
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-02 14:29:50 -05:00
Sergey Prigogin
106afe4e80 Proper handling of subclasses in getAdapter method. 2013-12-26 09:44:54 -08:00
Nathan Ridge
628e0329b2 Bug 326750 - Field with same name as class
Change-Id: I6170ad204506d9eca3a0016930ad6506ba56e9cd
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20147
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-23 14:08:13 -05:00
Marc Khouzam
80d5db7748 Bug 424397 - Don't print full stack trace in case spawner native is not
available

Change-Id: Id950622f6ca39639addeedc33e8d1c3fadd611e0
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20028
2013-12-23 13:27:06 -05:00
Sergey Prigogin
db22538a25 Added a @Deprecated annotation. 2013-12-21 10:13:39 -08:00
Nathan Ridge
c1b801b036 Bug 332829 - Handle ambiguity between a type-id and an expression other
than an id-expression in a template argument

Change-Id: I1ec6157b09526a1f98850361f903fbea8b8c8a89
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20140
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-21 13:04:43 -05:00
Marc-Andre Laperle
9e3bca14b5 Bug 353281 - Content assist for designated initializers, additional fix
Change-Id: I534f074f1308f03f341838c87096ef09e3c166a2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20094
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2013-12-20 20:33:20 -05:00
Marc Khouzam
b3223dace6 Bug 424483 - Accept yet anther GDB version format
Change-Id: Ic88352eb5d726c08361386b47c48b913b0cc91c0
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-12-20 16:14:31 -05:00
Teodor Madan
ec1a750af3 Bug 396386 - Attach to process does not work with Juno
Change-Id: I2134b42a54a1446e8546e339c0f949753be949a2

Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2013-12-19 14:46:17 +02:00
Sergey Prigogin
ef93400be2 Cosmetics. 2013-12-18 14:08:46 -08:00
Sergey Prigogin
240a5ac13e Bug 424378 - __is_final GCC built-in type trait is not supported 2013-12-18 12:32:44 -08:00
Sergey Prigogin
bff4a3bf6c Cosmetics. 2013-12-18 12:27:03 -08:00
Nathan Ridge
e0d1910ed4 Bug 420995 - Specializations of constexpr functions
Change-Id: I7e08e21eb62867d6bb42aa6904ab0fab472cb0bc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/19936
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-18 14:29:16 -05:00
Sergey Prigogin
227b03e6b8 An attempt at performance optimization.
Change-Id: Ia4b6839626381935af859ae468de418fa004c867
Reviewed-on: https://git.eclipse.org/r/19934
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-18 12:40:39 -05:00
Nathan Ridge
d9c4584257 Bug 395074 - NPE in EvalFixed.<init>
Change-Id: I2457557add26e0121bd974fcc954ed879a8e8cf4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/19932
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-17 23:29:05 -05:00
Sergey Prigogin
bb6d85dbd0 Bug 419301 - Operator overloading confuses CDT (with boost)
This restores commit ebc858ec44.
2013-12-17 19:36:44 -08:00
Nathan Ridge
a7e2467ba5 Bug 419301 - Remove stray friend functions from lookup results
Change-Id: I69f79de6f38226aeceb0dfecb22ae43193c8c696
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/19890
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-17 22:30:56 -05:00
Andrew Eidsness
2136875477 Bug 424160: null checks for CodanPreferencesLoader.getProjectNode
CodanPreferencesLoader.getProjectNode will sometimes return null.  This
patch adds null checks before using the result.

Change-Id: If4dd70e6673d5da62cc0b8e899fb5066bdaa4bef
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19873
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-12-17 17:17:59 -05:00
Sergey Prigogin
4cfdc239bc Adjusted JavaDocs. 2013-12-17 12:40:46 -08:00