Ben Boeckel
0fc1818831
QCMakeWidgets: replace QDirModel
2020-06-15 07:13:23 -04:00
Ben Boeckel
736fb34294
QCMake: use loadRelaxed if available
...
Added in 5.14 and load() was deprecated at the same time.
2020-06-15 07:12:49 -04:00
Brad King
068551cfb2
Merge topic 'cmake-gui-qt5-only'
...
4037beb747 QtDialog: remove Qt4 definition
ce9dbceb42 QtDialog: remove Qt4-only code
8ea50749da QtDialog: use Qt5's imported targets
4ccc9921be QtDialog: use qt5 functions for special Qt sources
e4d6015460 QtDialog: remove Qt4 support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4836
2020-06-12 10:11:54 -04:00
Ben Boeckel
d7679f6427
QCMakeCacheView: use non-deprecated List and Set constructions
2020-06-10 16:42:56 -04:00
Ben Boeckel
4037beb747
QtDialog: remove Qt4 definition
2020-06-09 10:31:00 -04:00
Ben Boeckel
ce9dbceb42
QtDialog: remove Qt4-only code
...
The `reset()` method was actually deprecated for 5.0 which means it can
now be removed here.
2020-06-09 10:30:46 -04:00
Ben Boeckel
8ea50749da
QtDialog: use Qt5's imported targets
2020-06-05 11:55:56 -04:00
Ben Boeckel
4ccc9921be
QtDialog: use qt5 functions for special Qt sources
...
Automoc is not supported in bootstrap builds, so it cannot be used
unconditionally.
2020-06-05 11:54:48 -04:00
Ben Boeckel
e4d6015460
QtDialog: remove Qt4 support
2020-06-05 08:46:40 -04:00
Ben Boeckel
ed2fe558b0
CursesDialog: resolve clang-tidy warnings
...
Fixes:
- unnecessary bool expression (cmCursesMainForm)
- removes a duplicate if/else branch (RegexExplorer)
- collapses redundant if/else branch logic (CMakeSetupDialog and
cmCursesStringWidget)
2020-06-02 07:37:56 -04:00
Ben Boeckel
44f1744bed
QtDialog: avoid using deprecated APIs
2020-06-02 07:37:56 -04:00
Jiri Malak
7a0c17f704
cmake-gui: Do not pass CMAKE_{C,CXX}_COMPILER items to cmake if empty
...
If C or C++ compiler is not specified in the initial dialog, do not pass
`CMAKE_C_COMPILER` or `CMAKE_CXX_COMPILER` cache entries for
cross-compilation setup. Instead allow the normal search for the
compiler to proceed.
2020-04-27 11:12:25 -04:00
Jiri Malak
11cbf79d15
cmake-gui: Pass CMAKE_SYSTEM_PROCESSOR to from gui to cmake
...
Add missing `CMAKE_SYSTEM_PROCESSOR` cmake cache entry to passed options
for first configure. We already pass `CMAKE_SYSTEM_{NAME,VERSION}`.
2020-04-13 11:17:10 -04:00
Brad King
7e3d81b1df
Merge topic 'cmprop-state'
...
a7f2ff16a4 cmState::GetCacheEntryProperty: return cmProp
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4522
2020-03-27 07:49:30 -04:00
Vitaly Stakhovsky
a7f2ff16a4
cmState::GetCacheEntryProperty: return cmProp
2020-03-25 14:46:52 -04:00
Brad King
12b39aef75
Remove redundant calls to CollapseFullPath
...
Remove calls where it is known the input is already a collapsed
full path.
2020-03-24 10:10:06 -04:00
Brad King
a4abf61520
Merge topic 'cmake-gui-open-check'
...
ecc0086bfc cmake-gui: Fix use-after-free in Open-possible check
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4508
2020-03-23 09:27:44 -04:00
Francisco Facioni
ecc0086bfc
cmake-gui: Fix use-after-free in Open-possible check
...
Fix `QCMake::checkOpenPossible` to copy `toLocal8Bit().data()` before
its lifetime expires.
2020-03-20 08:38:31 -04:00
Vitaly Stakhovsky
bd89133543
cmState::GetCacheEntryValue: return cmProp
2020-03-17 12:09:20 -04:00
Marc Chevrier
9de0355d4f
Modernize memory management
...
Update internals of various classes.
2020-03-05 07:34:01 -05:00
Code Smith
9a71fa46e7
cmake-gui: set generator field defaults from environment
...
Fixes : #20251
2020-02-06 11:59:08 -05:00
Marc Chevrier
a00960288b
GlobalGenerator family: modernize memory management
2020-01-07 11:03:11 +01:00
Brad King
b7509dd674
Add option to configure Ninja link job pool for CMake's own binaries
...
Create an undocumented `CMake_JOB_POOL_LINK_BIN` option that builders
can set to avoid linking too many of our binaries at once.
2019-10-10 13:28:45 -04:00
Kitware Robot
ed98209ddc
Revise include order using clang-format-6.0
...
Run the `clang-format.bash` script to update our C and C++ code to a new
include order `.clang-format`. Use `clang-format` version 6.0.
2019-10-01 12:26:36 -04:00
Corentin Plouet
ab06de68c5
Help: fixed typos in PCH / Unity Build doc
...
+ typos in source code
2019-10-01 05:33:50 +10:00
Regina Pfeifer
f30523d090
clang-tidy: modernize-deprecated-headers
2019-09-16 10:11:13 -04:00
Regina Pfeifer
d25a5a7ec9
clang-tidy: modernize-use-auto
...
Set the MinTypeNameLength option to an impossibly high value in order
to limit the diagnostics to iterators. Leave new expressions and cast
expressions for later.
2019-09-10 22:21:41 +02:00
Regina Pfeifer
a1ddf2d0ba
clang-tidy: Replace typedef with using
...
Automate the conversion with
perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g'
then manually fix a few places.
2019-09-04 18:03:01 +02:00
Sebastian Holtermann
9b334397f5
Source sweep: Use cmStrCat for string concatenation
...
This patch is generated by a python script that uses regular expressions to
search for string concatenation patterns of the kind
```
std::string str = <ARG0>;
str += <ARG1>;
str += <ARG2>;
...
```
and replaces them with a single `cmStrCat` call
```
std::string str = cmStrCat(<ARG0>, <ARG1>, <ARG2>, ...);
```
If any `<ARGX>` is itself a concatenated string of the kind
```
a + b + c + ...;
```
then `<ARGX>` is split into multiple arguments for the `cmStrCat` call.
If there's a sequence of literals in the `<ARGX>`, then all literals in the
sequence are concatenated and merged into a single literal argument for
the `cmStrCat` call.
Single character strings are converted to single char arguments for
the `cmStrCat` call.
`std::to_string(...)` wrappings are removed from `cmStrCat` arguments,
because it supports numeric types as well as string types.
`arg.substr(x)` arguments to `cmStrCat` are replaced with
`cm::string_view(arg).substr(x)`
2019-08-22 16:38:10 +02:00
Regina Pfeifer
d331021255
clang-tidy: isolate declarations for readability
2019-08-21 00:20:49 +02:00
Sebastian Holtermann
20e580be01
Source sweep: Use cmIsOn instead of cmSystemTools::IsOn
...
This replaces invocations of
- `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn`
- `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND`
- `cmSystemTools::IsOn` with `cmIsOn`
- `cmSystemTools::IsOff` with `cmIsOff`
2019-08-17 12:14:14 +02:00
Sebastian Holtermann
f71f7ce3f0
cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.h
...
This adds the `cmStringAlgorithms.h` header and moves all string functions
from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
2019-07-29 21:13:56 +02:00
Sebastian Holtermann
963ddafeaa
QtDialog: Use QPalette::WindowText instead of QPalette::Foreground
...
`QPalette::Foreground` is deprecated and was replaced by
`QPalette::WindowText` since at least Qt 4.8.
https://doc.qt.io/archives/qt-4.8/qpalette.html#ColorRole-enum
This replaces the `QPalette::Foreground` color role with `QPalette::WindowText`
in `QtDialog/RegexExplorer.cxx` to avoid compiler warnings.
2019-07-01 09:18:24 -04:00
Brad King
c1d6b135ed
cmake-gui: Update Qt copyright holder in About dialog
...
Qt is now copyright "The Qt Company Ltd.".
2019-06-12 12:39:25 -04:00
Brad King
c85524a94a
Ensure stdin, stdout, and stderr pipes are always open
...
On non-Windows platforms libuv assumes that file descriptors 0-2 are
always used for standard pipes and never for anything else. Otherwise,
libuv may re-use one of these descriptors and then fail an assertion
when closing it. Similarly, On Windows platforms our ConsoleBuf
implementation assumes that the standard handles are always open.
If CMake is run with any standard pipes closed, open them with
`/dev/null` or `NUL` to satisfy these assumptions.
Fixes : #19219
2019-05-02 14:34:58 -04:00
Brad King
a5932438cd
Merge topic 'fix-overlay-icon-windows'
...
12ef832c96 cmake-gui: Fix icon overlay on windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3217
2019-04-12 07:29:20 -04:00
Julien Jomier
12ef832c96
cmake-gui: Fix icon overlay on windows
...
Since commit 9175a378f5 (QtDialog: Add windows taskbar progress,
2018-11-17, v3.14.0-rc1~330^2) we've added a missing overlay icon.
This results in Windows falling back to a default overlay icon.
Simply drop this line.
Fixes : #19160
2019-04-11 14:03:29 -04:00
Brad King
a53c3f03bc
Merge branch 'backport-cmake-gui-windows-theme'
2019-04-08 13:30:26 -04:00
mistersandman
fce03306ee
cmake-gui: Fix theme on Windows with Qt >= 5.10
...
In Qt 5.10 the theme support moved to a separate QWindowsVistaStyle
plugin.
Issue: #19147
2019-04-08 13:30:05 -04:00
Brad King
dd8c2f3e57
cmake-gui: Drop code not needed with current required CMake version
2019-03-14 11:15:34 -04:00
Vitaly Stakhovsky
950c099d83
cmake: Progress functions use std::string param
2019-02-11 10:32:43 -05:00
Brad King
4b37b4f1bb
Merge topic 'modernize-for-loops'
...
01b2d6ab74 Modernize: Use ranged for-loops when possible
15bdbec017 cmAlgorithms: Make cmRange advance/retreat safe for rvalues
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de >
Merge-request: !2901
2019-02-11 08:08:22 -05:00
Artur Ryt
01b2d6ab74
Modernize: Use ranged for-loops when possible
...
Replaced most manual `const_iterator`-based loops and some
reverse-iterator loops with range loops.
Fixes : #18858
2019-02-07 22:39:05 +01:00
Vitaly Stakhovsky
82edd98300
cmSystemTools: MessageCallback and Message() accept std::string argument
2019-02-07 13:41:27 -05:00
Regina Pfeifer
1180fc8780
OutputCallback: Accept std::string argument
2019-01-30 18:33:58 +01:00
Brad King
c30f9b1cde
Merge topic 'functional-callbacks'
...
8c92db829b MessageCallback: Remove unused bool& argument
bcee24aecc Use `std::function` for callbacks
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: vvs31415 <vstakhovsky@fastmail.com >
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de >
Merge-request: !2872
2019-01-30 08:10:27 -05:00
Brad King
d75fec5a88
Merge topic 'tidy-use-equals-default'
...
094f01d0f0 cleanup: Prefer compiler provided special member functions
55671b41d2 clang-tidy: Use `= default`
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Brad King <brad.king@kitware.com >
Merge-request: !2841
2019-01-29 14:07:24 -05:00
Regina Pfeifer
8c92db829b
MessageCallback: Remove unused bool& argument
2019-01-29 16:35:53 +01:00
Regina Pfeifer
bcee24aecc
Use std::function for callbacks
2019-01-29 16:32:52 +01:00
Brad King
8e495333c0
Merge topic 'cmake-gui-s-b'
...
ad0853b3d4 QtDialog: Clean up and document -S and -B options
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Robert Maynard <robert.maynard@kitware.com >
Merge-request: !2863
2019-01-28 08:36:58 -05:00