enum Sema::LookupNameKind

Description

Describes the kind of name lookup to perform.

Declared at: clang/include/clang/Sema/Sema.h:4161

Enumerators

NameValueComment
LookupOrdinaryName0Ordinary name lookup, which finds ordinary names (functions, variables, typedefs, etc.) in C and most kinds of names (functions, variables, members, types, etc.) in C++.
LookupTagName1Tag name lookup, which finds the names of enums, classes, structs, and unions.
LookupLabel2Label name lookup.
LookupMemberName3Member name lookup, which finds the names of class/struct/union members.
LookupOperatorName4Look up of an operator name (e.g., operator+) for use with operator overloading. This lookup is similar to ordinary name lookup, but will ignore any declarations that are class members.
LookupDestructorName5Look up a name following ~ in a destructor name. This is an ordinary lookup, but prefers tags to typedefs.
LookupNestedNameSpecifierName6Look up of a name that precedes the '::' scope resolution operator in C++. This lookup completely ignores operator, object, function, and enumerator names (C++ [basic.lookup.qual]p1).
LookupNamespaceName7Look up a namespace name within a C++ using directive or namespace alias definition, ignoring non-namespace names (C++ [basic.lookup.udir]p1).
LookupUsingDeclName8Look up all declarations in a scope with the given name, including resolved using declarations. This is appropriate for checking redeclarations for a using declaration.
LookupRedeclarationWithLinkage9Look up an ordinary name that is going to be redeclared as a name with linkage. This lookup ignores any declarations that are outside of the current scope unless they have linkage. See C99 6.2.2p4-5 and C++ [basic.link]p6.
LookupLocalFriendName10Look up a friend of a local class. This lookup does not look outside the innermost non-class scope. See C++11 [class.friend]p11.
LookupObjCProtocolName11Look up the name of an Objective-C protocol.
LookupObjCImplicitSelfParam12Look up implicit 'self' parameter of an objective-c method.
LookupOMPReductionName13Look up the name of an OpenMP user-defined reduction operation.
LookupOMPMapperName14Look up the name of an OpenMP user-defined mapper.
LookupAnyName15Look up any declaration with any name.