diff options
| author | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-18 12:47:01 +0000 |
|---|---|---|
| committer | Hartmut Kaiser <hartmut.kaiser@gmail.com> | 2007-10-18 12:47:01 +0000 |
| commit | c8107e54d5046c56718b8329bea2133a6dc24aec (patch) | |
| tree | fa51ccdf0f9756bd5c71fa1580d4a15e6b471fbc /clang/Lex/Lexer.cpp | |
| parent | 597e172d0aebcf76ed829f8779b475526eb29521 (diff) | |
| download | bcm5719-llvm-c8107e54d5046c56718b8329bea2133a6dc24aec.tar.gz bcm5719-llvm-c8107e54d5046c56718b8329bea2133a6dc24aec.zip | |
Silenced a couple of VC++ warnings.
llvm-svn: 43125
Diffstat (limited to 'clang/Lex/Lexer.cpp')
| -rw-r--r-- | clang/Lex/Lexer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp index 19dcfe2f0c6..ffa352f3754 100644 --- a/clang/Lex/Lexer.cpp +++ b/clang/Lex/Lexer.cpp @@ -233,26 +233,27 @@ static void InitCharacterInfo() { /// isIdentifierBody - Return true if this is the body character of an /// identifier, which is [a-zA-Z0-9_]. static inline bool isIdentifierBody(unsigned char c) { - return CharInfo[c] & (CHAR_LETTER|CHAR_NUMBER|CHAR_UNDER); + return (CharInfo[c] & (CHAR_LETTER|CHAR_NUMBER|CHAR_UNDER)) ? true : false; } /// isHorizontalWhitespace - Return true if this character is horizontal /// whitespace: ' ', '\t', '\f', '\v'. Note that this returns false for '\0'. static inline bool isHorizontalWhitespace(unsigned char c) { - return CharInfo[c] & CHAR_HORZ_WS; + return (CharInfo[c] & CHAR_HORZ_WS) ? true : false; } /// isWhitespace - Return true if this character is horizontal or vertical /// whitespace: ' ', '\t', '\f', '\v', '\n', '\r'. Note that this returns false /// for '\0'. static inline bool isWhitespace(unsigned char c) { - return CharInfo[c] & (CHAR_HORZ_WS|CHAR_VERT_WS); + return (CharInfo[c] & (CHAR_HORZ_WS|CHAR_VERT_WS)) ? true : false; } /// isNumberBody - Return true if this is the body character of an /// preprocessing number, which is [a-zA-Z0-9_.]. static inline bool isNumberBody(unsigned char c) { - return CharInfo[c] & (CHAR_LETTER|CHAR_NUMBER|CHAR_UNDER|CHAR_PERIOD); + return (CharInfo[c] & (CHAR_LETTER|CHAR_NUMBER|CHAR_UNDER|CHAR_PERIOD)) ? + true : false; } |

