TokenConcatenation.h (198092) | TokenConcatenation.h (207619) |
---|---|
1//===--- TokenConcatenation.h - Token Concatenation Avoidance ---*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 44 unchanged lines hidden (view full) --- 53 54 /// TokenInfo - This array contains information for each token on what 55 /// action to take when avoiding concatenation of tokens in the AvoidConcat 56 /// method. 57 char TokenInfo[tok::NUM_TOKENS]; 58 public: 59 TokenConcatenation(Preprocessor &PP); 60 | 1//===--- TokenConcatenation.h - Token Concatenation Avoidance ---*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 44 unchanged lines hidden (view full) --- 53 54 /// TokenInfo - This array contains information for each token on what 55 /// action to take when avoiding concatenation of tokens in the AvoidConcat 56 /// method. 57 char TokenInfo[tok::NUM_TOKENS]; 58 public: 59 TokenConcatenation(Preprocessor &PP); 60 |
61 bool AvoidConcat(const Token &PrevTok, const Token &Tok) const; | 61 bool AvoidConcat(const Token &PrevPrevTok, 62 const Token &PrevTok, 63 const Token &Tok) const; |
62 63 private: 64 /// StartsWithL - Return true if the spelling of this token starts with 'L'. 65 bool StartsWithL(const Token &Tok) const; 66 67 /// IsIdentifierL - Return true if the spelling of this token is literally 68 /// 'L'. 69 bool IsIdentifierL(const Token &Tok) const; 70 }; 71 } // end clang namespace 72 73#endif | 64 65 private: 66 /// StartsWithL - Return true if the spelling of this token starts with 'L'. 67 bool StartsWithL(const Token &Tok) const; 68 69 /// IsIdentifierL - Return true if the spelling of this token is literally 70 /// 'L'. 71 bool IsIdentifierL(const Token &Tok) const; 72 }; 73 } // end clang namespace 74 75#endif |