1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00
Find a file
Andrew Eidsness 0f482a80b2 Bug 422841: Add QEnum to QtIndex
The Qt meta-object system allows C++ enums to be added as simple enums
and as flags.  There is more detail at:

    http://qt-project.org/doc/qt-4.8/qobject.html#Q_ENUMS
and http://qt-project.org/doc/qt-4.8/qflags.html

This patch adds IQEnum to the QtIndex.  IQEnums are contained in
IQObjects and therefore are accessed with the IQObject.getEnums.

An IQEnum holds its name, enumerators, and a boolean indicating whether
the instance represents a Qt flag.

A Qt flag is an enum where the enumerators are intended to be used with
bitwise operations.  The Q_DECLARE_FLAGS macro is used to introduce a
type-safe container for the flags.

This patch also adds unit tests for this new functionality.

Change-Id: If51524e93533bae82a3263f3c7973a31793a8a83
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19147
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:02:31 -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 QEnum to QtIndex 2013-12-03 09:02:31 -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