enum Sema::LookupNameKind
Description
Describes the kind of name lookup to perform.
Declared at: clang/include/clang/Sema/Sema.h:4161
Enumerators
Name | Value | Comment |
---|---|---|
LookupOrdinaryName | 0 | Ordinary name lookup, which finds ordinary names (functions, variables, typedefs, etc.) in C and most kinds of names (functions, variables, members, types, etc.) in C++. |
LookupTagName | 1 | Tag name lookup, which finds the names of enums, classes, structs, and unions. |
LookupLabel | 2 | Label name lookup. |
LookupMemberName | 3 | Member name lookup, which finds the names of class/struct/union members. |
LookupOperatorName | 4 | Look 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. |
LookupDestructorName | 5 | Look up a name following ~ in a destructor name. This is an ordinary lookup, but prefers tags to typedefs. |
LookupNestedNameSpecifierName | 6 | Look 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). |
LookupNamespaceName | 7 | Look up a namespace name within a C++ using directive or namespace alias definition, ignoring non-namespace names (C++ [basic.lookup.udir]p1). |
LookupUsingDeclName | 8 | Look up all declarations in a scope with the given name, including resolved using declarations. This is appropriate for checking redeclarations for a using declaration. |
LookupRedeclarationWithLinkage | 9 | Look 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. |
LookupLocalFriendName | 10 | Look up a friend of a local class. This lookup does not look outside the innermost non-class scope. See C++11 [class.friend]p11. |
LookupObjCProtocolName | 11 | Look up the name of an Objective-C protocol. |
LookupObjCImplicitSelfParam | 12 | Look up implicit 'self' parameter of an objective-c method. |
LookupOMPReductionName | 13 | Look up the name of an OpenMP user-defined reduction operation. |
LookupOMPMapperName | 14 | Look up the name of an OpenMP user-defined mapper. |
LookupAnyName | 15 | Look up any declaration with any name. |