diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-05 07:19:35 +0000 | 
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-05 07:19:35 +0000 | 
| commit | dbfb18a0a94e40fa9bc05ec48667b56c1f7a92ce (patch) | |
| tree | 4c5b750a3419a041f30112b67e0198f866cdca83 /clang/lib/Lex | |
| parent | e007e80fc0d0d67507d9ef874a0cb62fb3409c39 (diff) | |
| download | bcm5719-llvm-dbfb18a0a94e40fa9bc05ec48667b56c1f7a92ce.tar.gz bcm5719-llvm-dbfb18a0a94e40fa9bc05ec48667b56c1f7a92ce.zip | |
Use the Lexer's definition of whitespace here.
llvm-svn: 139115
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/Lexer.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index 4de6ce7ad5c..a6353384943 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -32,7 +32,6 @@  #include "llvm/ADT/StringSwitch.h"  #include "llvm/Support/Compiler.h"  #include "llvm/Support/MemoryBuffer.h" -#include <cctype>  #include <cstring>  using namespace clang; @@ -1677,9 +1676,9 @@ bool Lexer::SkipBCPLComment(Token &Result, const char *CurPtr) {          if (OldPtr[0] == '\n' || OldPtr[0] == '\r') {            // Okay, we found a // comment that ends in a newline, if the next            // line is also a // comment, but has spaces, don't emit a diagnostic. -          if (isspace(C)) { +          if (isWhitespace(C)) {              const char *ForwardPtr = CurPtr; -            while (isspace(*ForwardPtr))  // Skip whitespace. +            while (isWhitespace(*ForwardPtr))  // Skip whitespace.                ++ForwardPtr;              if (ForwardPtr[0] == '/' && ForwardPtr[1] == '/')                break; | 

