Commit Graph

43591 Commits

Author SHA1 Message Date
Leena Miettinen
70b714d3ae Doc: JSLint documentation no longer available online
The tool now describes error messages depending on user
output. Also, there is no active development on the checks,
so removing hints about the future development.

Change-Id: I87c94febb95ae8247aa1061bcc7ac0801e64ee8a
Reviewed-by: Christian Kamm <kamm@incasoftware.de>
2015-08-06 13:40:47 +00:00
Robert Loehning
c0484b992e CustomWizard: Update readme after removal of examples
Should have been done in
b5e3f2e57b

Change-Id: I1ca04d82a9717ce4649537fd4c80c81eca60f0d0
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-06 13:40:27 +00:00
Orgad Shaneh
6c13ce05af TextEditor: Fallback to last line when input line exceeds the document
Task-number: QTCREATORBUG-14782
Change-Id: I7ead94a132207ccaae661cb6aceff5387d11b818
Reviewed-by: Robert Loehning <robert.loehning@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-06 13:38:04 +00:00
Nikolai Kosjar
93e0ffa942 Clang: Increase backend alive timeout
...the backend is not yet multithreaded and on very slow machines on
heavy load this can sum up.

Change-Id: Ia7f456e8558d60aacbe6a689e884342b466063fa
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-06 12:43:36 +00:00
Nikolai Kosjar
6b99b1c7cb Doc: update information about Clang Code Model Plugin II
* Update the instructions on building clang.
* State the minimum version of clang that is necessary (3.6.2).
* Rearrange the "acquire clang entries", the least time-consuming method
  for acquiring clang comes first now.

Change-Id: Ie0a80fa507be20fd7c3f09930de03a88634cccce
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-06 12:43:20 +00:00
Leena Miettinen
fe09dee7c3 Doc: don't specify whether Gradle or Ant is used by default
Ant now seems to be the default. Link to the section about
selecting the tool to use.

Change-Id: I1c60c952726f407d5ad7e25118dba732a2fa50e5
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2015-08-06 11:22:04 +00:00
Eike Ziller
37f6b4397d Merge remote-tracking branch 'origin/3.5'
Change-Id: I1ce0fa92e5c469d591d3030d1a4f168dcee232ba
2015-08-06 11:38:13 +02:00
Leena Miettinen
053b2b649f Doc: "Include by default" locator option
...has replaced the "Limit to prefix" option.

Change-Id: I23e2d7ea9e16933566edb992aa50f6f0c4df3d11
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-06 08:23:17 +00:00
Nikolai Kosjar
775661fafb Clang: Ignore clang include directories from the toolchain
Change-Id: I23a91f1511fad81de0abdd8c8d47dc23f0e0ae43
Task-number: QTCREATORBUG-14856
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2015-08-06 08:05:24 +00:00
Nikolai Kosjar
bde090ae9b Clang: Let clangcodemodel/README point to the corresponding *.qdoc
Change-Id: I5526ed6ea6840ccecd8890adf6ef454e45ba98f9
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-06 08:04:10 +00:00
Christian Kandeler
707d49d2fb QbsProjectManager: Un-break MSVC.
Commit aad5ca12c4 was over-eager, wrongly assuming the presence of
cpp.cxxCompilerName for MSVC and also not taking into account that
we don't set cpp.compilerVersion* from Qt Creator.

Task-number: QBS-846
Change-Id: Id6a88c18f2c460ef66f0339aeb999b7fc0321225
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
2015-08-06 07:49:04 +00:00
Leena Miettinen
a269acbb9e Doc: fix UI text related to searching
- Regular Expressions > Use Regular Expressions
- "Highlight search results on the scrollbar" is in the Display tab

Change-Id: If3df17d9fd00f5fc0945ee979be81f9b62f78ac8
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-05 13:45:57 +00:00
Eike Ziller
658ab5c680 Locator: Fix wrong use of localized string in settings
It was accidentally overwriting the text of a label with the text
intended for the tool tip.

Change-Id: Ie6e52413660d7959399029c10b7fafb3197ee2f6
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-05 13:38:39 +00:00
Leena Miettinen
cc9102369f Doc: update information about Clang Code Model Plugin
Change-Id: Iee70665c116604a8e3ea37d72cdbfccb53960187
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-05 13:14:32 +00:00
Leena Miettinen
a7b9bcf480 Doc: fix a group name in "Indenting Text and Code"
"Typing" should be "Tabs and Indentation".

Change-Id: I27917375ae0004dc11a33f355941e948402af5ba
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-05 11:44:47 +00:00
Leena Miettinen
ea4b2859e7 Doc: code completion does not consider case by default
"None" is now the default option.

Change-Id: I68ed2ca418efb4dc58ad7f3637a19fbfd81cbb5e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-05 11:15:44 +00:00
Tim Jenssen
d567dfff73 remove unnecessary Qt configs
Change-Id: I2dc2f7f1132168974d47f64331eb72b1ce83bcc0
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-08-05 11:09:28 +00:00
Marco Bubke
8c3c882a8a Clang: Fix parsing of enable_if_t
Task-number: QTCREATORBUG-11864
Change-Id: Ifd0d3482bc4f4373394734d4b173304db32a6a2d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-05 10:50:34 +00:00
Marco Bubke
66ba8fe6c5 Clang: Disable test CodeCompletionsExtractor.Constructor
It is caused by clang.

Change-Id: Iaf760f590289a2f2a344f25879141bc37fed6881
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-05 10:42:32 +00:00
Nikolai Kosjar
885e6dbac2 Clang: Add convenience script to check clang completions
This one is useful for inspecting the completions we get from clang
(e.g. for checking if the bug is in clang or in our code, or to compare
the completions of different clang versions).

Change-Id: If9dfe1b58a2b087ef6b92485e10ff272badf75c8
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-05 10:14:38 +00:00
Christian Kandeler
414fa3c51d qbs build: Fix application install dir for OS X.
The "Qt Creator" executable was put into the root dir instead of "Qt
Creator.app/Contents/MacOS".

Change-Id: Id353812076e36928d650f5cc3e6968f60c68d64b
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-08-05 09:29:04 +00:00
Andre Hartmann
302eaf0e69 ANSI: Add benchmark
To have an eye on the parsers performance for
further features, fixes and refactorings.

Change-Id: I6e8ebbd098c9b1c9952416bbe0472fe095bd5d7d
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2015-08-05 08:09:55 +00:00
Nikolai Kosjar
adefa318ae Tests: Emit coreAboutToClose() before exiting
Now address sanitizer will not show false positives.

Change-Id: Ieeb4dc31697920ed1ca542f5647f4cb0b23a29ab
Task-number: QTCREATORBUG-14713
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-05 07:38:16 +00:00
Ulf Hermann
d067986b55 QmlProfiler: Send a flush interval to Qt when starting profiling
From 5.6 on this will make Qt stream events instead of sending them all
in the end, reducing the time it takes to load data.

Change-Id: I23b1fced4a527b58ee3312fc5c48b23d3dc6260e
Task-number: QTCREATORBUG-11823
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-08-05 07:34:37 +00:00
Leena Miettinen
eff1d9f21f Doc: fix tab name
Tools > C++ > Inspect C++ Code Model > Project Parts >
Include Paths is now "Header Paths".

Change-Id: I0ec53ec2988df2a563b2a5212a6cc31152146e51
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-05 06:57:59 +00:00
Marco Bubke
0fd213357e Clang: Tests for code completion
Reparsing in Clang is broken in master. We need to test what is working
in which version.

Change-Id: I620acd4a0a5adc951951e0fc3c0a4096ac9844fe
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
v3.5.0-rc1
2015-08-04 16:16:45 +00:00
Leena Miettinen
2afdfeeb38 Doc: update paths to Qt Designer plugins
Change-Id: I6f07633322ec87c7358e1afc70670f295491722a
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-04 14:56:53 +00:00
Leena Miettinen
818d90e0ae Doc: fix a changed check box label
Tools > Options > Text Editor > Display > Always Open Links in Next Split
changed to "Always open links in another split".

Change-Id: If363b6c14868a730641370098432cb9c0d45fe59
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2015-08-04 14:56:42 +00:00
Christian Kandeler
7b970a3a04 QbsProjectManager: Support an equivalent of QML_IMPORT_PATH.
Task-number: QTCREATORBUG-14849
Change-Id: I26f69b5c6c421b5eb965c96d75df15d16e960237
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
2015-08-04 14:43:15 +00:00
Eike Ziller
cd5f9f6ff8 Merge remote-tracking branch 'origin/3.5'
Change-Id: I7b3ef276d438ff0f184a649153e8aeec08a9f8c9
2015-08-04 13:16:03 +02:00
Eike Ziller
aa8998cfb3 iOS: Fix kit creation with Xcode 7
Xcode 7's platform plist does not specify a concrete version
for the SDK in the SDK name anymore.
So, if we do not find an SDK with the same name, look for an SDK
with a version that matches the platform's 'Version' setting.

Trying to figure out from the settings looks inherently fragile
to me though, and we might be better off just using
xcrun -sdk <sdk> --show-sdk-path

Change-Id: Ief45f03aa7cd5193f6c24b087eb635d3f5ba5298
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-04 11:09:10 +00:00
Eike Ziller
dcab956dc8 iOS: Do not drag unused QSettings objects around.
Change-Id: I5f641ba713e11c7a5376f94babf745f35ccbdba2
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-04 11:09:03 +00:00
Eike Ziller
b1401173de Linux: Deploy clang binaries to new libexec directory
moved from bin/ to libexec/ in master

Change-Id: If6fd0b3241fbb62b09b163b6063a831c1bf592a4
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-04 11:04:18 +00:00
Orgad Shaneh
ba9787a009 C++: Initialize memory after allocating symbol pointers
Change-Id: Ife1d3f963ef6781f96031f41ae3858b2c278145e
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-04 09:58:32 +00:00
Nikolai Kosjar
5abfef609a Clang: Check for required mininum LLVM/Clang version
...otherwise, if the compilation fails, the user is left without any
hint.

Change-Id: I753aefac0c9fbd24b148235e792fe3b3a2aea21b
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2015-08-04 09:25:53 +00:00
Leena Miettinen
ad332762df Doc: update info about QML export scripts
- Switch the download links to Gerrit
- Describe how to edit the scripts to create files that are
  compatible with Qt Quick Designer
- Remove notes about adding Python support for Windows, because
  that now seems to work out of the box

Change-Id: I88f822e1d72658818b140208c264af24ab671b28
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
2015-08-04 08:12:54 +00:00
Nikolai Kosjar
8ac76922d2 Clang: Filter out "#pragma once in main file" warning for headers
This is a libclang bug and unfortunately there is no option to disable
this warning.

Change-Id: I12cdaa0155e7d94a70b8fccd8c9290835704e06b
Task-number: QTCREATORBUG-12067
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-04 07:16:35 +00:00
Nikolai Kosjar
9f2b5eac2d CppTools: Update language standard option for clang
Tested with clang 3.6.

Change-Id: Icd2383bd03b91837b3129045e9ab78a1620efd02
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
2015-08-03 13:52:16 +00:00
Robert Loehning
fb6baf9188 Squish: Run tst_CSUP02 on Clang code model, too
Task-number: QTCREATORBUG-11591
Change-Id: I8b4a77d6a1184e225bcf3a9a496e1bdb7cb0d81c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2015-08-03 12:41:28 +00:00
Leena Miettinen
9ec331d6e6 Doc: excluding files from scanning in To-Do Settings
Change-Id: I05923ab532fdfd7bf00f1b277116edba38bf7334
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-08-03 12:11:28 +00:00
Orgad Shaneh
866310d56f CMake: Initialize kit priority
Detected by memcheck

Change-Id: I27bb03ce4b4b63ae596bd3a788b6a95cd0944454
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-08-03 09:35:31 +00:00
Orgad Shaneh
1b90b80f85 C++: Fix potential crash
If no template is found, findSpecialization will crash

Task-number: QTCREATORBUG-14748
Change-Id: I94b970e6eb994f0a8d85a4b996e52fcff0affef3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-03 09:32:05 +00:00
Orgad Shaneh
99dea548e0 C++: Fix crash in template argument resolving
Occurs in boost/phoenix.hpp

Task-number: QTCREATORBUG-14748
Change-Id: If89b0db48346aac72e0d8aaa8d165b2bf43bd784
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-03 09:31:45 +00:00
Orgad Shaneh
fff0a27103 Dumper: Display "void" for VoidType
Useful for void template arguments

Change-Id: Ifa85f36477dbe664525233668915a1f872042438
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-03 09:05:59 +00:00
Daniel Teske
6c7ab912a6 Android: Fix opening of package location on Windows
Utils::FileName::append appends a slash, so appending a string
which starts with a slash leads to a double slash.

And explorer.exe doesn't like this double slash.

Change-Id: I2549aca9ec51fad092f006a16f092a02c3a83149
Task-number: QTCREATORBUG-14568
Reviewed-by: BogDan Vatra <bogdan@kde.org>
2015-08-03 07:54:48 +00:00
Leena Miettinen
4c2ab742f1 Doc: fix typo component > components
Change-Id: I1976eda603688f48c95f7e88d108700b07379265
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-07-31 13:40:15 +00:00
Leena Miettinen
d1c181b52f Doc: update Editor Settings screenshot
Change-Id: I5ee95c90c5d7a601cb8738a7288bfbea8930141e
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
2015-07-31 13:39:57 +00:00
Thomas Hartmann
a6d5e94405 QmlDesigner: Fix Scrollview regression
Change-Id: I3bacf3def3f75cc26ffea0fc753e6b7994a426cb
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2015-07-31 11:26:28 +00:00
Leena Miettinen
42335de928 Doc: adding paths to CMake excutables
...and selecting them in kits.

Change-Id: I5093ec17593c6cdd67ab64abcbc5fca06b1c64ff
Reviewed-by: Benjamin Zeller <benjamin.zeller@canonical.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
2015-07-31 11:21:13 +00:00
Nikolai Kosjar
892cb154b2 C++: Do not let ASTPath calculate line/column for generated tokens
ASTPath uses TranslationUnit::getPosition(), which returns reasonable
results for:

    1. non-expanded tokens
    2. expanded but not generated tokens

The expanded *and* generated tokens case is not handled since there is
no reasonable mapping from generated tokens to a continuous line/column
information. Consider:

    #define DECLARE_FOO int foo; // Multiple generated tokens
    DECLARE_FOO // ...can be mapped to this line, but to which columns?

Since the result where not valid for the expanded and generated case,
ASTPath took the wrong branches. Avoid this by skipping generated
tokens.

Change-Id: I33a2e0f62917f87d691b19feaeef67b09ea8d563
Task-number: QTCREATORBUG-13386
Task-number: QTCREATORBUG-13390
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2015-07-31 11:01:02 +00:00