diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-05-29 23:42:05 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-05-29 23:42:05 +0000 |
| commit | 01bcef4a17131b08fd6cf8f7bdaa4b8456dd63f8 (patch) | |
| tree | 963a3c90aea0a435d0cd5a4f92ec9bd03459366e /clang/lib/Sema/SemaInherit.h | |
| parent | b6f4538683a5075b7b345746ab4cc81f487c9507 (diff) | |
| download | bcm5719-llvm-01bcef4a17131b08fd6cf8f7bdaa4b8456dd63f8.tar.gz bcm5719-llvm-01bcef4a17131b08fd6cf8f7bdaa4b8456dd63f8.zip | |
Make the LookupBase boolean an enum instead.
llvm-svn: 72594
Diffstat (limited to 'clang/lib/Sema/SemaInherit.h')
| -rw-r--r-- | clang/lib/Sema/SemaInherit.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaInherit.h b/clang/lib/Sema/SemaInherit.h index a71ae8dbaba..33199636912 100644 --- a/clang/lib/Sema/SemaInherit.h +++ b/clang/lib/Sema/SemaInherit.h @@ -202,22 +202,29 @@ namespace clang { /// member of a C++ class. Objects of this type are used to direct /// Sema::LookupCXXClassMember. struct MemberLookupCriteria { + /// LookupKind - the kind of lookup we're doing. + enum LookupKind { + LK_Base, + LK_NamedMember + }; + /// MemberLookupCriteria - Constructs member lookup criteria to /// search for a base class of type Base. explicit MemberLookupCriteria(QualType Base) - : LookupBase(true), Base(Base) { } + : Kind(LK_Base), Base(Base) { } /// MemberLookupCriteria - Constructs member lookup criteria to /// search for a class member with the given Name. explicit MemberLookupCriteria(DeclarationName Name, Sema::LookupNameKind NameKind, unsigned IDNS) - : LookupBase(false), Name(Name), NameKind(NameKind), IDNS(IDNS) { } + : Kind(LK_NamedMember), Name(Name), NameKind(NameKind), IDNS(IDNS) { } - /// LookupBase - True if we are looking for a base class (whose - /// type is Base). If false, we are looking for a named member of + /// Kind - The kind of lookup we're doing. + /// LK_Base if we are looking for a base class (whose + /// type is Base). LK_NamedMember if we are looking for a named member of /// the class (with the name Name). - bool LookupBase; + LookupKind Kind; /// Base - The type of the base class we're searching for, if /// LookupBase is true. |

