diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-09-03 18:28:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-09-03 18:28:41 +0000 |
| commit | 78b6221ff9522539a78bb8a3cfa32bf4b9739b9c (patch) | |
| tree | 63135c8bd32812e73b5d0ff54d40c386d6aa446e /clang/Lex/Lexer.cpp | |
| parent | cd1e8d2c9d8585f3e63c4d57efacfe18275fe132 (diff) | |
| download | bcm5719-llvm-78b6221ff9522539a78bb8a3cfa32bf4b9739b9c.tar.gz bcm5719-llvm-78b6221ff9522539a78bb8a3cfa32bf4b9739b9c.zip | |
Eliminate some VC++ warnings, patch by Hartmut Kaiser!
llvm-svn: 41685
Diffstat (limited to 'clang/Lex/Lexer.cpp')
| -rw-r--r-- | clang/Lex/Lexer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Lex/Lexer.cpp b/clang/Lex/Lexer.cpp index c45a36a9a59..f8640b35562 100644 --- a/clang/Lex/Lexer.cpp +++ b/clang/Lex/Lexer.cpp @@ -141,26 +141,26 @@ 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; } |

