- Dec 04, 2017
-
-
Sebastian Holtermann authored
-
Sebastian Holtermann authored
RegularExpression::find() used to use shared global variables for every instance. This moves the variables into a private class on the stack instead.
-
Sebastian Holtermann authored
RegularExpression::compile() used to use shared global variables for every instance. This moves the variables into a private class on the stack instead.
-
- Dec 01, 2017
-
-
7b6fa277 ConsoleBuf: Add explicit switch case fallthrough markup Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !71
-
- Nov 30, 2017
-
-
Brad King authored
Fix `-Wimplicit-fallthrough` warnings.
-
1b09cf0d Configure: Add KWSYS_FALLTHROUGH macro for C++ code Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !69
-
- Nov 29, 2017
-
-
Brad King authored
Some C++ compilers now warn when a switch case falls through to another case, but compilers vary in how to suppress the warning with an explicit fallthrough specifier. Provide a macro for the specifier.
-
- Nov 09, 2017
-
-
e9d2b696 SystemTools: Cache only existing path names in GetActualCaseForPath Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !68
-
Non-existent names may be created later with a different case.
-
- Nov 07, 2017
-
-
bfdbfe9b Avoid requiring CMake 3.4 string(APPEND) Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !67
-
- Nov 06, 2017
-
-
Brad King authored
The `string(APPEND)` command was introduced by CMake 3.4, but we still support older versions.
-
9a1d5901 Fix trivial typos in text Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !66
-
- Nov 03, 2017
-
- Nov 02, 2017
-
-
8e428c18 Process: Add function to kill process (and children) with pid Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !65
-
- Nov 01, 2017
-
-
Bryon Bean authored
-
9e0b4d1a SystemTools: set default MakeDirectory permissions mode Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !63
-
90886a99 Process: Fix tests under ubsan 7a4cca11 Process: Refactor test compile flag addition Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !64
-
- Oct 31, 2017
-
-
Brad King authored
UBsan causes our test crash to abort instead. Switch the test to explicitly abort when sanitizers are in use.
-
Brad King authored
-
Domen Vrankar authored
MakeDirectory can create an entire directory structure so it's convenient that we can set the default directory permissions for directories that did not exist beforehand.
-
- Oct 17, 2017
-
-
b4507c9c Remove dead code from Configure.h.in Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !62
-
- Oct 16, 2017
-
-
Remove code that gives the preprocessor trouble when `_FILE_OFFSET_BITS` is not defined, e.g. on 32-bit machines. It was behind `#if 0` anyway.
-
- Oct 12, 2017
-
-
88d4dd4b CommandLineArguments: use std::string in GenerateHelp() Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !60
-
8717ac15 DynamicLoader: use std::string instead of strcpy() + strcat() Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !59
-
749b7506 ProcessUNIX: Use monotonic clock in kwsysProcessTimeGetCurrent() for POSIX Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !57
-
- Oct 11, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
Wouter Klouwen authored
While a process is running, it is possible for other processes such as NTP to alter the system clock in large jumps. To make the measurement of how long a process has taken to run impervious to such large jumps it is helpful to use a monotonic clock. This is a clock that takes an arbitrary starting point that does not change. clock_gettime() is a POSIX method that implements this clock. This is not available on all platforms, so this commit adds a check for its presence. If the monotonic timer is available, use that in kwsysProcessTimeGetCurrent(), otherwise falls back to previous non-monotonic behaviour.
-
- Oct 10, 2017
-
-
5d2aff9d ProcessWin32: use strdup() instead of open coding it cf8beae3 ProcessUNIX: use strdup() instead of open coding it Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !56
-
3b8fefea remove pointer checks before calling free() 6d7eb3a1 CommandLineArguments: do not check variable before delete[] Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !55
-
ce55a255 testSystemTools: fix some copy'n'paste issues 73c491e8 processUNIX: fix not null terminated buffer during error reporting 13e02b76 processUNIX: close intermediate file descriptor in error case 862562ce SystemInformation: fix potential off-by-one write Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !54
-
6599eda6 testRobustEncoding: restore format flags for std::cout before exiting Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !53
-
- Oct 07, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
- Oct 06, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
- Oct 05, 2017
-
-
Matthias Männich authored
-
Matthias Männich authored
-
Matthias Männich authored
-
Matthias Männich authored
in case readlink uses the complete buffer (1024) it will truncate the result and return 1024 assigned to ll. the subsequent buf[ll] will then be out of bounds. the fix assumes, that a truncated result is as useful as experiencing an error during readlink, hence falling back to /proc/self/exe.
-