- 07 Sep, 2018 2 commits
-
-
Ben Boeckel authored
-
Ben Boeckel authored
-
- 01 Aug, 2018 1 commit
-
-
Jon Chronopoulos authored
This makes FileExists consistent across Unix and Windows.
-
- 21 Jun, 2018 1 commit
-
-
Brad King authored
Avoid using our custom KWSys String type in interfaces.
-
- 09 Jun, 2018 2 commits
-
-
Marian Klymov authored
-
Marian Klymov authored
-
- 31 May, 2018 1 commit
-
-
Kitware Robot authored
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.
-
- 18 May, 2018 1 commit
-
-
Peter Wu authored
LLVM libc++ as included with Mac OS X 10.7 suffers from an issue where the trailing character is discarded when the delimiter (LF) is not found within the given buffer size (1024). The returned length is also 1024 rather than 1023. This issue results in truncated reads as observed with CMake 3.11.0 on Mac OS X 10.7 and `cmake -E cmake_link_script link.txt`. Solve this by replacing `istream::getline` by `std::getline` which does not trigger the buffering issue. There is one edge case that I decided to leave up to the callers though: a file containing `\0` previously resulted in line truncation, but is now included in the result. Tested with Mac OS X 10.7 and 10.11: -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_CXX_FLAGS=-stdlib=libc++ and `./kwsysTestsCxx testSystemTools`. Issue: cmake/cmake#15039
-
- 12 May, 2018 1 commit
-
-
Marian Klymov authored
-
- 08 Mar, 2018 1 commit
-
-
Ben Boeckel authored
-
- 06 Mar, 2018 2 commits
-
-
Brad King authored
Do not expose caching to `GetActualCaseForPath` callers. Cache path case conversion results internally for `CollapseFullPath` only.
-
- 31 Jan, 2018 10 commits
-
-
Ben Boeckel authored
-
Ben Boeckel authored
-
Ben Boeckel authored
The number of input components is a good hint for the number of output components.
-
Ben Boeckel authored
-
Ben Boeckel authored
Instead of using two pointers to iterate through the string, iterate using just one.
-
Ben Boeckel authored
Checking the bool is faster than checking characters, so perform it first.
-
Ben Boeckel authored
The function only works on paths which are already properly escaped.
-
Ben Boeckel authored
Non-Windows platforms don't have backslash as a separator, however some projects may want to support Windows paths on non-Windows platforms (e.g., paths from data files). For those which don't need this, this allows the search to be faster since it's searching for a single character.
-
Ben Boeckel authored
This avoids a `strlen` call at least.
-
Ben Boeckel authored
All callers of this function use temporary storage for the input. Instead of copying strings, move them.
-
- 19 Jan, 2018 1 commit
-
-
Sean McBride authored
-
- 09 Jan, 2018 1 commit
-
-
Chuck Atkins authored
On Linux, getpwnam requires a dynamic glibc at runtime so it can't really be used in a "fully static" build and will cause an excessive number of linker warnings pertaining to such.
-
- 03 Jan, 2018 1 commit
-
-
luz.paz authored
+ fix documentation of method name + fix some source comment typos
-
- 21 Dec, 2017 1 commit
-
-
Hans Johnson authored
When building with C++11 or greater, use the `nullptr` keyword.
-
- 14 Dec, 2017 1 commit
-
-
Volo Zyko authored
-
- 09 Dec, 2017 1 commit
-
-
Gregor Jasny authored
-
- 09 Nov, 2017 1 commit
-
-
Clinton Stimpson authored
Non-existent names may be created later with a different case.
-
- 03 Nov, 2017 1 commit
-
-
luz.paz authored
Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` in CMake whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
-
- 31 Oct, 2017 1 commit
-
-
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.
-
- 04 Oct, 2017 1 commit
-
-
Rolf Eike Beer authored
Only do one conversion attempt and write that directly to the target buffer. Do the uppercasing of the drive letter only in the ASCII domain, not in wide chars.
-
- 29 Sep, 2017 1 commit
-
-
Rolf Eike Beer authored
-
- 11 Sep, 2017 1 commit
-
-
Brad King authored
This was used only by CMake's get_filename_components() command, which has now been re-implemented independently. The operation is not well-defined (string parsing should not depend on filesystem content), so remove it.
-
- 01 Sep, 2017 1 commit
-
-
Steven authored
Teach `Load` to access the filesystem using extended paths to handle long absolute paths. Add a test case.
-
- 03 Aug, 2017 1 commit
-
-
Shawn Waldon authored
Previously trying to parse a windows-style (backslash separated) path on Linux would fail. Make this function handle either kind of separator on both platforms.
-
- 25 Jul, 2017 1 commit
-
-
Sean McBride authored
-
- 08 Jun, 2017 1 commit
-
-
Brad King authored
This method was added recently but we've found another solution for its intended use case. Removing empty path elements can corrupt paths that depend on a trailing empty component to preserve a trailing slash. Since this method was meant to complement SplitPath and JoinPath, update their documentation to explain how they treat empty components.
-
- 30 May, 2017 2 commits
-
-
Pavel Solodovnikov authored
-
Pavel Solodovnikov authored
-