diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 22:30:41 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-02-08 22:30:41 +0000 |
commit | 3f6f51e28231f65de9c2dd150a2d757b2162cfa3 (patch) | |
tree | 1e341c81fec0bf620086a1afa40f4f847dc5bdc4 /tools/driver/driver.cpp | |
parent | 4a04d445af4d29440371800409babc98708d98aa (diff) | |
download | clang-3f6f51e28231f65de9c2dd150a2d757b2162cfa3.tar.gz clang-3f6f51e28231f65de9c2dd150a2d757b2162cfa3.tar.bz2 clang-3f6f51e28231f65de9c2dd150a2d757b2162cfa3.tar.xz |
Excise <cctype> from Clang (except clang-tblgen) in favor of CharInfo.h.
Nearly all of these changes are one-to-one replacements; the few that
aren't have to do with custom identifier validation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/driver.cpp')
-rw-r--r-- | tools/driver/driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 7ccf57a242..ee2d5f5963 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#include "clang/Basic/CharInfo.h" #include "clang/Basic/DiagnosticOptions.h" #include "clang/Driver/ArgList.h" #include "clang/Driver/Compilation.h" @@ -42,7 +43,6 @@ #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" -#include <cctype> using namespace clang; using namespace clang::driver; @@ -202,7 +202,7 @@ static void ExpandArgsFromBuf(const char *Arg, std::string CurArg; for (const char *P = Buf; ; ++P) { - if (*P == '\0' || (isspace(*P) && InQuote == ' ')) { + if (*P == '\0' || (isWhitespace(*P) && InQuote == ' ')) { if (!CurArg.empty()) { if (CurArg[0] != '@') { @@ -219,7 +219,7 @@ static void ExpandArgsFromBuf(const char *Arg, continue; } - if (isspace(*P)) { + if (isWhitespace(*P)) { if (InQuote != ' ') CurArg.push_back(*P); continue; |