Commit Graph

6116 Commits

Author SHA1 Message Date
Robert Loehning
f03989c09f Squish: Update tst_installed_languages
Change-Id: I5b9fb407f75792a771877bfc14e95ac897f58b31
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-23 10:59:05 +00:00
Christian Kandeler
4d71c0f13e Let users disable environment entries
It's helpful to be able to temporarily disable environment variables, as
opposed to having to remove (and then re-add) them entirely.

Fixes: QTCREATORBUG-20984
Change-Id: Ib0d287035b9357507c4c19faaf3a1517382506b5
Reviewed-by: hjk <hjk@qt.io>
2019-07-22 14:31:01 +00:00
Eike Ziller
4ce34fd90f Merge remote-tracking branch 'origin/4.10'
Change-Id: I88a6704fb8d723a3cbdfb1a2d9c84741f30d4da6
2019-07-22 09:34:47 +02:00
David Schulz
bfb971920a Debugger: Fix CharArrays dumper test
Change-Id: I041700a2a6ddac7f3a07b0e0d5dd876a9d542f5b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-18 12:29:01 +00:00
Eike Ziller
f689f86be5 Merge remote-tracking branch 'origin/4.10'
Change-Id: I1193e94353c14492a9e7f093fbcd3fa53f83e390
2019-07-18 07:30:29 +02:00
Andre Hartmann
5dd4bb62b1 FuzzyMatcher: Match mixed uppercase words and humps
"htvideoele" did not match "HTMLVideoElement" before.

This can easily be achieved by modifying the uppercase
snake matcher and thus making the underscore between
the letters optional.

Fixes: QTCREATORBUG-19838
Change-Id: I821a68b20d40fb0843c12f43f47133833c75cb9b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2019-07-17 13:49:59 +00:00
Marco Bubke
ec3c7946af UnitTests: Fix compile without Clang
I moved the clang depend code under the condition that it is only compiled
if LLVM is present.

Change-Id: If1e37f677464ff38833c81dbebdfe8eaa563cdde
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-16 08:19:06 +00:00
Christian Stenger
1c438aadde Tests: Skip ssh related test conditionally
If there is no ssh tool present in PATH the test will
fail, so do not expect all machines having ssh explicitly
defined in PATH.

Change-Id: Ic56898ac6a31e75cd2efae6f10464a9aab04b326
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-07-16 04:54:16 +00:00
Robert Loehning
9750f2cd67 Squish: Update BuildDirectoryLineEdit
Fixes error in tst_simple_debug on Windows.

Change-Id: Ibb122619539d386010c5015e2f8748aeb936baef
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-15 11:21:32 +00:00
Andre Hartmann
9f136678be FuzzyMatcher: Handle digits as camel hump
Allow searching for "Fancy4PartThingy" with the
more intuitive pattern "f4pt" as well as with the
pattern "fpt" that already worked before.

Fixes: QTCREATORBUG-22671
Change-Id: I3a7c1a5b7f57d2f2bdd7d0c6e23b46f6bbb64d77
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-13 19:02:20 +00:00
Tim Jenssen
333b33edbe Merge remote-tracking branch 'origin/4.10'
Change-Id: Iaf27911e4e9fb762c1a24c84c458462bafe95728
2019-07-12 15:53:56 +02:00
Christian Kandeler
f7520b7d99 Make the project managers tell the code model about include paths
... from the environment.

Fixes: QTCREATORBUG-17985
Change-Id: I9b54e550121cfcc0684a6e173337d59d235c6107
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-12 09:13:42 +00:00
Marco Bubke
1841cb1fa5 ClangPchManager: Fix path for excluded include files
Still used the old approach but now it is using the new one.

Change-Id: I4bf4da3a5d41d46afff261f3d77bd9190737038a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:03:01 +00:00
Marco Bubke
56277de27f ClangPchManager: Protect fetchPchSources
It was not protected by a transaction so it was not thread save.

Change-Id: Ib4529d0e94942d3cbafb46705a0256812908c8c6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 09:02:43 +00:00
Marco Bubke
2eb4050acb ClangRefactoring: Make the indexer more robust
We check now if the database is busy. This should not be happen but better
be careful.

Change-Id: I8b667ff183368977991974ea1fe7fcde837e968a
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-11 08:59:16 +00:00
Nikolai Kosjar
2aa067f28e Clang: Fix adding snippets after opening brace
The regression was introduced by

    commit 82d6d20acb
    Clang: Do not show completions after comma in initializer list

This fixes ClangCodeCompletionTest::testCompleteGlobals().

Change-Id: Ic126f1e3eaed158196268e3682ff32bc02deb7b9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-10 07:56:48 +00:00
Christian Stenger
0d9e8d3e9d Unittest: Fix compile due to ambiguity for older gcc
Change-Id: I4eb2ce1cd0892a50702eacb1b0d6bdf844718c20
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-10 07:50:52 +00:00
Robert Loehning
f858eaa9e8 Squish: Update tst_CSUP02
Change-Id: I56fd0375b973141fae4e53352997d0752bfbfcb0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-09 16:17:24 +00:00
Joel Smith
8c437362bc C++: Support single quote digit separator in integer literals
C++14 supports the use of single quotes inserted between integer digits
as a separator.  Updates the built-in C++ code model to recognize such
quotes.  This fixes highlighting and indentation issues.

Change-Id: Ic35ce93060b96700a11d108dce1f3cf6c4543632
Fixes: QTCREATORBUG-14939
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
2019-07-09 08:59:23 +00:00
David Schulz
79f7605a0a Debugger: fix cdb dumper test for namespaced Qt
Change-Id: I5cbf1db4cffb19ee63ab80dcd6e2a8659cd44389
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-09 08:40:00 +00:00
Orgad Shaneh
6e6dc32ad0 CMake: Fix build
This amends commit 376aae2711

Change-Id: I63e94c7e720f4f18fcf0f47b6e7af7e471c84df5
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-07-08 18:28:58 +00:00
Nikolai Kosjar
1d010e2686 Clang: Remove unused member
Change-Id: Ib9af2f32bc69c34570d5276f03b660111ec3fe1b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-05 12:49:14 +00:00
Christian Stenger
49525c578c Unify disabling build of llvm related plugins or test on Windows
If libclang's build mode mismatches the current build mode
of Qt Creator some plugins are automatically disabled.
Do the same for the unittest and unify the way to do this.

Change-Id: Ib4cd6494ed63cb89ed8d99b3c0ba23a19572fc9b
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
2019-07-05 12:46:27 +00:00
Ulf Hermann
e9d36fe9ef Tracing: Use Combobox for the modes menu
This is a better fit than a custom Button + Menu combination.

Fixes: QTCREATORBUG-22579
Change-Id: Ie6f8a7ef2ce0da67a16bc365d6f619a11bc56221
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2019-07-05 12:31:44 +00:00
Tim Jenssen
1df6443d4a Merge remote-tracking branch 'origin/4.10'
Conflicts:
	qbs/modules/qtc/qtc.qbs
	qtcreator_ide_branding.pri
	src/libs/utils/synchronousprocess.cpp
	src/plugins/baremetal/iarewtoolchain.cpp
	src/plugins/cmakeprojectmanager/cmakeproject.cpp
	tests/unit/unittest/CMakeLists.txt

Change-Id: I124ad492df403286751e175d27fe36487ddf6d07
2019-07-04 15:17:55 +02:00
Marco Bubke
376aae2711 Clang: Remove old code
We maybe bring back the clang query interface but the local rename is
better served by other plugins.

Change-Id: I97bedcb20870632b7dd50977794a65b2b09ededb
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-04 08:41:10 +00:00
Marco Bubke
f864c7a0d8 ClangPchManager: Don't update system PCH if no system include file changed
If a project or user file is touched the system PCH should not be
regenerated.

Change-Id: Id5989735bab4441fc1eebfb5d31e01ba9714428b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-04 08:40:57 +00:00
Marco Bubke
cc87615fcd Clang: Differentiate between user and non user includes for updating
We don't want to recreate a PCH if the include or source is not
contained by a PCH.

Change-Id: If52fc1aed92054b4165cdc634656147fbe8baa47
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-07-04 08:40:45 +00:00
David Schulz
9aef0c2ad3 Debugger: Fix rvalue dumper test for cdb
Change-Id: I4c977944928e97c69f7d1f4b1c666a42b443481a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-02 09:22:02 +00:00
Robert Loehning
fdc7086c5f Squish: Update Designer tests
Change-Id: I64a63a69bb6e62c29af73918d98e9a924a221f80
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-02 09:10:10 +00:00
David Schulz
302be8acb9 Debugger: Fix qdir dumper test for cdb
entryInfoList and entryList is not supported by cdb, because we cannot
call the count function to populate these lists.

Change-Id: I6f1f2b5905232d4b220120b1b0a20bfea029c9f0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-02 07:59:36 +00:00
Michael Weghorn
cf7fa03866 Add tests for printers with custom allocators
Add tests for the cases where std::vector and
std::basic_string are used with custom allocators,
which were fixed by commits
01f26bd5b7
("Fix std::vector<bool> printer with custom allocator")
and 5eba3bde93
("Fix std::basic_string printer with custom allocator").

Change-Id: I4de9de551d329b7d2ea821d09b04d39da13f1edf
Reviewed-by: hjk <hjk@qt.io>
2019-07-01 14:50:16 +00:00
David Schulz
91684894fb LSP: Fix language server auto tests
broken by ea81b676c7

Change-Id: I4e4359669de31e2ddb1e123bece6bd75222ec888
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-07-01 09:15:11 +00:00
Cristian Adam
b519dc541a CMake build: Fix building with CMake
Change-Id: Ib1ba9d286a029d20106d105b3db7fb34596badbd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2019-07-01 07:43:04 +00:00
Eike Ziller
10098b2508 Merge remote-tracking branch 'origin/4.10'
Conflicts:
	CMakeLists.txt
	tests/unit/unittest/unittest.pro

Change-Id: I64296ad31502d9b35012da129a28e9277e9fcf8e
2019-06-28 12:50:03 +02:00
Robert Loehning
f25408c436 Squish: Remove outdated code
Change-Id: Ic4c3cf43aed15756aaeaa4a5e7ed5240bed2545c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 12:59:32 +00:00
Robert Loehning
0b5d60db53 Squish: Update tst_git_local
Change-Id: If3b3eb69a7927d0ecbc5d10afee6ab3fdfbd448b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-27 12:40:15 +00:00
Marco Bubke
e777ad57c5 Clang: Add reset to ModifiedTimeChecker
We can reset some file once to flag a file dirty if the included file has
changed.

Change-Id: I8763bb80f65882fba4e70057f569234e77097927
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:22 +00:00
Marco Bubke
e031ada154 Clang: Watch only PCH sources
We watched all sources but we do not want to watch the sources of the
project part because they are not used to build a PCH.

Change-Id: I700cd6077fc54230c9be94d620043cf3f10cf9ea
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:12 +00:00
Marco Bubke
cbfd9dc16b Clang: Update ModifiedTimeChecker in SymbolIndexer
If a watched file changed we should update the ModifiedTimeChecker too.

Change-Id: Ie43f5cf5b6dd4ddb1383168a1326add21f6e3e9d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:32:02 +00:00
Marco Bubke
bbd58ca30b Clang: Watch directories instead of files
Because there a limited resources to watch files we watch now directories.
So we need much less resources.

Change-Id: Iac558832e9521a7a1a67c5ea99b42ad1b0b5129c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-27 12:31:52 +00:00
Marco Bubke
98d7b502ca ClangRefactoring: Clear input files after collecting symbols
Change-Id: Ic4fbaac7ad3b3f80223d6cbb84a34dffa741fc4f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
2019-06-26 12:21:24 +00:00
Robert Loehning
38685de894 Squish: Update openCmakeProject
Change-Id: I17f1a271eafbcff24987fbd7e31dc6cc8c789b84
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-26 06:58:32 +00:00
Christian Stenger
8d0e57e7db Squish: Fix tst_qml_locals
The locals and expressions display nowadays an additional
column which might be hidden.
Use the right 'Value' column to fetch the values.

Fixes: QTCREATORBUG-22617
Change-Id: I646b05eed607c5941f2713013221eb4c511d901b
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2019-06-25 14:49:51 +00:00
Robert Loehning
d1d7a488d9 Squish: Update GuiAppWizardDialog
Change-Id: Icdcab66e4d3a231286607a32ba8ce66d47741442
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-25 10:48:21 +00:00
Robert Loehning
939d3fe035 Squish: Update message box "changed on disk"
Change-Id: I53149a67e3072a0466ccbb80c55bf9f76b33cb2a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-25 10:47:39 +00:00
Christian Stenger
64e842759b Unittest: Silence most of the warnings on Windows
There are lots of warnings coming from including
or linking against LLVM which cannot be influenced
directly. Silence most of the warnings to be able
to work with the mess.

Change-Id: I2c4adec14945ada878bb1e6fda2f06e6d56007e2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
2019-06-25 07:36:47 +00:00
Robert Loehning
d27f7c675e ProjectExplorer: Make varsBatCombos Squish-testable again
Change-Id: I4656800f80022652f9277029c597754c9263bf66
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-06-24 15:47:28 +00:00
Eike Ziller
52b9248385 Merge remote-tracking branch 'origin/4.10'
Change-Id: I452d5cbf27c1a0d43a890cef74cb8f0b9646bf60
2019-06-21 10:53:18 +02:00
Eike Ziller
3acbd6032f Merge remote-tracking branch 'origin/4.9' into 4.10
Change-Id: Id3bd5794a6821855c41567e8de3898d94a896ceb
2019-06-21 10:50:26 +02:00