generateClangTidyChecks.py generated funny output as it was not
considering new major categories.
Fixes: QTCREATORBUG-22450
Change-Id: Ibd6d0cc7539c9fb846caacbe936770d0c960f04f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Having the old local server still open can lead to some client
connecting after we have already signaled a failure, thus "undoing" the
failure. This leads to some interesting UI glitches.
Fixes: QTCREATORBUG-22641
Change-Id: I135ad59fce5c9eb696221a212f54460126e4830f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Move the section higher up in "Creating projects" and add a
screenshot of the wizard.
Change-Id: Ifc48026162ff58d58ef22673d3113cb185d1c887
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
If a ksyntax format explicitly defines font attributes like bold,
italic, underline or strike through we now apply those attributes. If
the format defines a colors, we first check whether the color is
readable before setting it.
Fixes: QTCREATORBUG-22646
Fixes: QTCREATORBUG-22229
Fixes: QTCREATORBUG-13545
Change-Id: Id0389b3c71a078dc6d6df74ee5de7f5d479a9bcb
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
... and use the result of the expression, which was previously computed
but not used.
Change-Id: Ic995d2842e71bf57ea404494e3586205a0c154e9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
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>
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>
Controls1 is deprecated. Also, we can easily show tooltips for all
buttons this way.
Change-Id: I08c3e49139aa31f83e6c7585d8e33ee0140ce5b0
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
While we do want to show contextual messages from the compiler, the
number displayed on the button should correspond to the actual number of
issues (i.e. errors or warnings), and should not include the notes
around them.
We used to do this correctly, but broke it in acd0d02e28.
Fixes: QTCREATORBUG-18490
Change-Id: Ib6b36f24b4f6bfe53ed5b977f0f88586c4d95b16
Reviewed-by: hjk <hjk@qt.io>
It caused a deprecation warning in each user. The warning itself
is not gone but appears less often now.
Change-Id: I03a995897635a182fa254fa574ccbfbfc7515f1a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
...by specifying the executable names in QTC_USE_CRASH_HANDLER.
Examples:
# enable for all supported executables
QTC_USE_CRASH_HANDLER=1
QTC_USE_CRASH_HANDLER=yes
QTC_USE_CRASH_HANDLER=all
# enable for specific executables
QTC_USE_CRASH_HANDLER=qtcreator,clangbackend
Change-Id: Ie6f1ad001cea077b8b90b89356f597a4c11378b9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
First fix to generate header guards was creating collision with other
header guards. So we now do not generate header guards anymore but
prepend "#pragma once".
Change-Id: I153a874f676188ef47e02e333691e8998f5a6558
Fixes: QTCREATORBUG-22624
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
... and use it in ToolChainFactory::detectForImport() overloads.
Change-Id: I107b9d5e185580b8fbef4c6e0233fdae5d253506
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This is required for compatibility with ListModel.
Change-Id: I7bb738b1f5c54d9f49cf0fa30dc65940f7645bb6
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
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>
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>
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>
QComboBox::currentIndexChanged is depcrecated as of Qt 5.13 and
QComboBox::currentTextChanged is available since Qt 4.1
Change-Id: I97b8eb37765cbb7556cfbde87ea90f91f63bfa63
Reviewed-by: hjk <hjk@qt.io>
You can add files to them, switch between header and source files,
and specify build and run settings for them.
Change-Id: Iefc7d6bef5a8280badf2d88d0cc1af3bcf9a8485
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
... while a build for the corresponding project is going on. The
respective application will be run after the build has finished.
Fixes: QTCREATORBUG-14297
Change-Id: Ib0931c2ff6529d891faa41d499afe7ede97a11db
Reviewed-by: hjk <hjk@qt.io>
This helps to debug e.g. runGcc(), which is used for detecting
predefined macros or header paths for the code model.
The log gives also a (limited) overview of the (blocking) processes that
are run on Qt Creator start up.
The produced command line is copy-pastable.
The generated output looks like this:
qtc.utils.synchronousprocess: Starting blocking: /usr/bin/x86_64-linux-gnu-gcc-8 -dumpmachine
qtc.utils.synchronousprocess: SynchronousProcessResponse: result=0 ex=0
17 bytes stdout, stderr=""
qtc.utils.synchronousprocess: Starting blocking: /usr/lib/icecc/bin/clang++ -x c++ -E -dM -
qtc.utils.synchronousprocess: SynchronousProcessResponse: result=1 ex=115
0 bytes stdout, stderr="ICECC[9867] 2019-07-03 13:00:35: couldn't find any clang++\nICECC[9867] 2019-07-03 13:00:35: could not find clang++ in PATH.\n"
"The command \"/usr/lib/icecc/bin/clang++\" terminated with exit code 115."
Change-Id: I9bc7b24121801b0c98c52416848734d850aa9f4d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
QUrl does not have good support for relative file paths, and it
seems there is little interest to change it: QTBUG-44921
Work around this by constructing the QUrl again on failure with
fromLocalFile(). In this case, the "file://" scheme has to be omitted.
This issue was detected because some compilers generate paths with
native Windows separators, like "..\main.cpp" for the __FILE__ macro.
Debugging the issue showed, that rather the relative path was the
problem, as the QUrl constructor does not support it.
Change-Id: I30074a3d11f9f43e05cd202f6d86c752ce184785
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
We need to use the '--c++' option instead of '--ec++'
to dump the macroses and headers for the C++ language.
Change-Id: I545e661babc1ffa84ef189d28b2dd59bc3ccf29b
Reviewed-by: hjk <hjk@qt.io>