Formatting fixes. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2010-08-16 21:23:13 +00:00
Родитель 5f808c2bfe
Коммит 5535d5721b
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1517,8 +1517,8 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S,
typedef CodeCompleteConsumer::Result Result; typedef CodeCompleteConsumer::Result Result;
llvm::SmallVector<Result, 8> AllResults; llvm::SmallVector<Result, 8> AllResults;
for (ASTUnit::cached_completion_iterator for (ASTUnit::cached_completion_iterator
C = AST.cached_completion_begin(), C = AST.cached_completion_begin(),
CEnd = AST.cached_completion_end(); CEnd = AST.cached_completion_end();
C != CEnd; ++C) { C != CEnd; ++C) {
// If the context we are in matches any of the contexts we are // If the context we are in matches any of the contexts we are
// interested in, we'll add this result. // interested in, we'll add this result.
@ -1547,15 +1547,15 @@ void AugmentedCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &S,
Context.getPreferredType()->isAnyPointerType()); Context.getPreferredType()->isAnyPointerType());
} else if (C->Type) { } else if (C->Type) {
CanQualType Expected CanQualType Expected
= S.Context.getCanonicalType( = S.Context.getCanonicalType(
Context.getPreferredType().getUnqualifiedType()); Context.getPreferredType().getUnqualifiedType());
SimplifiedTypeClass ExpectedSTC = getSimplifiedTypeClass(Expected); SimplifiedTypeClass ExpectedSTC = getSimplifiedTypeClass(Expected);
if (ExpectedSTC == C->TypeClass) { if (ExpectedSTC == C->TypeClass) {
// We know this type is similar; check for an exact match. // We know this type is similar; check for an exact match.
llvm::StringMap<unsigned> &CachedCompletionTypes llvm::StringMap<unsigned> &CachedCompletionTypes
= AST.getCachedCompletionTypes(); = AST.getCachedCompletionTypes();
llvm::StringMap<unsigned>::iterator Pos llvm::StringMap<unsigned>::iterator Pos
= CachedCompletionTypes.find(QualType(Expected).getAsString()); = CachedCompletionTypes.find(QualType(Expected).getAsString());
if (Pos != CachedCompletionTypes.end() && Pos->second == C->Type) if (Pos != CachedCompletionTypes.end() && Pos->second == C->Type)
Priority /= CCF_ExactTypeMatch; Priority /= CCF_ExactTypeMatch;
else else