CommentParser.h (249423) | CommentParser.h (261991) |
---|---|
1//===--- CommentParser.h - Doxygen comment parser ---------------*- 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//===----------------------------------------------------------------------===// --- 47 unchanged lines hidden (view full) --- 56 Token Tok; 57 58 /// A stack of additional lookahead tokens. 59 SmallVector<Token, 8> MoreLATokens; 60 61 void consumeToken() { 62 if (MoreLATokens.empty()) 63 L.lex(Tok); | 1//===--- CommentParser.h - Doxygen comment parser ---------------*- 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//===----------------------------------------------------------------------===// --- 47 unchanged lines hidden (view full) --- 56 Token Tok; 57 58 /// A stack of additional lookahead tokens. 59 SmallVector<Token, 8> MoreLATokens; 60 61 void consumeToken() { 62 if (MoreLATokens.empty()) 63 L.lex(Tok); |
64 else { 65 Tok = MoreLATokens.back(); 66 MoreLATokens.pop_back(); 67 } | 64 else 65 Tok = MoreLATokens.pop_back_val(); |
68 } 69 70 void putBack(const Token &OldTok) { 71 MoreLATokens.push_back(Tok); 72 Tok = OldTok; 73 } 74 75 void putBack(ArrayRef<Token> Toks) { --- 54 unchanged lines hidden --- | 66 } 67 68 void putBack(const Token &OldTok) { 69 MoreLATokens.push_back(Tok); 70 Tok = OldTok; 71 } 72 73 void putBack(ArrayRef<Token> Toks) { --- 54 unchanged lines hidden --- |