summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Fix valgrind testChristian Stenger2015-03-021-1/+1
| | | | | Change-Id: I5e05575d0858ef1b8e2d5b3fb8b00b006a11c065 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Tests: Refix MSVC warnings for valgrind testsOrgad Shaneh2015-03-028-7/+8
| | | | | | | Fix in 5a5acd664ee16bf50067492da541a9d8355c3c36 was incomplete. Change-Id: I36a0666d2a6a8ccb514ebf612fbac2eded150102 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* C++: Accept language features in BackwardsScanner et alOrgad Shaneh2015-02-271-5/+5
| | | | | Change-Id: Id97ca27fa909979573efca12dc0cd14b28eacd17 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* C++: fix parsing nested C99 designated initializers.Francois Ferrand2015-02-271-0/+9
| | | | | Change-Id: Iaa0e7550abf6be77601b1852652bb3d0731d0323 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* C++: resolved self-value reference for enumPrzemyslaw Gorszkowski2015-02-251-0/+26
| | | | | | | | | | | | | | | Added support for resolving case: enum E { val1, val2 = val1, // val2-4 are not resolved val3, val4 }; Task-number: QTCREATORBUG-13932 Change-Id: I122c5eb0b0397d6c02bc3db0a5c1ea1c28c5c6e7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Squish: Add Qt 5.4.1 kitRobert Loehning2015-02-2511-27/+141
| | | | | | Change-Id: I8efa72f8695796bd69af11e9904fae143137d1e6 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Debugger: Add dumpers for QPolygon{,F} and QGraphicsPolygonItemhjk2015-02-241-0/+17
| | | | | Change-Id: Ic246b28d44312a677c8d41194d4e0c324bda125d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Add manual test code to check generated code sizehjk2015-02-204-1/+329
| | | | | | Change-Id: Idc65f441c3af09f1fcd5cff646cc7b472aed1770 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* Squish: Fix bitwise operators for selecting kitsRobert Loehning2015-02-195-5/+5
| | | | | Change-Id: I4373e8f07b124f61a743d5c922a45f2962ac7392 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* qbs build: Introduce convenience project property sharedSourcesDir.Christian Kandeler2015-02-182-3/+3
| | | | | Change-Id: I69aacc7391e6e25e66eae1fb54b3c1cfb18679ee Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Squish: Remove outdated note about Qt4 from READMERobert Loehning2015-02-181-8/+0
| | | | | Change-Id: I0638a56d6bd833a6a7a97f7ebda7a99ab20e255d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* QmlDesigner: Remove unneeded qualificationsOrgad Shaneh2015-02-182-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I492792bb9e5655c55795e938031efc557c9a462f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* Squish: Update DiffEditorWidget in objects.mapRobert Loehning2015-02-171-2/+2
| | | | | Change-Id: I7c3a1f85a379afcc48189b38da20fa63adaa7531 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* C++: Basic support for C++11 user-defined literalsAdam Strzelecki2015-02-173-4/+63
| | | | | | | | | | | | | | | | | | | | | | | | 1. Extends lexer so digit or string can be followed by underscore '_' and alphanumeric defining literal. 2. Extends parser so it accepts operator"" _abc(...) user-defined literal definition. 3. Adds Token::Flags.userDefinedLiteral bool flag field representing if token carries user-defined literal. 4. Adds C++11 auto tests case with: 12_km, 0.5_Pa, 'c'_X, "abd"_L, u"xyz"_M 5. All optional suffix scanning methods now return boolean if the suffix was found. 6. Adds C++ Lexer tests for user-defined literals with C++11 feature enabled. This change however does not make QtCreator understand user-defined literal semantics, e.g. properly resolve type when applying custom literal operator. Change-Id: I30e62f025ec9fb11c39261985ea4d772b1a80949 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Debugger: Remove traces of old autotestshjk2015-02-171-5027/+0
| | | | | | | Dysfuncional for a while and mostly replaced by tst_dumper. Change-Id: I8266f2a680be23bd37d29233b91ce5a9a151163b Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Merge remote-tracking branch 'origin/3.3'Eike Ziller2015-02-1686-86/+86
|\ | | | | | | Change-Id: I79fac4a4e8535153da1b3f73a6b1caad1513ea9c
| * Fix copyright headers in Python filesRobert Loehning2015-02-1389-89/+89
| | | | | | | | | | Change-Id: Id2c60eae52d315b8b133512d978598d1bc187b43 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | ProjectExplorer: Use FileName for Node::pathOrgad Shaneh2015-02-131-1/+2
| | | | | | | | | | | | Change-Id: I4a41cfb629be8bb06b4b0616cd4475525e617a51 Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* | Squish: Updates for renamed templateRobert Loehning2015-02-132-4/+3
| | | | | | | | | | Change-Id: Ic5a3fad69d8fb2875b7578cb58c8f3203678531a Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Merge remote-tracking branch 'origin/3.3'Eike Ziller2015-02-1210-36/+129
|\ \ | |/ | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/watchhandler.cpp src/plugins/projectexplorer/kitmodel.cpp src/plugins/qbsprojectmanager/qbsprojectmanager.cpp src/shared/qbs Change-Id: I6a68090993a264e93ac7850858cc24ba6bdb5602
| * Squish: Don't rely on progress bars when parsing qbs projectRobert Loehning2015-02-121-1/+6
| | | | | | | | | | | | Task-number: QBS-746 Change-Id: I316934884432953e2137d7e97b73fce352be4cac Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
| * Squish: Remove outdated codeRobert Loehning2015-02-121-3/+0
| | | | | | | | | | Change-Id: I765374645bb6176028416e7ad8e4ce69df65723d Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
| * Squish: Prepare help tests for Qt 5.4Robert Loehning2015-02-113-2/+13
| | | | | | | | | | Change-Id: I38568b325ae37d8b75ad3481ef0cc6ced0a99488 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
| * C++: Fix crash when #if[def] nesting is deeper than 512 levelsOrgad Shaneh2015-02-031-0/+18
| | | | | | | | | | | | Change-Id: I5e86da3a36514545834f554470b147ad8be43344 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
| * Squish: Stabilize tst_qml_editorRobert Loehning2015-02-021-1/+4
| | | | | | | | | | | | | | Avoid false fails with Squish 5.1.3 and Qt 5.4.0 on Windows Change-Id: I4d330627ed7d93ad7e327aebd9c9d3173e34a8e1 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
| * Tests: Fix offsets test for Qt5.4Christian Stenger2015-01-291-1/+11
| | | | | | | | | | Change-Id: I1517bfbde852af5db7088fa21b33a27e20f2db61 Reviewed-by: hjk <hjk@theqtcompany.com>
| * C++: Check for cycled parentsNikolai Kosjar2015-01-231-27/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the struct _Wrap_alloc (see test code) the rebind struct has _Wrap_alloc as parent. However, within rebind the typedef of type _Wrap_alloc has rebind as parent. We will refactor that in master by introducing a "parent iterator" class checking for cycles, so the client code looks less noisy. Task-number: QTCREATORBUG-13703 Change-Id: I7b6cf819ea869139d2403e15ba085d8fba19763e Reviewed-by: Cristian Adam <cristian.adam@gmail.com> Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
| * Squish: Disable pastebin.ca for now.Robert Loehning2015-01-211-1/+1
| | | | | | | | | | | | | | "Server is at capacity" Change-Id: I440dca1e2d6bfab13b2fe59662691df4fa724ba7 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Merge commit '3c85058694ee2e41658d17f524fb48f0b187d2fe'Eike Ziller2015-02-12601-2913/+2913
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/tooltip/tipcontents.cpp src/libs/utils/tooltip/tipcontents.h src/plugins/android/androiddeployqtstep.cpp src/plugins/baremetal/baremetalconstants.h src/plugins/baremetal/baremetaldevice.cpp src/plugins/baremetal/baremetaldevice.h src/plugins/baremetal/baremetaldeviceconfigurationwidget.cpp src/plugins/baremetal/baremetaldeviceconfigurationwidget.h src/plugins/baremetal/baremetaldeviceconfigurationwizard.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.cpp src/plugins/baremetal/baremetaldeviceconfigurationwizardpages.h src/plugins/baremetal/baremetalplugin.cpp src/plugins/baremetal/baremetalplugin.h src/plugins/baremetal/baremetalruncontrolfactory.cpp src/plugins/baremetal/baremetalruncontrolfactory.h src/plugins/cppeditor/cppcodemodelinspectordialog.cpp src/plugins/cppeditor/cppdoxygen_test.cpp src/plugins/cppeditor/cppdoxygen_test.h src/plugins/debugger/breakpointmarker.cpp src/plugins/debugger/debuggeritemmodel.cpp src/plugins/debugger/debuggeritemmodel.h src/plugins/debugger/loadcoredialog.cpp src/plugins/genericprojectmanager/cppmodelmanagerhelper.cpp src/plugins/projectexplorer/addnewmodel.cpp src/plugins/projectexplorer/addnewmodel.h src/plugins/projectexplorer/jsonwizard/jsonfieldpage.cpp src/plugins/qmlprofiler/abstracttimelinemodel.cpp src/plugins/qmlprofiler/abstracttimelinemodel.h src/plugins/qmlprofiler/notesmodel.cpp src/plugins/qmlprofiler/qml/CategoryLabel.qml src/plugins/qmlprofiler/qml/MainView.qml src/plugins/qmlprofiler/qml/Overview.js src/plugins/qmlprofiler/qml/Overview.qml src/plugins/qmlprofiler/qml/TimeDisplay.qml src/plugins/qmlprofiler/qml/TimeMarks.qml src/plugins/qmlprofiler/qmlprofilertimelinemodelproxy.cpp src/plugins/qmlprofiler/sortedtimelinemodel.cpp src/plugins/qmlprofiler/sortedtimelinemodel.h src/plugins/qmlprofiler/timelinemodelaggregator.cpp src/plugins/qmlprofiler/timelinemodelaggregator.h src/plugins/qmlprofiler/timelinerenderer.cpp src/plugins/qmlprofiler/timelinerenderer.h src/plugins/qmlprojectmanager/QmlProjectManager.json.in src/plugins/texteditor/findinfiles.cpp src/plugins/vcsbase/vcsconfigurationpage.cpp src/shared/qbs src/shared/scriptwrapper/interface_wrap_helpers.h src/shared/scriptwrapper/wrap_helpers.h tests/auto/qmlprofiler/abstracttimelinemodel/tst_abstracttimelinemodel.cpp tests/system/suite_debugger/tst_debug_empty_main/test.py tests/system/suite_debugger/tst_qml_js_console/test.py tests/system/suite_debugger/tst_qml_locals/test.py Change-Id: I67540b648f8b162496f4aa606b04d50c7c9125c6
| * Update LicenseEike Ziller2015-01-16606-2940/+2940
| | | | | | | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | C++: Cache parsing of template idsNikolai Kosjar2015-02-121-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...in order to stop memory intensive parsing for invalid code. Parsing the test data/snippet "hard" led to a memory consumption of about 5.5MB and this could easily get up to hundreds/gigabytes by adding some more "if_<bool_<true>,\n" lines. With the caching, we are at about 1.0MB, even if more lines are added. The "memory consumption" was measured with valgrind-massif. The stated numbers are the reported peaks. Task-number: QTCREATORBUG-12890 Change-Id: Ie7eb00cfc7915552d29bb27410a6b13a486f486e Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* | C++: Remove workaround for crashing if parsing invalid codeNikolai Kosjar2015-02-121-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts the changes commit beac7b9539457fe721de1709b9a406cac2379851 C++: Fix highlighting after "invalid code" commit 78ab287fc6d3770646012e461b0a518db4e9c9f4 C++: Stop parsing a declaration after two tries which were a work around for QTCREATORBUG-12890. A follow-up patch provides a proper fix. Task-number: QTCREATORBUG-12890 Change-Id: I2650a8e41c8ff1180cad9f069e463fc51bd2f1b1 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
* | Debugger: Convert bb extension to use runCommandhjk2015-02-121-2/+7
| | | | | | | | | | Change-Id: I528c51d2b02dccd91429778ef8c940fe5565345f Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Debugger: Move bbsetup over to runCommand()hjk2015-02-121-1/+1
| | | | | | | | | | Change-Id: I0a19b28d24cb570651ea84bf7cdbc9a761f85a0b Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Misc: Remove unneeded qualificationsOrgad Shaneh2015-02-069-23/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I919da493d0629b719d328e5e71c96a29d230dfd1 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* | QmlDesigner: Adding test cases for layoutingThomas Hartmann2015-02-064-0/+433
| | | | | | | | | | Change-Id: Id06a24e1c17eea3f7e4d5231e68ade49cdf775f4 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
* | Timeline: test TimelineItemsRenderPassUlf Hermann2015-02-045-0/+219
| | | | | | | | | | Change-Id: I324a9a1733d1d0a38bf73c8178d5a97cd60c25c1 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | C++: Remove unneeded qualificationsOrgad Shaneh2015-02-043-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I6fbe13ddc1485efe95c3156097bf41d90c0febac Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Tests: Break trigraphsOrgad Shaneh2015-02-031-3/+3
| | | | | | | | | | | | Change-Id: I9bc0e5f6080adfb518ff6e4d22052013728e6458 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | Valgrind: Replace QDir::separator with slashOrgad Shaneh2015-02-021-11/+11
| | | | | | | | | | Change-Id: I8f8192dc065702cb1c6bb218b8d992bb9775cd10 Reviewed-by: hjk <hjk@theqtcompany.com>
* | Debugger: Invert LLDB/Python startup orderhjk2015-01-301-10/+11
| | | | | | | | | | | | | | | | | | Instead of starting LLDB through a Python script this now starts LLDB directly. This did not work a while ago but seems fine nowaday. Change-Id: I20e915070cd6addf260817c311f4160d010aa861 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
* | Fix build after 739cc9fNikita Baryshnikov2015-01-301-1/+0
| | | | | | | | | | Change-Id: I4f56e4a56887cb44860a901a469fcb39c5386a37 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Squish: Update tst_git_localRobert Loehning2015-01-301-1/+1
| | | | | | | | | | Change-Id: I4bc64ad82bddf448b6846fe3a75941741c32a24a Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Debugger: Test compile fixhjk2015-01-291-1/+1
| | | | | | | | | | Change-Id: Ice03e5fd61970f86b99ce3b9122acb5ae0eb2cea Reviewed-by: hjk <hjk@theqtcompany.com>
* | Timeline: Add exception for parenting ranges with equal start timesUlf Hermann2015-01-291-6/+18
| | | | | | | | | | | | | | | | | | Also, in contrast to the 5 previous times this piece of code has been broken and fixed, this time add an elaborate comment about the problem and a test case to check for future regressions. Change-Id: I2babf7c6e98d7ab12ee53362229f30f6d9e5d7d5 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | C++: Clean up dev toolsNikolai Kosjar2015-01-298-2664/+0
| | | | | | | | | | | | | | | | | | | | | | * Move cplusplus-frontend to src/tools * Make them depend on libs/cplusplus instead of building that lib again * Put the binaries into bin of the qtcreator build directory * Unify *.pro files * Build them all if BUILD_CPLUSPLUS_TOOLS is set Change-Id: I8f9cd731625cbf9f41d5f6464c6cd946ffd6e141 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Squish: Expect correct path when adding fileRobert Loehning2015-01-291-2/+2
| | | | | | | | | | Change-Id: I46bf8399ec72a56212b631a6094b180e5da0981f Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* | Debugger: Work on LLDB auto-test on Linuxhjk2015-01-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Write the full command to a temporary file for easier re-use. Un-ignore the first stop, this does not seem to be needed in the new async setup. In some cases LLDB is not able to extract the even the top most frame of the stopped thread (happened 2 out of 100 runs of the QDateTime dumper). It's unclear why. For now just report the fact. Change-Id: I76a63bc288f1ae6f5bd9b9604a47f051912b93d7 Reviewed-by: hjk <hjk@theqtcompany.com>
* | C++: Tools: Remove superfluous QT_NO_CAST_FROM_ASCIINikolai Kosjar2015-01-281-1/+0
| | | | | | | | | | | | | | It's pulled in by including qtcreator.pri. Change-Id: Ief408b586d81780187392afbcadc0aea497e55aa Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* | Utils: Introduce FileName::fileName()Orgad Shaneh2015-01-281-0/+42
| | | | | | | | | | | | | | | | | | * Replacement for QFileInfo::fileName() * Supports additional path components Change-Id: I2b3e3dfb02617c8f98f1d67e16396bed97f97526 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>