summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/testcodeparser.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * AutoTest: Fix reparsing of header files...Christian Stenger2016-05-041-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | ...when having split source and headers and defining test data functions inside the source file. If we just reparse a header file (e.g. when opening the respective file inside the editor) we have no explicit information where the definition of the functions is. This lead to not finding the information necessary for displaying data tags and throwing away old information as they have been marked for removal. Change-Id: Ieb8ed9f7c758fe2c793e60ca2c30b4025106363b Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-221-0/+6
|\ \ | |/ | | | | | | | | | | | | Conflicts: qtcreator.pri qtcreator.qbs Change-Id: I0cbc9d335073e3234f472aa43f462eef9a9178aa
| * AutoTest: Avoid accessing nullptr documentChristian Stenger2016-04-211-0/+3
| | | | | | | | | | | | Task-number: QTCREATORBUG-16129 Change-Id: I126f278d9202c63ef731ec2f29562d73ad9eade9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
| * AutoTest: Cancel current parse if we start a full parseChristian Stenger2016-04-211-0/+3
| | | | | | | | | | Change-Id: I55dd45c1f39abf1540ec668dd17f878c85c06253 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-201-0/+2
|\ \ | |/ | | | | | | | | | | | | Conflicts: src/plugins/projectexplorer/session.cpp src/plugins/qmlprofiler/qmlprofilerclientmanager.cpp Change-Id: I6946139f5e5fa3a9cdbb322fd50be248e2c0133f
| * AutoTest: Ignore nullptr documentsChristian Stenger2016-04-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | It could happen that Qml related docs have not been added to the QmlJSModelManager when trying to use them on our side. Just ignore them when this happens as they will be added manually as they will get added automatically when parsing the respective main cpp file. Change-Id: I25c4b6d9159ad4ff8def3148c2a04356380fbd27 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* | Merge remote-tracking branch 'origin/4.0'Eike Ziller2016-04-151-8/+10
|\ \ | |/ | | | | Change-Id: Ied609608f6b12aa923c67777bc5a273c4d8fbcbb
| * AutoTest: Fix possible nullptr accessChristian Stenger2016-04-141-8/+10
| | | | | | | | | | | | Task-number: QTCREATORBUG-16062 Change-Id: Ifa544390f27b3ff73d74e4766dc93762bf152da8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* | AutoTest: Separate code parsing and begin to unifyChristian Stenger2016-04-141-50/+69
|/ | | | | | | | This is preparation for a consistent interface to be later able to provide a way to support other frameworks more easily. Change-Id: I6d83060364121eb3d11f7e0b5b259b6eeb1564b4 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Avoid invalid parse resultsChristian Stenger2016-03-311-7/+11
| | | | | | | | | | | If the document gets updated while typing we can get different results when fetching the content and using positions inside the content which might have updated milliseconds later. Beside fetching only once ensure valid parse results by adding an additional check for the used visitor. Change-Id: Id1ba4a139a4dc497be0fbb5cf1f81004f3f8676c Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Avoid using costly containersChristian Stenger2016-03-141-3/+3
| | | | | | | | | Replace several occurrences of QMap with QHash as we often do not care about the order and use iterators instead of fetching keys or values to iterate over them. Change-Id: I5061a7e7e60fe259ac2aa31915f338a373e278d3 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Fix basic CMake support...Christian Stenger2016-03-071-1/+1
| | | | | | | | | | | | ...at least for C++ based auto tests. Qt Quick Tests are out of scope for this issue as this would need too much additional tweaking for several parts of the plugin. Task-number: QTCREATORBUG-15813 Change-Id: I440a8b1f8e6deb9e6acf2e82d0831fb002c10390 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* AutoTest: Add some gtest related settingsChristian Stenger2016-02-261-0/+1
| | | | | | | | | This patch enables execution of disabled tests, repetition of test runs and shuffling of test sets. Change-Id: I3668afde5766d18acdf1afb7edd913655b13a76c Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* AutoTest: Support typed gtests as wellChristian Stenger2016-02-261-0/+1
| | | | | Change-Id: I5e904ef50c76560df8b63fc766a2b78b90bf73cc Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Unify handling of test tree items...Christian Stenger2016-02-261-65/+61
| | | | | | | ...and let specialized items handle its specialization by itself. Change-Id: I988ce3c610bef68933b9102bb39ae4723add3a99 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* mapReduce: Support progress information and add (unordered) mapEike Ziller2016-02-261-1/+1
| | | | | | | | | | | | | | If a container is given to mapReduce, it takes the responsibility to report progress information for the whole operation. If the map function reports its own progress, that is taken into account for the overall progress. The (so far only unordered) Utils::map operation can be used to replace MultiTask, by passing a member function of the items in the container as a map function. Change-Id: I18ca38a6ad2899d73f590bfe59bf2e6eb2f1a57a Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* AutoTest: Copy parse results only if necessaryChristian Stenger2016-02-161-4/+1
| | | | | | | Copying of the results is quite costly, so reduce this to a minimum. Change-Id: I8db3bcd72c34ddd0bdc622ec3f2fd538c9679955 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Avoid triggering aboutToPerformFullParse twice...Christian Stenger2016-02-161-5/+3
| | | | | | | ...when switching projects. Change-Id: Id4c9e4e4691ef93cea1fa7e40643c549634f0215 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* runAsync: Remove ResultType template parameter.Eike Ziller2016-02-101-1/+1
| | | | | | | | It is now deduced from either the type of the QFutureInterface<ResultType> function argument, or the return type. Change-Id: Iddab3cc329206c649a6e55a44b2de2d406701dee Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* AutoTest: Avoid temporary storing of QMapChristian Stenger2016-02-051-8/+5
| | | | | Change-Id: I099ffb6931947f72ad242e858d82a109a0da85f9 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Trigger onPartialParseFinished directlyChristian Stenger2016-02-051-4/+2
| | | | | Change-Id: I291712b5820c5bf84ee92621bc91497ec4264709 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Trigger signal by QFutureWatcherChristian Stenger2016-02-051-1/+2
| | | | | | | The finished signal might be triggered before the started. Change-Id: Id23612553fdd19de2ddbee72b20b4e85448e1611 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Do not pass pointers without owner between threadsChristian Stenger2016-02-051-92/+29
| | | | | Change-Id: I40e86716d1dd7c8a84e759e792042b84571fc2aa Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* AutoTest: Apply QC coding styleChristian Stenger2016-02-051-9/+8
| | | | | Change-Id: I79548cae407c5f7327953184977f8133885bc367 Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
* AutoTest: Report parse results through QFutureInterfaceChristian Stenger2016-02-041-121/+114
| | | | | Change-Id: Ib99e9ae5efa26f01dd9c0b0bf5516e2e9dab73ce Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
* AutoTest: Use mark and sweep for parsingChristian Stenger2016-02-011-271/+62
| | | | | | | | This also removes caching from parser and the respective test info files are gone now as well. Change-Id: Ibcea68e446dea532d6addd2f16863738e497bca4 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* AutoTest: Store referencing file inside test tree itemChristian Stenger2016-02-011-1/+7
| | | | | | | | This duplicates (temporarily) the information for referencing files, but the cache inside the parser will be removed within a later patch. Change-Id: I7377864547f0d9ce074fa409b9c12067c4329d40 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Prepare parsing function to get referencing files directlyChristian Stenger2016-02-011-9/+11
| | | | | Change-Id: I53b8db50d286dccc8ec9764ddb9a2c08d52fffb5 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* AutoTest: Simplify caching for test informationChristian Stenger2016-02-011-60/+63
| | | | | | | | We only need the referencing file in some cases. First step for refactoring the code parser and the test tree model. Change-Id: I713212461e4992863ef11a0a634c5d8d786a72a9 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Delete unneeded and prepare directory structure...Christian Stenger2016-01-221-0/+1099
...to get plugin's repository more easily integrated into QC's repository. Change-Id: I10243bb4283623ae951e799feacaa15915678e04 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>