Commit Graph

45338 Commits

Author SHA1 Message Date
Tobias Hunger
6ea1b07ceb CMake: Simplify reparsing code
This still fixes the parsing issue when switching build configurations,
but the code is simpler.

Change-Id: I5748788224c5b49399550c33bcef592f193cfa8a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-04-01 09:56:27 +00:00
Christian Stenger
c976054fa7 AutoTest: Enable parsing for tests by default
If one enables the plugin it would be most likely to have the
parsing (and related short cuts) enabled as well without the
need to open the navigation widget or results pane.

Change-Id: Ie0624713677bcae67492ac99d25519cc5cfab4a9
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-01 09:14:46 +00:00
Christian Stenger
0b37c09270 AutoTest: Increase timeout for progress indicator
This avoids displaying the progress indicator if reparsing the
current document while editing in _most_ cases.

Change-Id: I6b6181e5bda1644367b8dc7576c152d5d6962a71
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-04-01 09:14:41 +00:00
Orgad Shaneh
3805512156 ProjectExplorer: Rename RunConfiguration:Name -> CurrentRun:Name
Similar variables don't contain "Configuration" in their names. For
example: CurrentBuild:Name.

+ make it available globally.

Change-Id: Ie094e2f7afc449d678cf0afec1548350f03ead77
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-04-01 08:35:59 +00:00
David Schulz
1d0e1633c2 cdbext version bump
Change-Id: Ia7d0731cfcab545a7280dc1d5317d64a2e773893
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-04-01 07:33:44 +00:00
Lorenz Haas
72f3f2f45b Beautifier: Fix hidden menu on Linux
Task-number: QTCREATORBUG-15936
Change-Id: Id9387495a8c770167292fa526727f969b7408b2c
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 15:44:14 +00:00
Robert Loehning
483fcb6ab7 Squish: Update object in tst_session_handling
Change-Id: Ia1f327cf2a69e74d242bf4ad7d7ed8cfd7cd3a34
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 13:35:15 +00:00
Robert Loehning
d0ad71bb18 Squish: Sort objects
Change-Id: Iff9e700d1c4f392a019803efc407709dd7ccf181
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 13:31:50 +00:00
Christian Stenger
01504e41b8 AutoTest: Avoid invalid parse results
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>
2016-03-31 13:21:54 +00:00
Ulf Hermann
2ce3bf8ed4 Help: Disambiguate the HelpPage classes from QtWebKit and WebEngine
This way the help viewers can coexist and the building against a
version of Qt that has both webkit and webengine available doesn't
fail anymore.

Change-Id: I2de00b03fc7b127899cbf90b91fc2cfb090a47a5
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
2016-03-31 12:04:43 +00:00
Alessandro Portale
4707fc4945 StyleHelper: Silence warning about wrong format string
Change-Id: Ic31f3ed15a9039098d0e1467fc51487bd0201113
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
2016-03-31 11:58:26 +00:00
Alessandro Portale
52a6e03942 Valgrind: Fix callgrind's "Cost format" button
Broke after 0a89b89065

Correct fix seems to me to avoid the whole menu.

Change-Id: I59f1eb859c9045fc5ae9ac1b377b7e69b29af7ae
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-31 11:47:28 +00:00
Nikolai Kosjar
eeb566ef74 CppTools: Update known doxygen commands
...from https://www.stack.nl/~dimitri/doxygen/manual/commands.html

/*!
 * New doxygen that are highlighted and completed:
 * \authors
 * \callergraph
 * \category
 * \cite
 * \copybrief
 * \copydetails
 * \copyright
 * \details
 * \diafile
 * \dir
 * \docbookonly
 * \enddocbookonly
 * \endinternal
 * \endmsc
 * \endparblock
 * \endrtfonly
 * \endsecreflist
 * \enduml
 * \extends
 * \hidecallergraph
 * \hidecallgraph
 * \idlexcept
 * \implements
 * \includelineno
 * \latexinclude
 * \memberof
 * \msc
 * \mscfile
 * \parblock
 * \private
 * \privatesection
 * \protected
 * \protectedsection
 * \protocol
 * \public
 * \publicsection
 * \pure
 * \refitem
 * \related
 * \relatedalso
 * \remark
 * \result
 * \rtfonly
 * \secreflist
 * \startuml
 * \subpage
 * \tparam
 * \vhdlflow
 */

Task-number: QTCREATORBUG-10145
Change-Id: I7cc3ff0d6d58bbd188ca8056302fda790dcbf0ce
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-31 11:46:01 +00:00
Nikolai Kosjar
ed168b2e05 CppTools: Update known qdoc commands
...from http://doc-snapshots.qt.io/qt5-5.7/27-qdoc-commands-alphabetical.html

/*!
 * New qdoc that are highlighted and completed:
 * \annotatedlist
 * \default
 * \div
 * \inherits
 * \inqmlmodule
 * \instantiates
 * \noautolist
 * \qmlabstract
 * \qmlattachedproperty
 * \qmlattachedsignal
 * \qmlbasictype
 * \qmlclass
 * \qmlmethod
 * \qmlmodule
 * \qmlproperty
 * \qmlsignal
 * \qmltype
 * \span
 * \uicontrol
 */

Change-Id: I55b8e83814a6008b6580a6e50ca780b257d4197b
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-31 11:45:53 +00:00
Nikolai Kosjar
24640a6e4e CppTools: Sort doxygen commands
We will update them, so having them sorted is better for finding
duplicates.

Change-Id: I1159ed1f1fce1275d630935a297e85787947ba61
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-31 11:45:46 +00:00
Nikolai Kosjar
6ed1a2b3c8 CppTools: Rewrite cppdoxygen.cpp with cplusplus-keywordgen
Braces all over the place since the tool does not respect the coding
style and cppdoxygen.cpp was changed with regard to the braces coding
style in the meantime:

  commit 29a93998df
  Remove braces for single lines of conditions

Next step is to use the tool for updating the qdoc/doxygen keywords.

Change-Id: Ib95b5991ebd794d144848ae052fa7f28a6d10850
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-31 11:45:39 +00:00
Nikolai Kosjar
be32cdc670 C++: Import roberto's kwgen utility
...as src/tools/cplusplus-keywordgen so it will not get lost. Taken from
[1] in its current revision (e7831d6).

The utility generates code that classifies identifers/keywords. Most
probably the following files from Qt Creator were generated by it or are
at least based on its output:

 src/libs/3rdparty/cplusplus/Keywords.cpp
 src/libs/3rdparty/cplusplus/ObjectiveCTypeQualifiers.cpp
 src/libs/glsl/glslkeywords.cpp
 src/plugins/cpptools/cppdoxygen.cpp

We will use the utility to update the known qdoc/doxygen keywords. The
clang code model will also profits from this.

[1] https://github.com/robertoraggi/cplusplus/blob/master/tools/kwgen.cpp

Change-Id: I604f2028d32fd9a48bd6f84bef7264b6d2beed7d
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 11:45:31 +00:00
Alessandro Portale
2710168446 ManhattanStyle: Themable arrows
This change makes arrows in e.g. ComboBoxes themable. This also improves
the clear distinction between enabled and disabled state.

Change-Id: If40dcd3e162ad71d1bc6507c047203aa60e09ee6
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-31 10:40:32 +00:00
Alessandro Portale
0187dc493c Help: New "Bookmark" icon
Change-Id: I43af280196912b1b4fd09f2e7823f54b4b37ee45
Reviewed-by: Diana de Sousa <diana.desousa@theqtcompany.com>
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-31 10:39:45 +00:00
Robert Loehning
180c0a2883 Squish: Expect more fails with clang code model
Task-number: QTCREATORBUG-15710
Change-Id: I9a074921d6521fa11a281c0e2d296666ca86ef51
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 10:26:02 +00:00
Robert Loehning
93da73ffce Squish: Update objects for tst_qml_locals
Change-Id: Iddc266417f9e1d5ba1ecdddb46f62f820c921b20
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 10:25:52 +00:00
Robert Loehning
39e8698290 Squish: Update suite_WELP
Change-Id: Iba47a015eb87ad759933dc51bacceaf29d3da57c
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 10:25:43 +00:00
Robert Loehning
db2ab92801 Squish: Remove outdated code
Creator can't be built with Qt 5.4 anymore.

Change-Id: Ic3c014e8384c72c10a48c65117c53daecaa683ab
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
2016-03-31 10:25:32 +00:00
Nikolai Kosjar
334e3edd18 C++: Extract base startOfOperator()
...in order to remove some duplication.

Change-Id: Ie974b6ed9418967ad80b4604088b0e1c293b59d0
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 09:30:37 +00:00
Alessandro Portale
4df4864b9b Help: New "Home" icon
Change-Id: I5d6e0ee20ecb76cb90106041f78b504a695ad94a
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
2016-03-31 09:26:45 +00:00
Ulf Hermann
fdfd5f2351 Debugger: Avoid setParent(0) on QDockWidgets
This spells trouble as dock widgets which have a native window will
assume they should be positioned relative to the outermost native
window then.

Change-Id: I5a8ce5870afacaabe26d4a2d7ac53ffee09328ed
Task-number: QTCREATORBUG-15844
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-31 08:33:30 +00:00
Nikolai Kosjar
4b3a987c39 C++: Equalize startOfOperator()
There are two versions of startOfOperator:
    * InternalCppCompletionAssistProcessor::startOfOperator
    * ClangCompletionAssistProcessor::startOfOperator

The latter started as a copy of the former, but the former got some bug
fixes in the meantime.  Adjust both versions to each other, so it's easy
to diff them and to extract the duplication in a follow-up change.

Change-Id: Icf48386bf1ad0fa473bec476c5412be9b1890139
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 08:01:58 +00:00
Nikolai Kosjar
da5309cbc6 C++: Fix completion for doxygen tags II
For assist processors that run in a worker thread, the QTextDocument is
recreated with AssistInterface::prepareForAsyncUse and
AssistInterface::recreateTextDocument.

Since some assist processors (C++, QmlJS) rely on the user states of the
QTextBlocks, these must be recreated, too.

In the referenced bug report the lexer state (user state) of the
previous QTextBlock was invalid and thus the "Doxygen tag completion"
failed.

Task-number: QTCREATORBUG-9373
Change-Id: If668e98aa6f9fe9fc107c7476fc831e92a0d7572
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 07:12:49 +00:00
Nikolai Kosjar
4de62a7349 C++: Fix completion for doxygen tags I
There are three cases that must be handled:

 1. Completion in C++ style comment
 2. Completion in first line of a C style comment
 3. Completion in non-first line of a C style comment

This change fixes case 1 + 2. Case 3 will be addressed in a follow-up
change, same goes for the duplication.

Task-number: QTCREATORBUG-15143
Change-Id: I449711f965ddcbbe6158870a8a5ae33218e0d238
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2016-03-31 06:51:34 +00:00
Christian Stenger
9905eb6f75 Dumper: Fix fileName offset for Qt5.5 on 32bit
Change-Id: Iffd6d70c7d283b932f8946447b27f3e7ba1f5e98
Reviewed-by: hjk <hjk@theqtcompany.com>
2016-03-31 05:29:47 +00:00
Christian Kandeler
26be0a5763 Update qbs submodule.
To HEAD of 1.5 branch.

Change-Id: I82829fcfced9aab6787bc16b14dfeb50afe500a5
Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
2016-03-30 17:04:37 +00:00
Sergey Belyashov
a44f86ed04 Update Russian translation
Change-Id: Idc6cca38846741086f378bcb0df605727fffe8a4
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-03-30 16:28:47 +00:00
Alessandro Portale
d2b32d135d QtQuickDesigner: Flat item selection in navigator tree
...for "flat" themes.
Also, a small HighDPI fix for the non-flat variant.

Change-Id: I5ae401bd59627a957f621e1111b2ab277127b2b5
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 15:07:38 +00:00
Orgad Shaneh
01c91fc8f9 ProjectExplorer: Provide run configuration name for macro expander
Change-Id: If04b824f4de18532d7561b86244464f8718fb8d7
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-30 14:39:55 +00:00
Tobias Hunger
6059527951 CMake: Trigger reparse when target changed
Change-Id: I47959361a345e372265a19982c1b1e6ea778dd89
Task-number: QTCREATORBUG-15927
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 13:05:15 +00:00
Tobias Hunger
8799188be5 CMake: Force a cmake run if no data is available yet
It makes no sense to not parse if we never parsed before. This got
broken when I tried to reduce the number of cmake runs.

Change-Id: Id70a6550faf248cc983b61f6d2456a93d8454a50
Task-number: QTCREATORBUG-15927
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 13:05:11 +00:00
Tobias Hunger
82b9e9ed37 CMake: Do not crash when cloning cmake buildconfigurations
Change-Id: I832981cdea16ab058f92758c9bae9b64b904d573
Task-number: QTCREATORBUG-15926
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 13:05:06 +00:00
Tobias Hunger
2c822ae3c1 CMake: Only allow one target in cmake build step
CMake will silently ignore all but the last target (or fail to build
anything). This allows to simplify our code.

Change-Id: Ieee3931aca0788307107e2021d507073ef42a21f
Task-number: QTCREATORBUG-15928
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 12:20:58 +00:00
Tobias Hunger
414d41ab3c ProjectExplorer: Do not needlessly try to rename files
Task-number: QTCREATORBUG-15963
Change-Id: I925f7a69b0ae6a3e2eb5b8a7ceae1faccdfc5759
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 12:02:00 +00:00
Tobias Hunger
04842be814 ProjectExplorer: Rename local variable and add some consts
Change-Id: If9cadcbb196a8b6350a654aca01b4a7ee59612b3
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
2016-03-30 12:01:52 +00:00
Nikolai Kosjar
afa8351d9e C++: Accept BUILD_CPLUSPLUS_TOOLS as qmake variable
Change-Id: I3266261d14aef12d3db73a635f0b1c471f6a52b7
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-30 11:51:51 +00:00
Orgad Shaneh
c176771696 TextEditor: Correctly restore empty pattern
Only default to first entry when the pattern was never set.

Change-Id: I4d2a76218347adb4aa28ef3e8fd0e81485faf184
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-30 11:28:22 +00:00
Nikolai Kosjar
d7b648abdb Clang: Make translation unit and code completion options consistent
...otherwise we might run into the following assertion:

Assertion failed: (IncludeBriefComments ==
        this->IncludeBriefCommentsInCodeCompletion), function CodeComplete, file
        ASTUnit.cpp, line 2411.

Change-Id: I4723b600c7ac5aa2b4c1cb1827f51156afb492b8
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
2016-03-30 10:43:26 +00:00
Nikolai Kosjar
768c900990 ClangStaticAnalyzer: Set target explicitly for gcc toolchains
The default target of clang.exe might be unfavorable since it depends on
e.g. the tool chain used to build clang.exe:

                            default target
     clang build with msvc: i686-pc-windows-msvc
    clang build with mingw: i686-pc-windows-gnu

The correct target is important since it not only has implications on
the built-in macros and include paths, but also on parsing options. For
example, the msvc target silently adds the following parsing options

    -fms-extensions
    -fms-compatibility
    -fms-compatibility-version=17.00
    -fdelayed-template-parsing

...as can be seen by the output of

    $ clang.exe -### empty.cpp

Change-Id: Icd8aaf11016e59f37025cbf1c97da81511ff249b
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
2016-03-30 10:40:37 +00:00
Nikolai Kosjar
5c030a4336 ProjectExplorer: Retain original target triple for gcc toolchains
The target triple will be used by the Clang Static Analyzer.

Change-Id: Ibf33fef286a4d3ad3f40be4d6d5c9f35881d3d46
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-30 10:40:32 +00:00
Leena Miettinen
110959bef6 Doc: Update CMake information
- Add and remove screen shots
- Remove info about an obsolete wizard
- Add information about using wizards to create CMake projects
- Describe new fields in the Kits tab
- Describe the new build settings

Change-Id: I156e3b1a6cb35a284da5e25eabb134cc52b4d84e
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-30 09:37:07 +00:00
Oswald Buddenhagen
f9a182a285 Merge remote-tracking branch 'origin/3.6' into 4.0 2016-03-30 10:56:25 +02:00
Ulf Hermann
af0b93196b VariableChooser: Create widgets before assigning models
With Qt 5.7 the currentChanged() callback is called immediately on
QTreeView::setModel(), which leads to the label text being set. That
crashes if the label hasn't been created, yet.

Change-Id: I73763e1ac1c86215090a8f4b0118bc0cd286cf47
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-03-30 08:40:49 +00:00
Alessandro Portale
063c8d45c8 Theming: Fix menu item highlight for the themed (flat) menu bar
Since StyleHelper::baseColor now returns a themed color and
QColor::lighter() lightens up dark colors relatively little, we should
to use a themed color for the background instead.

Task-number: QTCREATORBUG-15930
Change-Id: I256ddcf946a14af6937c324a76e3f3a24919ae3b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
2016-03-30 07:19:12 +00:00
David Schulz
610176358b version bump
Change-Id: Ie8f7806fd40af9da5c60f851ef6db5226199bfc0
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
2016-03-30 05:34:53 +00:00