diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-05-02 15:34:53 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-05-02 15:36:04 +0200 |
commit | d10c995b4ddf6be8f3a9c5ad61dd0becb5355cbe (patch) | |
tree | 636dbe8c5ae4f786e61e6231d642977f6a195c3b /llvm/lib/Support/FileUtilities.cpp | |
parent | b283ae7af8261c994a62b17b0eaf90cf649228fe (diff) | |
download | llvm-d10c995b4ddf6be8f3a9c5ad61dd0becb5355cbe.zip llvm-d10c995b4ddf6be8f3a9c5ad61dd0becb5355cbe.tar.gz llvm-d10c995b4ddf6be8f3a9c5ad61dd0becb5355cbe.tar.bz2 |
std::isspace -> llvm::isSpace (where locale should be ignored)
I've left out some cases where I wasn't totally sure this was right or
whether the include was ok (compiler-rt) or idiomatic (flang).
Diffstat (limited to 'llvm/lib/Support/FileUtilities.cpp')
-rw-r--r-- | llvm/lib/Support/FileUtilities.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index b95f92c..e4a86bb 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/lib/Support/FileUtilities.cpp @@ -14,6 +14,7 @@ #include "llvm/Support/FileUtilities.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/ADT/SmallString.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/Support/Error.h" #include "llvm/Support/ErrorOr.h" #include "llvm/Support/MemoryBuffer.h" @@ -92,9 +93,9 @@ static bool CompareNumbers(const char *&F1P, const char *&F2P, // If one of the positions is at a space and the other isn't, chomp up 'til // the end of the space. - while (isspace(static_cast<unsigned char>(*F1P)) && F1P != F1End) + while (isSpace(static_cast<unsigned char>(*F1P)) && F1P != F1End) ++F1P; - while (isspace(static_cast<unsigned char>(*F2P)) && F2P != F2End) + while (isSpace(static_cast<unsigned char>(*F2P)) && F2P != F2End) ++F2P; // If we stop on numbers, compare their difference. |