diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-09 15:16:58 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-09 15:16:58 +0000 |
| commit | bcef3411cda874452aa761ee3ecdbfeb39c6f238 (patch) | |
| tree | 4bd832b1d4cde1eb8403b38999b81f0d518308ee /clang/lib/AST/CommentParser.cpp | |
| parent | efbbd1e90c1e0205390acc1d30e72e0548392c09 (diff) | |
| download | bcm5719-llvm-bcef3411cda874452aa761ee3ecdbfeb39c6f238.tar.gz bcm5719-llvm-bcef3411cda874452aa761ee3ecdbfeb39c6f238.zip | |
Comment parsing: use CharInfo.h
This also gives us 0.2% speedup on '-fsyntax-only -Wdocumentation' time for
a testcase that consists of all Clang headers.
llvm-svn: 174810
Diffstat (limited to 'clang/lib/AST/CommentParser.cpp')
| -rw-r--r-- | clang/lib/AST/CommentParser.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/AST/CommentParser.cpp b/clang/lib/AST/CommentParser.cpp index 5f45125bdce..952c10c4a8b 100644 --- a/clang/lib/AST/CommentParser.cpp +++ b/clang/lib/AST/CommentParser.cpp @@ -11,6 +11,7 @@ #include "clang/AST/CommentCommandTraits.h" #include "clang/AST/CommentDiagnostic.h" #include "clang/AST/CommentSema.h" +#include "clang/Basic/CharInfo.h" #include "clang/Basic/SourceManager.h" #include "llvm/Support/ErrorHandling.h" @@ -109,11 +110,6 @@ class TextTokenRetokenizer { return true; } - static bool isWhitespace(char C) { - return C == ' ' || C == '\n' || C == '\r' || - C == '\t' || C == '\f' || C == '\v'; - } - void consumeWhitespace() { while (!isEnd()) { if (isWhitespace(peek())) |

