Commit Graph

890 Commits

Author SHA1 Message Date
Nikolai Kosjar
61460951ce C++: Fix highlighting of doxygen's "///"
The color scheme changed for "///\n" lines:

 "///\n"       - "Doxygen Comment" (was "Comment")
 "/// hello\n" - "Doxygen Comment" (as before)
 "////...\n"   - "Comment" (as before)

Change-Id: I6bdaf471760bb05547385fd4821eded6cefed4d7
Reviewed-by: Knut Petter Svendsen <knutpett@pvv.org>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-02-19 10:17:55 +01:00
hjk
1e0f6d607f Debugger: Enforce debug build in auto test
Even when running with a release Qt build

Change-Id: I190688d4d3291060dcec7a0cea4e740352b20798
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-14 17:04:58 +01:00
hjk
1d6860c341 Debugger: Clean up old test code
There is a file fixme.cpp now containing parts of old test
code that should be incorporated into tst_dumpers.cpp.

Change-Id: I53300a91bf6d2a2853ac18188b8b11f93907df23
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-13 16:14:24 +01:00
hjk
a4f7d5082a Debugger: Fix or disable remaining dumper auto tests
Now all dumper autotests pass on Qt 4 and Qt 5 to get a base line
for testing. The intention is to re-enable the disabled tests,
especially the QObject related ones soon.

Change-Id: I18236c86145f7d1fb1ed347e2079d15af086a129
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-13 16:00:01 +01:00
hjk
f799cdbc1b Debugger: Fix some auto tests on Qt 5
Change-Id: Ia9e8bad99939265b3ea1fed5d9152f2dbcdaf2be
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-13 14:51:45 +01:00
hjk
e48b8d3344 PluginManager: Fix auto test compilation
Change-Id: I8bad921b057948fa639387757c630f9be10c8f6a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-13 11:34:35 +01:00
hjk
39db90c882 Debugger: Fix dynamicReference autotests
The recent breakage was caused by accidentally moving the struct
definition into main() in combination with the GDB bug mentioned
at http://sourceware.org/bugzilla/show_bug.cgi?id=14235 (11171)

Change-Id: I9a94b5c9297e7553962290872f0c29c38cee56e5
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-12 18:19:10 +01:00
hjk
aa9d4b0b76 Debugger: Don't build outdated auto tests
Change-Id: I00693667453cd8c99691e41bedda91891e60de25
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-12 17:48:28 +01:00
hjk
2b8fe600a8 Debugger: Fix QObject dumper auto test
Change-Id: I722bcaf2f46da132b3c15d9be9bdd87f17cd01a3
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-12 14:39:05 +01:00
hjk
08816cf217 Debugger: Fix QByteArray dumper with non-printable contents
Change-Id: I61071d76279ffa60730c762556954cf5bebb4a7d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-12 14:38:50 +01:00
hjk
5d1747c9d2 Debugger: Fix auto test and dumper for unusual strings
This handles embedded NUL and other unprintable contents.

Change-Id: Iabd59935eca83bc14b000ebb1e8901983530a3d6
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-11 18:00:19 +01:00
hjk
b0fce02f1c Debugger: Fix QLocale dumper and autotest
Change-Id: Icf304a2fee681622b4126ddf5b373f0dfd3e03ac
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-11 17:08:53 +01:00
hjk
578d60d574 Debugger: Fix typos in QHash dumper autotests
Change-Id: I5755fc857123f865c546367579d6454f48c80662
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-11 17:08:37 +01:00
hjk
32f6136e50 Debugger: Fix std::wstring dumpers
Change-Id: I16bc987a71978012a8a4faec8a7f2055412c97f5
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-11 16:04:45 +01:00
hjk
6a23ba9b8e Debugger: work on non-python auto test
Change-Id: I70a97d4aea261f5b5fccbbf23647a50a8e55cc54
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-11 16:04:10 +01:00
hjk
b612e9b13e Debugger: Qt4/Qt5 tests
Change-Id: I210798d2cd3aa746e69d2637cc6ce51e01d5e057
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-05 02:34:55 +01:00
hjk
916d6b3048 Debugger: Make some more tests applicable to Qt 4 and Qt 5
Change-Id: Ic5cd947a88feae0a1dc121050d06cac0b4f49043
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-04 23:49:31 +01:00
hjk
66ae6cef34 Debugger: Fix QDir dumper and auto-test
Change-Id: I3dfac334e54873409e77cfc18c95cc5f27fba395
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-04 23:13:47 +01:00
hjk
cb53e38ab2 Debugger: Work on dumper auto-tests
Change-Id: I1f0e43c8a22a1f03e9a1b97e94410af0b56415ee
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-04 17:07:28 +01:00
hjk
39e15a0efe Debugger: Work on dumper auto tests
Change-Id: I94a4ff9a2f76b1eb2aee83f4db827f7906d1e382
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 20:26:11 +01:00
hjk
cb1275fa33 Debugger: Work on dumper auto tests
Change-Id: I3df1faef35fec270094fdfbcb360216f516d0208
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 18:55:44 +01:00
hjk
7cb97f89f9 Debugger: Re-enable some tests for QVariant and geometry classes
Change-Id: Id8e0b46a7669fa2e7bb43687baa10ea951d9dc78
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 16:56:51 +01:00
hjk
13f3a6a5a0 Debugger: Fix QDateTime dumper and auto test
Change-Id: I1e71fdda85d791f76b8300fd1301f08e6d1bab71
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 15:15:07 +01:00
hjk
b6ad8a0d91 Debugger: Make std:: type simplification accessible from test
Change-Id: I26d9f656dac454c4e4ba51cab9b2120d8138462c
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 15:14:37 +01:00
hjk
54d662c2cd Debugger: Fix QDate and QTime dumper and auto test
Change-Id: Iaf4cee3099a6745c5ccc42362463ec5203f8bfb0
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 12:33:29 +01:00
hjk
0ea26fae85 Debugger: Fix dumper auto test for QByteArray with non-ASCII contents
Change-Id: I358d9f69a0d8c090dd9c4766ab1792011f100ce5
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-02-01 11:50:28 +01:00
Robert Loehning
a040424d2a Incremented year in copyright info
Change-Id: Ia11f4d7a94465de7f12cc390855e54e3256e5455
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-02-01 09:19:26 +01:00
Oswald Buddenhagen
1fda2111d4 Merge remote-tracking branch 'origin/2.6'
Conflicts:
	src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in
	src/plugins/debugger/qtmessageloghandler.cpp
	src/plugins/debugger/qtmessagelogwindow.cpp
	src/plugins/madde/maemodeployconfigurationwidget.cpp
	src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp
	src/plugins/qmldesigner/designercore/include/widgetqueryview.h
	src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp
	src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp
	src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h
	src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp
	src/plugins/qnx/bardescriptormagicmatcher.h
	src/plugins/qt4projectmanager/profilekeywords.cpp
	src/plugins/remotelinux/deployablefilesperprofile.cpp
	src/plugins/remotelinux/deployablefilesperprofile.h
	src/plugins/remotelinux/deploymentinfo.cpp
	src/plugins/remotelinux/deploymentsettingsassistant.cpp
	src/plugins/remotelinux/profilesupdatedialog.cpp
	tests/auto/icheckbuild/ichecklib.cpp
	tests/auto/icheckbuild/parsemanager.cpp
	tests/auto/icheckbuild/parsemanager.h

Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
2013-01-31 16:25:33 +01:00
Przemyslaw Gorszkowski
ffba28d26a C++: Fix code compl. for instantiation of template specialization
It works for full specialization. Instantiate of the partial
specialization has to be implemented(finding appropriate partial
specialization-on going)

Added unit test.

Change-Id: I8ef5ea963e7c665e0d67d390b3a833486773dab0
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-30 18:49:25 +01:00
hjk
33ef5d1ce3 Debugger: fix deque and std::complex autotest
Change-Id: Idf6d0cc5a038d8203d5ad4fd4ce2f001b9fc1647
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-30 14:42:19 +01:00
hjk
51523f3406 Debugger: enable auto tests for std::{unique,shared}_ptr
Change-Id: If927cbed7b2638ad9468be8f092a7b896f8fc162
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-30 14:03:27 +01:00
hjk
9855c40bd1 Debugger: Fix some autotests
Change-Id: I2b6d6882bfdb0d2622c3fc9d4628ad3d65f73062
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-30 12:04:06 +01:00
Przemyslaw Gorszkowski
421ea2afa4 C++: Test for nested class of enclosing template
Added additional test for change:
23844410fd

Change-Id: I9ddd23b0e852bf88105fef87fae82620da29c0b6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-30 08:09:21 +01:00
Przemyslaw Gorszkowski
7db3b660b6 C++ editor: Highlight member variable
Highlight member variable when there is also
enum value with the same name

Task-number: QTCREATORBUG-7525
Change-Id: I0990844a20fdf9e87a807fde10708344b9c3497b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-29 17:33:42 +01:00
Robert Loehning
298531e370 Incremented year in copyright info
Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
2013-01-29 16:27:03 +01:00
Przemyslaw Gorszkowski
7fcc52bf47 C++ editor: Highlighting static variables
Fix highlighting, find usages, marking for static variables.

Task-number: QTCREATORBUG-6822
Change-Id: I0c97c93c6c1024550907eec3820496df22a94e85
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-29 14:01:11 +01:00
Nikolai Kosjar
370acaf502 C++: Tests: Add basic tests for CheckSymbols
CheckSymbols is the "data provider" for the semantic highlighter which
does not have any tests yet.

Change-Id: I868aca32d44570457a984b8ce74695c381c58bed
Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-29 09:09:15 +01:00
hjk
986ff71642 Debugger: re-enable more tests
Change-Id: Iec02192477cebabd50da0f07b32e95b78eeb0078
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-28 18:16:30 +01:00
hjk
167316d7da Debugger: Work on auto tests
Change-Id: I21e783407a904de3501d0ac89d5f6f497ae4b1fe
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-28 17:17:25 +01:00
hjk
d0cf3b8f1c Debugger: Make some of the semi-automated test real auto tests
Change-Id: Id52cce742fc9fc3467f47e05a94777234aaa2372
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-25 22:05:40 +01:00
hjk
b73849f82e Debugger: Add ability to check multiple results in one sub-test
Change-Id: Icb78a0a7127d06c1b3a2b4ba63fb83bf49cfe044
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-25 22:05:27 +01:00
hjk
3f44b6c4e5 Debugger: Work on dumper auto tests
Change-Id: Ied98a6e9191f39bb223d9f8ab07d44ee103b643d
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-01-25 22:05:02 +01:00
hjk
e52a35a239 Debugger: rename gdb/gdbmi.{h,cpp} into debuggerprotocol.{h,cpp}
The scope is a bit broader nowadays.

Change-Id: I9578da94f06df199be5668c1751fd7bfb37f1c5b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-01-24 11:05:36 +01:00
Nikolai Kosjar
8c3794f9d1 C++: Add star binding to TypePrettyPrinter
Now we can specify if we want to print a whitespace before and/or after
'*'/'&' when printing pointer and reference types.

Task-number: QTCREATORBUG-6169

Change-Id: Ida1b035aa4fd79be9108934b75f236db9f7238af
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-23 14:30:39 +01:00
Przemyslaw Gorszkowski
23844410fd C++ editor: support nested class of enclosing template
Fixing:
* highlighting
* tooltips
* find usage
* selecting

Task-number: QTCREATORBUG-8245
Change-Id: I6e900799e43126706125b7e424567fca2b2c223e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-22 11:35:25 +01:00
Erik Verbruggen
dada2614d5 C++: add include-guard tracking.
Track the typical #ifndef/#define/#endif usage in header files to see if
the macro is an include guard. If so, store it in the Document. No
behavioural change, just recording the name.

This can be used in the future to track if a file needs to be re-parsed
when a macro changes: if it was used in the file, and not defined in it
nor being the include-guard, a file should be re-preprocessed and
re-parsed.

It can also be used to check if two files have the same include guard.

Change-Id: I2715f529997a7b24a11bdbc6150652e2669f1a46
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
2013-01-18 14:58:07 +01:00
Francois Ferrand
4c43655cec C++: fix macro calls with comment before arguments
When in 'keep comments' mode, the preprocessor does not properly handle macro calls with
comments between the macro name and the opening parenthesis: "FOO /*something to say*/
(45)".

Change-Id: I6fe733242e4d2ccff2985d17399d0a084917415a
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
2013-01-18 14:56:47 +01:00
Fawzi Mohamed
db3ad7e2aa debugger: fixing tests
- using .pri file for Utils lib (needed on mac)
 - add SKIP macros to support qt5

Change-Id: I76c970a62c4bb44301a8239c1d0b3eeeff4bc081
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
2013-01-17 11:43:43 +01:00
Orgad Shaneh
c58482eca4 Tests: Exclude QT_NO_CAST_FROM_ASCII
Change-Id: I5bba2a3bf164e5069938b7835176787beb646817
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2013-01-17 10:02:22 +01:00
Christian Kandeler
dd195c9dac Debugger: Fix compilation of name demangler test.
No more automatic QString <-> char* conversion.

Change-Id: I236c119932f11e5c2515a68499451ada0fc4f6f3
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
2013-01-16 18:36:27 +01:00