[PATCH] D18538: [Sema] s/UseUsingDeclRules/UseMemberUsingDeclRules/
Justin Lebar via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 30 13:46:30 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL264920: [Sema] s/UseUsingDeclRules/UseMemberUsingDeclRules/ (authored by jlebar).
Changed prior to commit:
http://reviews.llvm.org/D18538?vs=51866&id=52117#toc
Repository:
rL LLVM
http://reviews.llvm.org/D18538
Files:
cfe/trunk/lib/Sema/SemaOverload.cpp
Index: cfe/trunk/lib/Sema/SemaOverload.cpp
===================================================================
--- cfe/trunk/lib/Sema/SemaOverload.cpp
+++ cfe/trunk/lib/Sema/SemaOverload.cpp
@@ -992,7 +992,7 @@
}
bool Sema::IsOverload(FunctionDecl *New, FunctionDecl *Old,
- bool UseUsingDeclRules) {
+ bool UseMemberUsingDeclRules) {
// C++ [basic.start.main]p2: This function shall not be overloaded.
if (New->isMain())
return false;
@@ -1048,7 +1048,7 @@
//
// However, we don't consider either of these when deciding whether
// a member introduced by a shadow declaration is hidden.
- if (!UseUsingDeclRules && NewTemplate &&
+ if (!UseMemberUsingDeclRules && NewTemplate &&
(!TemplateParameterListsAreEqual(NewTemplate->getTemplateParameters(),
OldTemplate->getTemplateParameters(),
false, TPL_TemplateMatch) ||
@@ -1068,7 +1068,7 @@
if (OldMethod && NewMethod &&
!OldMethod->isStatic() && !NewMethod->isStatic()) {
if (OldMethod->getRefQualifier() != NewMethod->getRefQualifier()) {
- if (!UseUsingDeclRules &&
+ if (!UseMemberUsingDeclRules &&
(OldMethod->getRefQualifier() == RQ_None ||
NewMethod->getRefQualifier() == RQ_None)) {
// C++0x [over.load]p2:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18538.52117.patch
Type: text/x-patch
Size: 1375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160330/3bde5bd1/attachment-0001.bin>
More information about the cfe-commits
mailing list