]> granicus.if.org Git - clang/commitdiff
Change line endings: CRLF -> LF
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 23 Aug 2008 12:05:53 +0000 (12:05 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 23 Aug 2008 12:05:53 +0000 (12:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PPCaching.cpp

index e69eac65ff5c06a08700065308f3c15f64a3d4f0..5bed51eaa4020b6f154fde7b3738cdce8463a2f7 100644 (file)
 #include "clang/Lex/Preprocessor.h"
 using namespace clang;
 
-/// EnableBacktrackAtThisPos - From the point that this method is called, and\r
-/// until DisableBacktrack() or Backtrack() is called, the Preprocessor keeps\r
-/// track of the lexed tokens so that a subsequent Backtrack() call will make\r
-/// the Preprocessor re-lex the same tokens.\r
-///\r
-/// Nested backtracks are allowed, meaning that EnableBacktrackAtThisPos can\r
-/// be called multiple times and DisableBacktrack/Backtrack calls will be\r
-/// combined with the EnableBacktrackAtThisPos calls in reverse order.\r
-void Preprocessor::EnableBacktrackAtThisPos() {\r
-  CacheTokens = true;\r
-  BacktrackPositions.push_back(CachedLexPos);\r
-  EnterCachingLexMode();\r
-}\r
+/// EnableBacktrackAtThisPos - From the point that this method is called, and
+/// until DisableBacktrack() or Backtrack() is called, the Preprocessor keeps
+/// track of the lexed tokens so that a subsequent Backtrack() call will make
+/// the Preprocessor re-lex the same tokens.
+///
+/// Nested backtracks are allowed, meaning that EnableBacktrackAtThisPos can
+/// be called multiple times and DisableBacktrack/Backtrack calls will be
+/// combined with the EnableBacktrackAtThisPos calls in reverse order.
+void Preprocessor::EnableBacktrackAtThisPos() {
+  CacheTokens = true;
+  BacktrackPositions.push_back(CachedLexPos);
+  EnterCachingLexMode();
+}
 
-/// DisableBacktrack - Disable the last EnableBacktrackAtThisPos() call.\r
-void Preprocessor::DisableBacktrack() {\r
-  assert(!BacktrackPositions.empty()\r
-         && "EnableBacktrackAtThisPos was not called!");\r
-  BacktrackPositions.pop_back();\r
-  CacheTokens = !BacktrackPositions.empty();\r
-}\r
-\r
-/// Backtrack - Make Preprocessor re-lex the tokens that were lexed since\r
-/// EnableBacktrackAtThisPos() was previously called. \r
-void Preprocessor::Backtrack() {\r
-  assert(!BacktrackPositions.empty()\r
-         && "EnableBacktrackAtThisPos was not called!");\r
-  CachedLexPos = BacktrackPositions.back();\r
-  BacktrackPositions.pop_back();\r
-  CacheTokens = !BacktrackPositions.empty();\r
-}\r
+/// DisableBacktrack - Disable the last EnableBacktrackAtThisPos() call.
+void Preprocessor::DisableBacktrack() {
+  assert(!BacktrackPositions.empty()
+         && "EnableBacktrackAtThisPos was not called!");
+  BacktrackPositions.pop_back();
+  CacheTokens = !BacktrackPositions.empty();
+}
+
+/// Backtrack - Make Preprocessor re-lex the tokens that were lexed since
+/// EnableBacktrackAtThisPos() was previously called. 
+void Preprocessor::Backtrack() {
+  assert(!BacktrackPositions.empty()
+         && "EnableBacktrackAtThisPos was not called!");
+  CachedLexPos = BacktrackPositions.back();
+  BacktrackPositions.pop_back();
+  CacheTokens = !BacktrackPositions.empty();
+}
 
 void Preprocessor::CachingLex(Token &Result) {
   if (CachedLexPos < CachedTokens.size()) {