1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
Find a file
Andrew Eidsness 16083fee1e Bug 422841: Add Q_CLASSINFO to the QtIndex
Qt allows string-based key/value pairs to be inserted into QObject class
definitions.  E.g.,

    class Q : public QObject
    {
    Q_OBJECT
    Q_CLASSINFO( "key1", "value1" )
    };

The class info is accessible in the meta-object system.  See:

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

For more information.

This patch adds the API to access these key/value pairs from the
QtIndex.  The values are stored in a single block in the PDOM record for
the QObject.

The API returns the value for a given key if it is found in the receiver
QObject or any of its base classes.  The API returns the first such
value that is found.

This patch also adds a test case for this functionality.

Change-Id: Ie3f821a0c5f6f1347a0c0c6dafa184510ae26c29
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19154
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-12-03 09:05:53 -05:00
build Bug 322168: source files with specific settings disable secondary 2013-11-02 16:03:37 -04:00
codan Bug 421900 - NPE in StatementHasNoEffectChecker.usesOverloadOperator() 2013-11-30 22:57:04 -05:00
core Bug 418770 - NPE in EvalBinding.getBinding involving specialized enum 2013-12-02 09:52:45 -05:00
cross bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
debug Bug 418710 - Provide a way to disable "View memory" menu per expression 2013-12-02 15:41:50 -05:00
doc Bug 412380 Documentation for "Skip trivial initializer" flag. 2013-09-27 09:51:23 -04:00
dsf Bug 418710 - Provide a way to disable "View memory" menu per expression 2013-12-02 15:41:50 -05:00
dsf-gdb Bug 418710 - Provide a way to disable "View memory" menu per expression 2013-12-02 15:41:50 -05:00
jtag Update plugin version and @since tag 2013-09-16 14:15:45 -04:00
launch/org.eclipse.cdt.launch Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
llvm bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
lrparser bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
memory Bug 416391 - NullPointerException in FPRendering when adding in Mem view 2013-09-06 19:44:22 -04:00
p2 bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
qt Bug 422841: Add Q_CLASSINFO to the QtIndex 2013-12-03 09:05:53 -05:00
releng Updated version of the branding plug-in to match the feature version. 2013-11-25 10:47:59 -08:00
testsrunner Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
upc Bug 421247 - ASTNode.copy() chaining inconsistent 2013-11-25 21:37:10 -05:00
util bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
visualizer bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
windows bug 420287: CDT features are scattered around in update manager 2013-10-24 12:50:54 -04:00
xlc Bug 421247 - ASTNode.copy() chaining inconsistent 2013-11-25 21:37:10 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Bug 418536 - Add Qt tests to maven build. 2013-11-29 23:27:13 -05:00