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 | a7d03840e695d4fd7432e9d07a61db3a9d16feeb (patch) | |
tree | 8c8141241da23d7a154a5cc316195abeaf8e554a /clang/tools/driver/driver.cpp | |
parent | a08ed5965caf1593f8faf2175b8e074808281331 (diff) | |
download | bcm5719-llvm-a7d03840e695d4fd7432e9d07a61db3a9d16feeb.tar.gz bcm5719-llvm-a7d03840e695d4fd7432e9d07a61db3a9d16feeb.zip |
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.
llvm-svn: 174768
Diffstat (limited to 'clang/tools/driver/driver.cpp')
-rw-r--r-- | clang/tools/driver/driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp index 7ccf57a2428..ee2d5f59633 100644 --- a/clang/tools/driver/driver.cpp +++ b/clang/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; |