Nikolai Kosjar
8a06df6235
Clang: Clean up unittest.pro
...
Change-Id: Icd3f1ab0b9b9557b0bd4cdfc60130e0c8bd15609
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com >
2015-07-23 11:48:32 +00:00
Nikolai Kosjar
e4748fe801
Clang: Typedef some often used types
...
using CodeCompletions = QVector<CodeCompletion>;
using CodeCompletionChunks = QVector<CodeCompletionChunk>;
Change-Id: Id729a43566c23dc000e44d79ccf4a49e4f235f51
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com >
2015-07-23 11:48:26 +00:00
Marco Bubke
ae5d92d618
Clang: Refactor ClangCompletionContextAnalyzer
...
Change-Id: Ib42ddc672da8b068591129e2e0b9652d3e07ad58
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-23 11:13:05 +00:00
Orgad Shaneh
68409fb982
Debugger: Fix tests compilation
...
Broken by d765cd73a2
QWidget is included in runconfiguration.h, so QT = widgets is required.
Change-Id: I254ae5dca8f537b5d8e3f8977be50cadcaa053b4
Reviewed-by: Kevin Funk <kevin.funk@kdab.com >
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-07-23 09:36:50 +00:00
Marco Bubke
568d7e7c7d
Revert "Clang: Reparse the translation unit for unsaved file changes"
...
We reparse before every code completion so this code can be removed. We
will reuse some of it later.
This reverts commit 2443f18b85 .
Change-Id: Ifcadfaa09b87ce5b58bfe5fe3cbaa2a86a59c5a6
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-23 09:08:19 +00:00
Robert Loehning
f11d5791a4
Squish: Timing issues in tst_openqt_creator
...
- speed up the test by not waiting for C++ parsing
- measure the time for parsing qtcreator.pro and fail if too long
Task-number: QTCREATORBUG-10733
Change-Id: I1d00812a3e8e56a5ee6e1828bc60aa6eb3d2da41
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-23 08:26:24 +00:00
Orgad Shaneh
0926d63d56
Sdktool: Only execute tests with -test argument
...
+ add an autotest that executes it
Change-Id: I7a9e1cd409bccd77776eefb0e832c92c51bc2bd5
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
2015-07-20 08:45:43 +00:00
Marco Bubke
2443f18b85
Clang: Reparse the translation unit for unsaved file changes
...
Change-Id: I49711ce040a995f193d36961e010decc27c34c4c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-17 09:08:08 +00:00
Marco Bubke
5df8085529
Clang: Remove the hint and snippet field from the CodeCompletion
...
It is not used and is producing overhead.
Change-Id: I1398b18a40c0f5c0b90fe4c058996d7eb109f9f2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-16 12:54:58 +00:00
Nikolai Kosjar
8d23d80139
Clang: Clear the project part completely on remove
...
Change-Id: I6fdb1766a3b407fbaaf86b0216a0dd710673aec1
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com >
2015-07-16 12:31:15 +00:00
Robert Loehning
184b161224
Squish: Adjust expectations when using clang codemodel
...
Change-Id: I204ff6eb3820f67d50f8f4b77012d538741cec47
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-16 12:18:37 +00:00
Marco Bubke
0bc18df655
Clang: Do not work on unspecified values in ProjectParts::remove
...
Change-Id: Icc322bc64988cbc1b5ec4e6d6474b1b6b956c667
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-16 11:51:13 +00:00
Marco Bubke
fbd549f213
Clang: Prevent double spaces for clang snippets
...
Change-Id: I62f9b9c217570dd6dafc45719e898cc2ac4d2937
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-15 13:53:52 +00:00
Marco Bubke
945c0fbc71
Clang: Add code completion for keyword snippets from clang
...
Change-Id: I91f7af74d811769424928bce1c586a30b5794d6f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-14 16:24:30 +00:00
Christian Stenger
029b83b8dc
Squish: Fix suite_general
...
Change-Id: I4e1458555a971d21e42a071e2fc0b135b0b1e91c
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-14 11:19:54 +00:00
Robert Loehning
f1af0c4f39
Squish: Tiny update to tst_cli_output_console
...
Change-Id: I26409008831afb70031591a599e0fa3d47d05f38
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-14 11:04:50 +00:00
Robert Loehning
b2ba98d988
Squish: Remove BlackBerry
...
Change-Id: If79d09f44f682e8fa7ee7b71e265696ecc998337
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-14 10:54:50 +00:00
Robert Loehning
e34148ba75
Squish: Update tst_git_local
...
Change-Id: I26a0e497382a602e99811e77a7f1b5cebc57a946
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-14 08:30:39 +00:00
Andrey Pokrovskiy
9f29762d34
ANSI: Crash in AnsiEscapeCodeHandler::parseText
...
Qt creator crashes when capturing output from a program that can output
unfinished control sequence. For example: "\x1b".
Task-number: QTCREATORBUG-14720
Change-Id: I7535e509a192685aece63aea79234d88153fcb56
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com >
Reviewed-by: André Hartmann <aha_1980@gmx.de >
Reviewed-by: wonder.mice <wonder.mice@gmail.com >
2015-07-14 03:42:50 +00:00
Marco Bubke
16ab843f95
Clang: Add qt.widgets and qt.gui to unittests
...
Change-Id: I52d1a5dce514daaf3de1262e3368addda7588d81
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-13 15:55:28 +00:00
Christian Stenger
f54b7d63cc
Squish: Fix tst_simple_analyze
...
Change-Id: Iac334d37a1cf6a85d4f85d09165503f9bca8ce91
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-13 14:43:11 +00:00
Christian Stenger
f5b9a2f4ef
Squish: Fix tst_simple_debug
...
Change-Id: I8d90c0279d73a1902627d76388a5fa5497fb520d
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-10 14:55:29 +00:00
Christian Stenger
a32a9b3d2a
Squish: Fix tst_qml_locals
...
Change-Id: I1667d966e2686dd3de8ef495d3db7b10d0b6aa5e
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-10 11:30:04 +00:00
Christian Stenger
67371fcd3a
Squish: Remove workaround
...
Change-Id: I2744c44dda2ef31b7e94dc3328e40538a7a24f40
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-10 11:27:23 +00:00
Robert Loehning
f8afdf06bb
Squish: Check for QML runtime errors
...
Change-Id: I5b5d854a8bbadfbd4076af1cfdd3e356d763da29
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-10 09:42:26 +00:00
Christian Stenger
6b471b2b04
Squish: Fix tst_qml_js_console
...
Change-Id: Ief0cc9622572b79eec402be5a39816f329dc1e22
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-10 04:53:45 +00:00
Christian Stenger
7901601eb0
Squish: Simplify __selectTreeItemOnBuildAndRun__()
...
Change-Id: If1bc3f610cd59041fb4e6ce9edd38354f73b141d
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-09 14:00:37 +00:00
Christian Stenger
9cb59772dc
Squish: QmlProjectManager is re-enabled by default
...
Change-Id: I91e12547843053c5de5ab5bd1af88977e937f80e
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-09 13:53:32 +00:00
Christian Stenger
b78e3e7ff5
Squish: Fix suite_qtquick
...
Change-Id: Ibafa3d9871ba95ada52a270a018ce7a5106db312
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-09 13:53:14 +00:00
Robert Loehning
7e30a74d41
QmlDesigner: Remove unsupported testfiles
...
Change-Id: I236b26646752783d4956f3c290d1e6463bef5efa
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com >
2015-07-09 09:56:11 +00:00
hjk
5b583ad67e
Debugger: Add dumper for QUuid
...
Change-Id: I171ac0130009b9610c766deaa2d85aa095e33d6f
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
Reviewed-by: Orgad Shaneh <orgads@gmail.com >
2015-07-09 06:54:01 +00:00
Marco Bubke
dd89d731cf
Clang: Extract and test action sequence
...
Change-Id: I66f8f29d7b17be67a55560bdcc0b0a3aeb1ce480
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-07-08 12:29:20 +00:00
hjk
094b49281c
Debugger: Adjust one more test to new base class sorting
...
Change-Id: I0e073f2474bd9f182b2e5c86ecb121aa350fb92d
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-08 09:25:25 +00:00
Christian Kandeler
153bfbba0e
qbs project files: Do not use "base" inside groups.
...
Change-Id: Ifd3df06840b9bcf06ca8c21b62e67a9decd88bee
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com >
2015-07-07 14:53:38 +00:00
hjk
e2b0641f28
Debugger: Adjust tests after change to member sort order
...
Change-Id: Iff3b9781ad9842b325d346a77514aa7a935d4570
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-07 14:12:28 +00:00
hjk
68a707458b
Debugger: Remove workaround for older LLDB
...
... that breaks QHash display for keys with value 0.
Task-number: QTCREATORBUG-14451
Change-Id: I8578d9f1d14c367beaccabc5373bd75860ee454b
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-07 13:44:54 +00:00
Tobias Hunger
2e6855249f
PNG: Run pngcrush on images with iCCP or sRGB profiles
...
This quietens warnings from libPNG during startup and shrinks the
image sizes.
Change-Id: Ieb4cb5e8ba30b99653896e283c2fb2cc267257f2
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com >
2015-07-03 09:50:46 +00:00
Christian Stenger
cf52ab6bac
Squish: First fix for createNewNonQtProject()
...
Change-Id: I0c6d76f0740e8abaf7980b67156fd52388aba3eb
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-02 13:30:29 +00:00
Nikolai Kosjar
9e4a4586f9
Clang: Tests: Fix unit tests compilation on Windows
...
Change-Id: Id9e51de3b2bcb273fd2268ba7f7192f80dee1f53
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com >
2015-07-02 13:16:16 +00:00
hjk
fdde69a5a5
Debugger: Add dumper for various QJson* classes
...
Needed to debug the QmlDebugger.
Change-Id: Ia0b50dac2146fcc81990b78eb8de30c8e763bba2
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-02 06:58:04 +00:00
Christian Stenger
1f1e0e3b83
Squish: Fix suite_CSUP
...
Change-Id: I0fecbb1ea1853fca231b68de7bc28aceb4289065
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-01 10:12:19 +00:00
Robert Loehning
df35fe0fd9
Squish: Shorten tst_qml_indent
...
Change-Id: I30dadda017415440609b03e97b45b03f4bac9bbf
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-07-01 10:07:53 +00:00
Christian Stenger
7f687783f3
Squish: Fix tst_qml_indent
...
Change-Id: I386312967e760017623b2f3d48f69ad38d9ff0d7
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-01 04:41:48 +00:00
Christian Stenger
e2adf9b7bb
Squish: Fix tst_HELP05
...
Additionally move Qt5Path helper class into classes.py as it's now
used in more than one test suite.
Change-Id: I0a1faed7fa8c082316c5568e4150091812af8979
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-07-01 04:41:26 +00:00
Robert Loehning
f0602e4ddd
Squish: Don't check for Resolution of "Invalid" bug report
...
Change-Id: Iae6f066cf52f1e520a8f0dc3a24261387ae2ec10
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com >
2015-06-30 12:07:47 +00:00
Christian Stenger
d710e73084
Squish: Fix tst_APTW03
...
Change-Id: I88383be83b518de6363a53bb6102f1f302fac1cf
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-06-30 04:53:47 +00:00
Christian Stenger
48fd79cb0b
Squish: Fix suite_QMLS
...
Change-Id: I2e9fffd35571c4aef62dc27330425f4bf6ac9a68
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com >
2015-06-29 13:55:56 +00:00
Orgad Shaneh
a77e32800c
C++: Ignore explicit template instantiations
...
Defined in section 14.7.2 of the standard.
Fixes completion for std::string.
The following explicit instantiation appears in bits/basic_string.tcc:
extern template class basic_string<char>;
This is wrongfully considered a specialization for a forward declaration
(like `template<> class basic_string<char>` is).
Introduce a new Symbol type for explicit instantiations.
Use-case:
template<class T>
struct Foo { T bar; };
template class Foo<int>;
void func()
{
Foo<int> foo;
foo.bar; // bar not highlighted
}
Change-Id: I9e35c8c32f6b78fc87b4f4f1fc903b42cfbd2c2b
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com >
2015-06-29 09:22:08 +00:00
Christian Kandeler
28e163de97
SSH: Fix exit code of tests.
...
The test apps now return != 0 in case of an error.
Change-Id: I2380bc4b8e0c85e68d79f90ccc39ad9419851b04
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com >
2015-06-29 08:59:09 +00:00
Christian Kandeler
eb848eb89f
Valgrind: Introduce Frame::filePath().
...
Change-Id: I40d1b7f739ea905bbcca1a388bada3e077b7c137
Reviewed-by: hjk <hjk@theqtcompany.com >
2015-06-26 13:29:38 +00:00