diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-08-23 17:45:43 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-08-23 17:45:43 +0000 |
commit | db6adaba6835fbd14e5ff7d6ebfc906c497935a0 (patch) | |
tree | a125f3e453d51d37972a61d09dae713c58e0b3a8 | |
parent | fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d (diff) | |
download | bcm5719-llvm-db6adaba6835fbd14e5ff7d6ebfc906c497935a0.tar.gz bcm5719-llvm-db6adaba6835fbd14e5ff7d6ebfc906c497935a0.zip |
Use CharInfo.h routines in TextComment::isWhitespaceNoCache
llvm-svn: 189115
-rw-r--r-- | clang/lib/AST/Comment.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index a16a023e95a..79cabdb7766 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -12,6 +12,7 @@ #include "clang/AST/Decl.h" #include "clang/AST/DeclObjC.h" #include "clang/AST/DeclTemplate.h" +#include "clang/Basic/CharInfo.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" @@ -94,9 +95,7 @@ Comment::child_iterator Comment::child_end() const { bool TextComment::isWhitespaceNoCache() const { for (StringRef::const_iterator I = Text.begin(), E = Text.end(); I != E; ++I) { - const char C = *I; - if (C != ' ' && C != '\n' && C != '\r' && - C != '\t' && C != '\f' && C != '\v') + if (!clang::isWhitespace(*I)) return false; } return true; |