]> granicus.if.org Git - clang/commitdiff
tidy up
authorChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 04:40:26 +0000 (04:40 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2010 04:40:26 +0000 (04:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119996 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index 3d52159fa3beb1e784d6d45bb95c75220fcdd2ff..926f05598b73b24c90c5db68f34d558bca5006dd 100644 (file)
@@ -434,7 +434,7 @@ static void InvalidPTH(Diagnostic &Diags, const char *Msg) {
   Diags.Report(Diags.getCustomDiagID(Diagnostic::Error, Msg));
 }
 
-PTHManager* PTHManager::Create(const std::string& file, FileManager &FileMgr,
+PTHManager *PTHManager::Create(const std::string &file, FileManager &FileMgr,
                                const FileSystemOptions &FSOpts,
                                Diagnostic &Diags) {
   // Memory map the PTH file.
@@ -448,11 +448,11 @@ PTHManager* PTHManager::Create(const std::string& file, FileManager &FileMgr,
 
   // Get the buffer ranges and check if there are at least three 32-bit
   // words at the end of the file.
-  const unsigned charBufBeg = (unsigned char*)File->getBufferStart();
-  const unsigned charBufEnd = (unsigned char*)File->getBufferEnd();
+  const unsigned char *BufBeg = (unsigned char*)File->getBufferStart();
+  const unsigned char *BufEnd = (unsigned char*)File->getBufferEnd();
 
   // Check the prologue of the file.
-  if ((BufEnd - BufBeg) < (signed) (sizeof("cfe-pth") + 3 + 4) ||
+  if ((BufEnd - BufBeg) < (signed)(sizeof("cfe-pth") + 3 + 4) ||
       memcmp(BufBeg, "cfe-pth", sizeof("cfe-pth") - 1) != 0) {
     Diags.Report(diag::err_invalid_pth_file) << file;
     return 0;