aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaOverload.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-27 00:52:49 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-27 00:52:49 +0000
commitbf40818928d2a7f76a4ba9abee469a7d02225ab2 (patch)
tree91eb126e619c10011b3ad7c01eff11ab78891693 /lib/Sema/SemaOverload.cpp
parent63a9490b27db3af7ea94b6418d38433244f90e67 (diff)
Cleanup formatting
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r--lib/Sema/SemaOverload.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index d14d74cb82..43b5e77e87 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -783,7 +783,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
// can be converted to an rvalue of type "pointer to cv void" (C++
// 4.10p2).
if (FromPointeeType->isIncompleteOrObjectType() && ToPointeeType->isVoidType()) {
- ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType,
+ ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr,
+ ToPointeeType,
ToType, Context);
return true;
}
@@ -803,7 +804,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
// here. That is handled by CheckPointerConversion.
if (FromPointeeType->isRecordType() && ToPointeeType->isRecordType() &&
IsDerivedFrom(FromPointeeType, ToPointeeType)) {
- ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType,
+ ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr,
+ ToPointeeType,
ToType, Context);
return true;
}
@@ -814,7 +816,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
const ObjCInterfaceType* ToIface = ToPointeeType->getAsObjCInterfaceType();
if (FromIface && ToIface &&
Context.canAssignObjCInterfaces(ToIface, FromIface)) {
- ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType,
+ ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr,
+ ToPointeeType,
ToType, Context);
return true;
}
@@ -823,7 +826,8 @@ bool Sema::IsPointerConversion(Expr *From, QualType FromType, QualType ToType,
// to any interface (in both directions).
if ((FromIface && Context.isObjCIdType(ToPointeeType))
|| (ToIface && Context.isObjCIdType(FromPointeeType))) {
- ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr, ToPointeeType,
+ ConvertedType = BuildSimilarlyQualifiedPointerType(FromTypePtr,
+ ToPointeeType,
ToType, Context);
return true;
}