[cfe-commits] r56776 - in /cfe/trunk/lib: Basic/SourceManager.cpp Lex/TokenLexer.cpp

Nico Weber nicolasweber at gmx.de
Sun Sep 28 17:25:50 PDT 2008


Author: nico
Date: Sun Sep 28 19:25:48 2008
New Revision: 56776

URL: http://llvm.org/viewvc/llvm-project?rev=56776&view=rev
Log:
whitespace and comment changes, to fix grammar and 80 col violations

Modified:
    cfe/trunk/lib/Basic/SourceManager.cpp
    cfe/trunk/lib/Lex/TokenLexer.cpp

Modified: cfe/trunk/lib/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/SourceManager.cpp?rev=56776&r1=56775&r2=56776&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/SourceManager.cpp (original)
+++ cfe/trunk/lib/Basic/SourceManager.cpp Sun Sep 28 19:25:48 2008
@@ -71,7 +71,7 @@
 }
 
 
-/// createFileID - Create a new fileID for the specified ContentCache and 
+/// createFileID - Create a new fileID for the specified ContentCache and
 /// include position.  This works regardless of whether the ContentCache
 /// corresponds to a file or some other input source.
 unsigned SourceManager::createFileID(const ContentCache *File,
@@ -399,14 +399,14 @@
     //  is absolutely needed.
     if (!E)
       D.RegisterPtr(PtrID,NULL);
-    else    
+    else
       // Get the ContextCache object and register it with the deserializer.
       D.RegisterPtr(PtrID,SMgr.getContentCache(E));
   }
   else {
     // Register the ContextCache object with the deserializer.
     SMgr.MemBufferInfos.push_back(ContentCache());
-    ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back());    
+    ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back());
     D.RegisterPtr(&Entry);
     
     // Create the buffer.
@@ -467,7 +467,7 @@
   
   S.ExitBlock();
   
-  // Emit: FileIDs  
+  // Emit: FileIDs
   S.EmitInt(FileIDs.size());  
   std::for_each(FileIDs.begin(), FileIDs.end(), S.MakeEmitter<FileIDInfo>());
   

Modified: cfe/trunk/lib/Lex/TokenLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/TokenLexer.cpp?rev=56776&r1=56775&r2=56776&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/TokenLexer.cpp (original)
+++ cfe/trunk/lib/Lex/TokenLexer.cpp Sun Sep 28 19:25:48 2008
@@ -334,7 +334,7 @@
 
 /// PasteTokens - Tok is the LHS of a ## operator, and CurToken is the ##
 /// operator.  Read the ## and RHS, and paste the LHS/RHS together.  If there
-/// are is another ## after it, chomp it iteratively.  Return the result as Tok.
+/// are more ## after it, chomp them iteratively.  Return the result as Tok.
 /// If this returns true, the caller should immediately return the token.
 bool TokenLexer::PasteTokens(Token &Tok) {
   llvm::SmallVector<char, 128> Buffer;





More information about the cfe-commits mailing list