whitespace and comment changes, to fix grammar and 80 col violations

llvm-svn: 56776
This commit is contained in:
Nico Weber 2008-09-29 00:25:48 +00:00
parent b6b1abb0f5
commit 378c5539c8
2 changed files with 5 additions and 5 deletions

View File

@ -71,7 +71,7 @@ SourceManager::createMemBufferContentCache(const MemoryBuffer *Buffer) {
} }
/// 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 /// include position. This works regardless of whether the ContentCache
/// corresponds to a file or some other input source. /// corresponds to a file or some other input source.
unsigned SourceManager::createFileID(const ContentCache *File, unsigned SourceManager::createFileID(const ContentCache *File,
@ -399,14 +399,14 @@ void ContentCache::ReadToSourceManager(llvm::Deserializer& D,
// is absolutely needed. // is absolutely needed.
if (!E) if (!E)
D.RegisterPtr(PtrID,NULL); D.RegisterPtr(PtrID,NULL);
else else
// Get the ContextCache object and register it with the deserializer. // Get the ContextCache object and register it with the deserializer.
D.RegisterPtr(PtrID,SMgr.getContentCache(E)); D.RegisterPtr(PtrID,SMgr.getContentCache(E));
} }
else { else {
// Register the ContextCache object with the deserializer. // Register the ContextCache object with the deserializer.
SMgr.MemBufferInfos.push_back(ContentCache()); SMgr.MemBufferInfos.push_back(ContentCache());
ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back()); ContentCache& Entry = const_cast<ContentCache&>(SMgr.MemBufferInfos.back());
D.RegisterPtr(&Entry); D.RegisterPtr(&Entry);
// Create the buffer. // Create the buffer.
@ -467,7 +467,7 @@ void SourceManager::Emit(llvm::Serializer& S) const {
S.ExitBlock(); S.ExitBlock();
// Emit: FileIDs // Emit: FileIDs
S.EmitInt(FileIDs.size()); S.EmitInt(FileIDs.size());
std::for_each(FileIDs.begin(), FileIDs.end(), S.MakeEmitter<FileIDInfo>()); std::for_each(FileIDs.begin(), FileIDs.end(), S.MakeEmitter<FileIDInfo>());

View File

@ -334,7 +334,7 @@ void TokenLexer::Lex(Token &Tok) {
/// PasteTokens - Tok is the LHS of a ## operator, and CurToken is the ## /// 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 /// 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. /// If this returns true, the caller should immediately return the token.
bool TokenLexer::PasteTokens(Token &Tok) { bool TokenLexer::PasteTokens(Token &Tok) {
llvm::SmallVector<char, 128> Buffer; llvm::SmallVector<char, 128> Buffer;