diff options
author | Mike Stump <mrs@apple.com> | 2009-08-04 21:02:39 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-08-04 21:02:39 +0000 |
commit | ac5fc7c6bcb494b60fee7ce615ac931c5db6135e (patch) | |
tree | bc35a259aa268b722facf196fc38cf19480ae517 /lib/Sema/SemaInherit.cpp | |
parent | 06758d0ea712795fe0ff5c2dee4b9a162569dfef (diff) |
Canonicalize else.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInherit.cpp')
-rw-r--r-- | lib/Sema/SemaInherit.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Sema/SemaInherit.cpp b/lib/Sema/SemaInherit.cpp index be235e9271..c48e3bc79e 100644 --- a/lib/Sema/SemaInherit.cpp +++ b/lib/Sema/SemaInherit.cpp @@ -227,13 +227,13 @@ bool Sema::LookupInBases(CXXRecordDecl *Class, // return immediately. return FoundPath; } - } - // C++ [class.member.lookup]p2: - // A member name f in one sub-object B hides a member name f in - // a sub-object A if A is a base class sub-object of B. Any - // declarations that are so hidden are eliminated from - // consideration. - else if (VisitBase && LookupInBases(BaseRecord, Criteria, Paths)) { + } else if (VisitBase && LookupInBases(BaseRecord, Criteria, Paths)) { + // C++ [class.member.lookup]p2: + // A member name f in one sub-object B hides a member name f in + // a sub-object A if A is a base class sub-object of B. Any + // declarations that are so hidden are eliminated from + // consideration. + // There is a path to a base class that meets the criteria. If we're not // collecting paths or finding ambiguities, we're done. FoundPath = true; |