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/include/clang/Lex/Token.h | |
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/include/clang/Lex/Token.h')
-rw-r--r-- | clang/include/clang/Lex/Token.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Lex/Token.h b/clang/include/clang/Lex/Token.h index f336370334d..a0754005e87 100644 --- a/clang/include/clang/Lex/Token.h +++ b/clang/include/clang/Lex/Token.h @@ -96,15 +96,15 @@ public: /// isAtStartOfLine - Return true if this token is at the start of a line. /// - bool isAtStartOfLine() const { return Flags & StartOfLine; } + bool isAtStartOfLine() const { return (Flags & StartOfLine) ? true : false; } /// hasLeadingSpace - Return true if this token has whitespace before it. /// - bool hasLeadingSpace() const { return Flags & LeadingSpace; } + bool hasLeadingSpace() const { return (Flags & LeadingSpace) ? true : false; } /// isExpandDisabled - Return true if this identifier token should never /// be expanded in the future, due to C99 6.10.3.4p2. - bool isExpandDisabled() const { return Flags & DisableExpand; } + bool isExpandDisabled() const { return (Flags & DisableExpand) ? true : false; } /// isObjCAtKeyword - Return true if we have an ObjC keyword identifier. bool isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const; @@ -115,7 +115,7 @@ public: /// needsCleaning - Return true if this token has trigraphs or escaped /// newlines in it. /// - bool needsCleaning() const { return Flags & NeedsCleaning; } + bool needsCleaning() const { return (Flags & NeedsCleaning) ? true : false; } }; /// PPConditionalInfo - Information about the conditional stack (#if directives) |