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 | 3520868fcffb6e3405014cd47973bfa757487a40 (patch) | |
| tree | 737d75c48e0c7d67926de88b604f875fa444badc /lib/AST/Comment.cpp | |
| parent | b2ae804b5d58d4cc4991d78b8d1d25fc6cc14d78 (diff) | |
| download | clang-3520868fcffb6e3405014cd47973bfa757487a40.tar.gz clang-3520868fcffb6e3405014cd47973bfa757487a40.tar.bz2 clang-3520868fcffb6e3405014cd47973bfa757487a40.tar.xz | |
Use CharInfo.h routines in TextComment::isWhitespaceNoCache
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Comment.cpp')
| -rw-r--r-- | lib/AST/Comment.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp index a16a023e95..79cabdb776 100644 --- a/lib/AST/Comment.cpp +++ b/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; |
