]> granicus.if.org Git - clang/commitdiff
s/isAtomicConversion/tryAtomicConversion/g, per Jordy's suggestion.
authorDouglas Gregor <dgregor@apple.com>
Thu, 12 Apr 2012 20:48:09 +0000 (20:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 12 Apr 2012 20:48:09 +0000 (20:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154613 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaOverload.cpp

index 89d4179fceb04cb5c197052cbfb72e0ab82266c7..284c8dec1c62701b14fba8db694e9dc352b01109 100644 (file)
@@ -1294,10 +1294,10 @@ static bool IsVectorConversion(ASTContext &Context, QualType FromType,
   return false;
 }
 
-static bool isAtomicConversion(Sema &S, Expr *From, QualType ToType,
-                               bool InOverloadResolution,
-                               StandardConversionSequence &SCS,
-                               bool CStyle);
+static bool tryAtomicConversion(Sema &S, Expr *From, QualType ToType,
+                                bool InOverloadResolution,
+                                StandardConversionSequence &SCS,
+                                bool CStyle);
   
 /// IsStandardConversion - Determines whether there is a standard
 /// conversion sequence (C++ [conv], C++ [over.ics.scs]) from the
@@ -1531,9 +1531,9 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
                                              SCS, CStyle)) {
     SCS.Second = ICK_TransparentUnionConversion;
     FromType = ToType;
-  } else if (isAtomicConversion(S, From, ToType, InOverloadResolution, SCS,
-                                CStyle)) {
-    // isAtomicConversion has updated the standard conversion sequence 
+  } else if (tryAtomicConversion(S, From, ToType, InOverloadResolution, SCS,
+                                 CStyle)) {
+    // tryAtomicConversion has updated the standard conversion sequence
     // appropriately.
     return true;
   } else {
@@ -2779,10 +2779,10 @@ Sema::IsQualificationConversion(QualType FromType, QualType ToType,
 ///
 /// If successful, updates \c SCS's second and third steps in the conversion
 /// sequence to finish the conversion.
-static bool isAtomicConversion(Sema &S, Expr *From, QualType ToType,
-                               bool InOverloadResolution,
-                               StandardConversionSequence &SCS,
-                               bool CStyle) {
+static bool tryAtomicConversion(Sema &S, Expr *From, QualType ToType,
+                                bool InOverloadResolution,
+                                StandardConversionSequence &SCS,
+                                bool CStyle) {
   const AtomicType *ToAtomic = ToType->getAs<AtomicType>();
   if (!ToAtomic)
     return false;