summaryrefslogtreecommitdiff
path: root/Utilities
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'sphinx-info' into release-3.12v3.12.0-rc1Brad King2018-06-131-1/+28
|\ | | | | | | Merge-request: !2146
| * Utilities/Sphinx: Add option to build and install Info manualOrivej Desh2018-06-121-1/+28
| | | | | | | | | | Add option `SPHINX_INFO` to enable the Sphinx 'texinfo' builder and use the `makeinfo` tool to convert it to a `.info` file.
* | CMake 3.12.0-rc1 version updateBrad King2018-06-051-1/+1
|/
* Fix misc. typosluz.paz2018-06-041-1/+1
| | | | Found via `codespell` and `grep`
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-0113-30/+30
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* clang-format.bash: update to clang-format-6.0Brad King2018-06-012-7/+7
| | | | | | | | | | | | Update `.clang-format` with configuration to make the 6.0 format as close as possible to what 3.8 produced before. Then revise the style: * Indent preprocessor directives (a feature new since 3.8) * Add a newline and indentation before inheritance `:` and `,` Rename the Git attribute identifying the format to include the clang-format version number: `format.clang-format-6.0`. This will aid external infrastructure in knowing what version of the tool to run.
* Utilities/Release: Update to openssl-1.1.0hBrad King2018-05-311-3/+3
| | | | | Update the prebuilt binary build configurations for machines where we build our own OpenSSL library to use a newer version.
* Merge topic 'update-curl'Brad King2018-05-21108-1761/+3630
|\ | | | | | | | | | | | | | | | | 3e913b819d Merge branch 'upstream-curl' into update-curl d431136e02 curl 2018-05-15 (cb013830) f3c73b878c curl: Update script to get curl 7.60.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2091
| * Merge branch 'upstream-curl' into update-curlBrad King2018-05-18107-1760/+3629
| | | | | | | | | | * upstream-curl: curl 2018-05-15 (cb013830)
| * curl: Update script to get curl 7.60.0Brad King2018-05-181-1/+1
| |
* | clang-format: Explicitly require version 3.8 of the toolBrad King2018-05-181-1/+6
|/ | | | | | | | | Versions of clang-format newer than 3.8 produce different output. Our source code guide says that version 3.8 exactly must be used. Update the comment in our `.clang-format` config file accordingly. Add a check to our formatting script to verify the version. Also update its tool search to look for the explicitly-named 3.8 variant first.
* regenerate-parsers.bash: Add script to automate parser generationDaniel Franke2018-05-161-0/+37
| | | | | | | This depends on - a suitable flex version in PATH (currently 3.0.4) - a suitable version of 'sed' in PATH (e.g. GNU sed)
* regenerate-lexers.bash: Add option to check timestampsDaniel Franke2018-05-161-9/+22
|
* regenerate-lexers.bash: Factor file names into variablesDaniel Franke2018-05-161-8/+14
|
* Merge topic 'update-libuv'Brad King2018-05-0861-752/+991
|\ | | | | | | | | | | | | | | | | 0d389d175a libuv: Revert local linux/sparc64 fix now that we have upstream fix 42fbb28516 Merge branch 'upstream-libuv' into update-libuv c8b67ea119 libuv 2018-05-06 (bf605bd7) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2049
| * libuv: Revert local linux/sparc64 fix now that we have upstream fixBrad King2018-05-071-1/+1
| |
| * Merge branch 'upstream-libuv' into update-libuvBrad King2018-05-0761-751/+990
| | | | | | | | | | * upstream-libuv: libuv 2018-05-06 (bf605bd7)
* | Merge topic 'doc-code-block-highlight'Brad King2018-05-081-0/+1
|\ \ | |/ |/| | | | | | | | | 8114b00b02 Utilities/Sphinx: Do not highlight unspecified code blocks as python Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2047
| * Utilities/Sphinx: Do not highlight unspecified code blocks as pythonBrad King2018-05-041-0/+1
| |
* | Utilities/Sphinx: Make HTML links in parsed-literal blocks more obviousBrad King2018-05-071-0/+10
|/ | | | | | | | Hyperlink text color does not stand out when used inside a literal block because such blocks typically get syntax highlighting. Update our CSS style to make the links more distinct. Suggested-by: Kyle Edwards <kyle.edwards@kitware.com>
* Merge topic 'ctest-libuv-linux-sparc64'Brad King2018-05-031-1/+1
|\ | | | | | | | | | | | | 1c22fdf360 libuv: linux/sparc64: use fcntl to set and clear O_NONBLOCK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2029
| * libuv: linux/sparc64: use fcntl to set and clear O_NONBLOCKBrad King2018-05-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream libuv commits: * node-v0.6.0~28 (linux: use ioctl(FIONBIO) to set O_NONBLOCK, saves a syscall, 2011-10-29) * v1.11.0~11 (unix: use async-signal safe functions between fork and exec, 2016-12-12) left an asymmetry in the way O_NONBLOCK is set and cleared. Normally ioctl/FIONBIO is used for both. However, uv_spawn uses fcntl/O_NONBLOCK to clear O_NONBLOCK between fork and exec. This fails on Linux/sparc64 where setting via ioctl/FIONBIO actually sets two bits (in O_NDELAY) that cause clearing via fcntl/O_NONBLOCK to be silently ignored (though clearing via ioctl/FIONBIO or fcntl/O_NDELAY works). Since CMake commit v3.11.0-rc1~117^2 (CTest: Re-implement test process handling using libuv, 2017-12-10), CTest uses libuv. On Linux/sparc64 child processes have been started with non-blocking output pipes. This can lead to write errors or lost output from children not prepared to deal with `EAGAIN` on stdout or stderr. Fix this for now by switching libuv back to fcntl/O_NONBLOCK to set and clear O_NONBLOCK when compiled on Linux/sparc64. LibUV-Issue: 1830 Fixes: #17941
* | Utilities/Sphinx: Add role and directive for 'envvar' in CMake domainBrad King2018-04-192-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables cross-reference syntax for CMake environment variables: :envvar:`SOMEVAR` and definition of CMake environment variables via a directive: .. envvar:: SOMEVAR It also adds environment variables defined by the directive and by `Help/envvar/SOMEVAR.rst` documents to the index. This `envvar` role and directive is defined in our `cmake` domain and overrides the equivalent `envvar` role and directive provided by Sphinx in its default domain. This is okay because we build CMake documents in the `cmakd` domain. This follows up the work from commit v3.10.0-rc1~43^2 (Help: Document CMake's environment variables, 2017-09-01) that originally added `envvar` documentation.
* | Utilities/Sphinx: Fix QtHelp generator identifiersBrad King2018-04-191-0/+1
| | | | | | | | Add missinge entry in `create_identifiers.py` helper.
* | Utilities/Release: Remove extra colon from release scriptsJean-Christophe Fillion-Robin2018-04-033-3/+3
| | | | | | | | The type of the `BUILD_QtDialog` cache entry is `BOOL`, not `BOOL:`.
* | libuv: disable process affinity during CMake bootstrapBrad King2018-03-051-0/+10
| | | | | | | | Avoid depending on platform-specific pthread features during bootstrap.
* | libuv: unix,win: add uv_spawn option to set child CPU affinity maskBrad King2018-03-053-0/+114
| | | | | | | | | | | | | | | | Implement it on Linux, FreeBSD, and Windows for now, and fail with UV_ENOTSUP on other platforms. Backported from upstream libuv PR 1527, scheduled for inclusion in libuv 2.0.
* | libuv: misc: add function to get CPU affinity mask sizeBrad King2018-03-053-0/+17
|/ | | | | | | | Implement it on Linux, FreeBSD, and Windows for now, and return UV_ENOTSUP on other platforms. Backported from upstream libuv PR 1527, scheduled for inclusion in libuv 2.0.
* CMake 3.11.0-rc1 version updateBrad King2018-02-051-1/+1
|
* Merge branch 'upstream-curl' into update-curlBrad King2018-01-24100-4124/+8933
| | | | | * upstream-curl: curl 2018-01-23 (d6c21c8e)
* curl: Update script to get curl 7.58.0Brad King2018-01-241-1/+1
|
* Merge topic 'update-libuv'Brad King2018-01-2263-1019/+2804
|\ | | | | | | | | | | | | | | | | | | 6db7b352 libuv: Update build within CMake b58d48c1 Merge branch 'upstream-libuv' into update-libuv f4a26c74 libuv 2018-01-19 (63de1eca) e8b57c22 libuv: Teach import script to add missing newlines Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1666
| * libuv: Update build within CMakeBrad King2018-01-191-1/+2
| | | | | | | | Update our CMake build rules to account for upstream changes.
| * Merge branch 'upstream-libuv' into update-libuvBrad King2018-01-1961-1018/+2800
| | | | | | | | | | * upstream-libuv: libuv 2018-01-19 (63de1eca)
| * libuv: Teach import script to add missing newlinesBrad King2018-01-161-0/+2
| |
* | IWYU: Add more workaround mappings for internal bitsBrad King2018-01-221-0/+3
|/ | | | | | | | | Extend our hack section of mappings to work around IWYU incorrectly requiring: * bits/stdint-uintn.h for stdint.h * bits/stdint-intn.h for stdint.h * bits/types/mbstate_t.h for wchar.h
* Merge topic 'ctest-libuv'Brad King2018-01-111-1/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b5e21d7d CTest: Re-implement test process handling using libuv fcebff75 cmProcess: Use explicit enum for process exit exception 3dd2edf4 cmProcess: Use explicit enum for process state 5238e6db cmProcess: Remove unused ReportStatus method c13b68e6 cmCTestRunTest: Modernize constructor and destructor decls 4d6b0903 cmCTestRunTest: Drop unused members 05da65bc cmCTestMultiProcessHandler: Factor out duplicate test finish logic dd945345 cmCTestMultiProcessHandler: Add helper to make libuv use SA_RESTART ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1455
| * libuv: unix: restart syscalls interrupted by our signal handlerBrad King2018-01-081-1/+6
| | | | | | | | | | | | | | | | | | | | BSD `signal(2)` semantics make some system calls (e.g. for `write`) restartable when interrupted by a signal handler. Use `SA_RESTART` to enable these semantics everywhere that supports them. This is required by C++ stream libraries that interpret `EINTR` as any other error, set `badbit`, and stop writing. I've observed this with `libstdc++` during a `std::cout.flush()` call interrupted by `SIGCHLD`.
* | Merge branch 'upstream-KWIML' into update-kwimlBrad King2018-01-095-9/+38
|/ | | | | * upstream-KWIML: KWIML 2018-01-09 (9c2d6cae)
* Merge topic 'ctest-chrono'Brad King2017-12-051-0/+5
|\ | | | | | | | | | | | | | | 66419bc0 CTest: convert timeouts to std::chrono::duration 923b8fad IWYU: Add mappings for std::enable_if on chrono durations Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1513
| * CTest: convert timeouts to std::chrono::durationWouter Klouwen2017-12-041-0/+1
| | | | | | | | | | | | | | | | | | This commit continues the refactoring of CTest to adopt std::chrono. After the last sets of changes that introduced std::chrono::steady_clock and std::chrono::system_clock respectively, it makes sense to have all the timeouts be stored as std::chrono::duration. No functional change intended.
| * IWYU: Add mappings for std::enable_if on chrono durationsBrad King2017-11-281-0/+4
| | | | | | | | | | | | | | | | IWYU incorrectly classifies this internal STL type as not internal, and suggests including `<type_traits>` for it. Work around the problem by mapping the offending names to a file that we always include. See include-what-you-use issue 434.
* | Merge branch 'upstream-GitSetup' into update-gitsetupBrad King2017-11-3010-871/+4
| | | | | | | | | | * upstream-GitSetup: GitSetup 2017-10-26 (1639317d)
* | GitSetup: Restrict import to files we needBrad King2017-11-301-0/+7
|/
* IWYU: Add more mappings for std::__decay_and_stripBrad King2017-11-211-0/+2
| | | | | | | | IWYU incorrectly classifies this internal STL type as not internal, and suggests including `<type_traits>` for it. Work around the problem by mapping the offending names to a file that we always include. See include-what-you-use issue 434.
* Utilities/Release: Update to openssl-1.1.0gBrad King2017-11-141-3/+3
| | | | | | | | Update the prebuilt binary build configurations for machines where we build our own OpenSSL library to use a newer version. Now that we require pthreads for libuv anyway, we can use OpenSSL 1.1 along with its dependency on pthreads.
* Utilities/Release: Update to openssl-1.0.2mBrad King2017-11-141-3/+3
| | | | | Update the prebuilt binary build configurations for machines where we build our own OpenSSL library to use a newer version.
* Utilities/Release: Build static executables on WindowsBrad King2017-11-142-13/+36
| | | | | | | Switch to the MSVC static runtime library (and static UCRT). Link Qt statically, including the Windows platform plugin. Disable the Qt tests because they are incompatible with a Qt using a static runtime library.
* Utilities/Release: Remove unused setting in Linux buildBrad King2017-11-141-1/+0
| | | | | CMake_INSTALL_DEPENDENCIES is not needed because we link both Qt and the toolchain runtime library statically.
* Fix trivial typos in textluzpaz2017-11-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces