From 5535d5721b6bfb5df9583bc0632da910a176109d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 16 Aug 2010 21:23:13 +0000 Subject: [PATCH] Formatting fixes. No functionality change git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111186 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/ASTUnit.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp index f8dea65d54..564ef56c97 100644 --- a/lib/Frontend/ASTUnit.cpp +++ b/lib/Frontend/ASTUnit.cpp @@ -1517,8 +1517,8 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S, typedef CodeCompleteConsumer::Result Result; llvm::SmallVector 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 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S, 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 &CachedCompletionTypes - = AST.getCachedCompletionTypes(); + = AST.getCachedCompletionTypes(); llvm::StringMap::iterator Pos - = CachedCompletionTypes.find(QualType(Expected).getAsString()); + = CachedCompletionTypes.find(QualType(Expected).getAsString()); if (Pos != CachedCompletionTypes.end() && Pos->second == C->Type) Priority /= CCF_ExactTypeMatch; else