[cfe-commits] r111186 - /cfe/trunk/lib/Frontend/ASTUnit.cpp

Douglas Gregor dgregor at apple.com
Mon Aug 16 14:23:13 PDT 2010


Author: dgregor
Date: Mon Aug 16 16:23:13 2010
New Revision: 111186

URL: http://llvm.org/viewvc/llvm-project?rev=111186&view=rev
Log:
Formatting fixes. No functionality change

Modified:
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=111186&r1=111185&r2=111186&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Mon Aug 16 16:23:13 2010
@@ -1517,8 +1517,8 @@
   typedef CodeCompleteConsumer::Result Result;
   llvm::SmallVector<Result, 8> AllResults;
   for (ASTUnit::cached_completion_iterator 
-       C = AST.cached_completion_begin(),
-       CEnd = AST.cached_completion_end();
+            C = AST.cached_completion_begin(),
+         CEnd = AST.cached_completion_end();
        C != CEnd; ++C) {
     // If the context we are in matches any of the contexts we are 
     // interested in, we'll add this result.
@@ -1547,15 +1547,15 @@
                                Context.getPreferredType()->isAnyPointerType());
       } else if (C->Type) {
         CanQualType Expected
-        = S.Context.getCanonicalType(
+          = S.Context.getCanonicalType(
                                Context.getPreferredType().getUnqualifiedType());
         SimplifiedTypeClass ExpectedSTC = getSimplifiedTypeClass(Expected);
         if (ExpectedSTC == C->TypeClass) {
           // We know this type is similar; check for an exact match.
           llvm::StringMap<unsigned> &CachedCompletionTypes
-          = AST.getCachedCompletionTypes();
+            = AST.getCachedCompletionTypes();
           llvm::StringMap<unsigned>::iterator Pos
-          = CachedCompletionTypes.find(QualType(Expected).getAsString());
+            = CachedCompletionTypes.find(QualType(Expected).getAsString());
           if (Pos != CachedCompletionTypes.end() && Pos->second == C->Type)
             Priority /= CCF_ExactTypeMatch;
           else





More information about the cfe-commits mailing list