clang
17.0.0git
|
Represents the results of name lookup. More...
#include "clang/Sema/Lookup.h"
Classes | |
class | Filter |
A class for iterating through a result set and possibly filtering out results. More... | |
Public Types | |
enum | LookupResultKind { NotFound = 0, NotFoundInCurrentInstantiation, Found, FoundOverloaded, FoundUnresolvedValue, Ambiguous } |
enum | AmbiguityKind { AmbiguousBaseSubobjectTypes, AmbiguousBaseSubobjects, AmbiguousReference, AmbiguousTagHiding } |
enum | TemporaryToken { Temporary } |
A little identifier for flagging temporary lookup results. More... | |
using | iterator = UnresolvedSetImpl::iterator |
Public Member Functions | |
LookupResult (Sema &SemaRef, const DeclarationNameInfo &NameInfo, Sema::LookupNameKind LookupKind, Sema::RedeclarationKind Redecl=Sema::NotForRedeclaration) | |
LookupResult (Sema &SemaRef, DeclarationName Name, SourceLocation NameLoc, Sema::LookupNameKind LookupKind, Sema::RedeclarationKind Redecl=Sema::NotForRedeclaration) | |
LookupResult (TemporaryToken _, const LookupResult &Other) | |
Creates a temporary lookup result, initializing its core data using the information from another result. More... | |
LookupResult (const LookupResult &)=delete | |
LookupResult & | operator= (const LookupResult &)=delete |
LookupResult (LookupResult &&Other) | |
LookupResult & | operator= (LookupResult &&Other) |
~LookupResult () | |
const DeclarationNameInfo & | getLookupNameInfo () const |
Gets the name info to look up. More... | |
void | setLookupNameInfo (const DeclarationNameInfo &NameInfo) |
Sets the name info to look up. More... | |
DeclarationName | getLookupName () const |
Gets the name to look up. More... | |
void | setLookupName (DeclarationName Name) |
Sets the name to look up. More... | |
Sema::LookupNameKind | getLookupKind () const |
Gets the kind of lookup to perform. More... | |
bool | isForRedeclaration () const |
True if this lookup is just looking for an existing declaration. More... | |
bool | isForExternalRedeclaration () const |
True if this lookup is just looking for an existing declaration to link against a declaration with external linkage. More... | |
Sema::RedeclarationKind | redeclarationKind () const |
void | setAllowHidden (bool AH) |
Specify whether hidden declarations are visible, e.g., for recovery reasons. More... | |
bool | isHiddenDeclarationVisible (NamedDecl *ND) const |
Determine whether this lookup is permitted to see hidden declarations, such as those in modules that have not yet been imported. More... | |
void | setHideTags (bool Hide) |
Sets whether tag declarations should be hidden by non-tag declarations during resolution. More... | |
void | setTemplateNameLookup (bool TemplateName) |
Sets whether this is a template-name lookup. More... | |
bool | isTemplateNameLookup () const |
bool | isAmbiguous () const |
bool | isSingleResult () const |
Determines if this names a single result which is not an unresolved value using decl. More... | |
bool | isOverloadedResult () const |
Determines if the results are overloaded. More... | |
bool | isUnresolvableResult () const |
LookupResultKind | getResultKind () const |
AmbiguityKind | getAmbiguityKind () const |
const UnresolvedSetImpl & | asUnresolvedSet () const |
iterator | begin () const |
iterator | end () const |
bool | empty () const |
Return true if no decls were found. More... | |
CXXBasePaths * | getBasePaths () const |
Return the base paths structure that's associated with these results, or null if none is. More... | |
NamedDecl * | getAcceptableDecl (NamedDecl *D) const |
Retrieve the accepted (re)declaration of the given declaration, if there is one. More... | |
unsigned | getIdentifierNamespace () const |
Returns the identifier namespace mask for this lookup. More... | |
bool | isClassLookup () const |
Returns whether these results arose from performing a lookup into a class. More... | |
CXXRecordDecl * | getNamingClass () const |
Returns the 'naming class' for this lookup, i.e. More... | |
void | setNamingClass (CXXRecordDecl *Record) |
Sets the 'naming class' for this lookup. More... | |
QualType | getBaseObjectType () const |
Returns the base object type associated with this lookup; important for [class.protected]. More... | |
void | setBaseObjectType (QualType T) |
Sets the base object type for this lookup. More... | |
void | addDecl (NamedDecl *D) |
Add a declaration to these results with its natural access. More... | |
void | addDecl (NamedDecl *D, AccessSpecifier AS) |
Add a declaration to these results with the given access. More... | |
void | addAllDecls (const LookupResult &Other) |
Add all the declarations from another set of lookup results. More... | |
bool | wasNotFoundInCurrentInstantiation () const |
Determine whether no result was found because we could not search into dependent base classes of the current instantiation. More... | |
void | setNotFoundInCurrentInstantiation () |
Note that while no result was found in the current instantiation, there were dependent base classes that could not be searched. More... | |
bool | isShadowed () const |
Determine whether the lookup result was shadowed by some other declaration that lookup ignored. More... | |
void | setShadowed () |
Note that we found and ignored a declaration while performing lookup. More... | |
void | resolveKind () |
Resolves the result kind of the lookup, possibly hiding decls. More... | |
void | resolveKindAfterFilter () |
Re-resolves the result kind of the lookup after a set of removals has been performed. More... | |
template<class DeclClass > | |
DeclClass * | getAsSingle () const |
NamedDecl * | getFoundDecl () const |
Fetch the unique decl found by this lookup. More... | |
NamedDecl * | getRepresentativeDecl () const |
Fetches a representative decl. Useful for lazy diagnostics. More... | |
bool | isSingleTagDecl () const |
Asks if the result is a single tag decl. More... | |
void | setAmbiguousBaseSubobjectTypes (CXXBasePaths &P) |
Make these results show that the name was found in base classes of different types. More... | |
void | setAmbiguousBaseSubobjects (CXXBasePaths &P) |
Make these results show that the name was found in distinct base classes of the same type. More... | |
void | setAmbiguousQualifiedTagHiding () |
Make these results show that the name was found in different contexts and a tag decl was hidden by an ordinary decl in a different context. More... | |
LLVM_ATTRIBUTE_REINITIALIZES void | clear () |
Clears out any current state. More... | |
void | clear (Sema::LookupNameKind Kind) |
Clears out any current state and re-initializes for a different kind of lookup. More... | |
void | setRedeclarationKind (Sema::RedeclarationKind RK) |
Change this lookup's redeclaration kind. More... | |
void | dump () |
void | print (raw_ostream &) |
void | suppressDiagnostics () |
Suppress the diagnostics that would normally fire because of this lookup. More... | |
bool | isSuppressingDiagnostics () const |
Determines whether this lookup is suppressing diagnostics. More... | |
void | setContextRange (SourceRange SR) |
Sets a 'context' source range. More... | |
SourceRange | getContextRange () const |
Gets the source range of the context of this name; for C++ qualified lookups, this is the source range of the scope specifier. More... | |
SourceLocation | getNameLoc () const |
Gets the location of the identifier. More... | |
Sema & | getSema () const |
Get the Sema object that this lookup result is searching with. More... | |
Filter | makeFilter () |
Create a filter for this result set. More... | |
void | setFindLocalExtern (bool FindLocalExtern) |
Static Public Member Functions | |
static bool | isVisible (Sema &SemaRef, NamedDecl *D) |
Determine whether the given declaration is visible to the program. More... | |
static bool | isReachable (Sema &SemaRef, NamedDecl *D) |
static bool | isAcceptable (Sema &SemaRef, NamedDecl *D, Sema::AcceptableKind Kind) |
static bool | isAvailableForLookup (Sema &SemaRef, NamedDecl *ND) |
Determine whether this lookup is permitted to see the declaration. More... | |
Represents the results of name lookup.
An instance of the LookupResult class captures the results of a single name lookup, which can return no result (nothing found), a single declaration, a set of overloaded functions, or an ambiguity. Use the getKind() method to determine which of these results occurred for a given lookup.
Enumerator | |
---|---|
AmbiguousBaseSubobjectTypes | Name lookup results in an ambiguity because multiple entities that meet the lookup criteria were found in subobjects of different types. For example: |
AmbiguousBaseSubobjects | Name lookup results in an ambiguity because multiple nonstatic entities that meet the lookup criteria were found in different subobjects of the same type. For example: |
AmbiguousReference | Name lookup results in an ambiguity because multiple definitions of entity that meet the lookup criteria were found in different declaration contexts. namespace A {
int i;
namespace B { int i; }
int test() {
using namespace B;
return i; // error 'i' is found in namespace A and A::B
}
}
|
AmbiguousTagHiding | Name lookup results in an ambiguity because an entity with a tag name was hidden by an entity with an ordinary name from a different context. namespace A { struct Foo {}; }
namespace B { void Foo(); }
namespace C {
using namespace A;
using namespace B;
}
void test() {
C::Foo(); // error: tag 'A::Foo' is hidden by an object in a
// different namespace
}
|
Enumerator | |
---|---|
NotFound | No entity found met the criteria. |
NotFoundInCurrentInstantiation | No entity found met the criteria within the current instantiation,, but there were dependent base classes of the current instantiation that could not be searched. |
Found | Name lookup found a single declaration that met the criteria. getFoundDecl() will return this declaration. |
FoundOverloaded | Name lookup found a set of overloaded functions that met the criteria. |
FoundUnresolvedValue | Name lookup found an unresolvable value declaration and cannot yet complete. This only happens in C++ dependent contexts with dependent using declarations. |
Ambiguous | Name lookup results in an ambiguity; use getAmbiguityKind to figure out what kind of ambiguity we have. |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
Add all the declarations from another set of lookup results.
Definition at line 465 of file Lookup.h.
References clang::UnresolvedSetImpl::append(), and Found.
|
inline |
Add a declaration to these results with its natural access.
Does not test the acceptance criteria.
Definition at line 452 of file Lookup.h.
References clang::Decl::getAccess().
Referenced by attemptRecovery(), BuildImplicitMemberInitializer(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), DiagnoseTwoPhaseLookup(), clang::Sema::LookupBuiltin(), clang::Sema::LookupInSuper(), and clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformOverloadExprDecls().
|
inline |
Add a declaration to these results with the given access.
Does not test the acceptance criteria.
Definition at line 458 of file Lookup.h.
References clang::UnresolvedSetImpl::addDecl(), and Found.
|
inline |
Definition at line 331 of file Lookup.h.
Referenced by clang::Sema::BuildLiteralOperatorCall().
|
inline |
Definition at line 335 of file Lookup.h.
References clang::UnresolvedSetImpl::begin().
Referenced by clang::Sema::AddMemberOperatorCandidates(), clang::Sema::AddOverloadedCallCandidates(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckLookupAccess(), clang::Sema::CheckQualifiedMemberReference(), clang::Sema::CheckUsingDeclRedeclaration(), ClassifyImplicitMemberAccess(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), getFoundDecl(), getRepresentativeDecl(), clang::Sema::hasAnyAcceptableTemplateNames(), isResultTypeOrTemplate(), and clang::Sema::lookupCoroutineTraits().
|
inline |
Clears out any current state.
Definition at line 580 of file Lookup.h.
References clang::UnresolvedSetImpl::clear(), and NotFound.
Referenced by clear(), DiagnoseTwoPhaseLookup(), clang::Sema::FindAllocationFunctions(), and clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformOverloadExprDecls().
|
inline |
LLVM_DUMP_METHOD void LookupResult::dump | ( | ) |
Definition at line 677 of file SemaLookup.cpp.
References clang::Decl::dump().
|
inline |
Return true if no decls were found.
Definition at line 339 of file Lookup.h.
References clang::UnresolvedSetImpl::empty().
Referenced by clang::Sema::ActOnOpenMPIdExpression(), BuildNonArrayForRange(), clang::Sema::BuildQualifiedTemplateIdExpr(), ClassifyImplicitMemberAccess(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), DiagnoseTwoPhaseLookup(), clang::Sema::FindAllocationFunctions(), clang::Sema::LookupInSuper(), and LookupMemberExprInRecord().
|
inline |
Definition at line 336 of file Lookup.h.
References clang::UnresolvedSetImpl::end().
Referenced by clang::Sema::AddMemberOperatorCandidates(), clang::Sema::AddOverloadedCallCandidates(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckLookupAccess(), clang::Sema::CheckQualifiedMemberReference(), clang::Sema::CheckUsingDeclRedeclaration(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), clang::Sema::hasAnyAcceptableTemplateNames(), and isResultTypeOrTemplate().
Retrieve the accepted (re)declaration of the given declaration, if there is one.
Definition at line 385 of file Lookup.h.
References getSema(), isAvailableForLookup(), isHiddenDeclarationVisible(), and clang::Decl::isInIdentifierNamespace().
|
inline |
Definition at line 326 of file Lookup.h.
References isAmbiguous().
|
inline |
Definition at line 533 of file Lookup.h.
References Found, getFoundDecl(), and getResultKind().
Referenced by clang::Sema::ActOnCXXTypeid(), clang::Sema::ActOnOpenMPIdExpression(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildQualifiedTemplateIdExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckUsingDeclQualifier(), clang::Sema::lookupCoroutineTraits(), and clang::Sema::lookupOpenMPDeclareTargetName().
|
inline |
Returns the base object type associated with this lookup; important for [class.protected].
Most lookups do not have an associated base object.
Definition at line 441 of file Lookup.h.
Referenced by clang::Sema::CheckLookupAccess().
|
inline |
|
inline |
|
inline |
Fetch the unique decl found by this lookup.
Asserts that one was found.
This is intended for users who have examined the result kind and are certain that there is only one result.
Definition at line 543 of file Lookup.h.
References begin(), Found, and getResultKind().
Referenced by clang::Sema::ActOnOpenMPIdExpression(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::checkObjCBridgeRelatedComponents(), getAsSingle(), clang::Sema::getShadowedDeclaration(), isSingleTagDecl(), clang::Sema::LookupInlineAsmVarDeclField(), and ShouldLookupResultBeMultiVersionOverload().
|
inline |
|
inline |
Gets the kind of lookup to perform.
Definition at line 253 of file Lookup.h.
Referenced by clang::Sema::LookupBuiltin(), clang::Sema::LookupInSuper(), and clang::Sema::LookupQualifiedName().
|
inline |
Gets the name to look up.
Definition at line 243 of file Lookup.h.
References clang::DeclarationNameInfo::getName().
Referenced by clang::Sema::BuildLiteralOperatorCall(), clang::Sema::DiagnoseDependentMemberLookup(), DiagnoseTwoPhaseLookup(), clang::Sema::LookupBuiltin(), and clang::Sema::LookupQualifiedName().
|
inline |
Gets the name info to look up.
Definition at line 233 of file Lookup.h.
Referenced by clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckQualifiedMemberReference(), and clang::Sema::LookupInSuper().
|
inline |
Gets the location of the identifier.
This isn't always defined: sometimes we're doing lookups on synthesized names.
Definition at line 632 of file Lookup.h.
References clang::DeclarationNameInfo::getLoc().
Referenced by clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildLiteralOperatorCall(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckLookupAccess(), clang::Sema::DiagnoseDependentMemberLookup(), DiagnoseTwoPhaseLookup(), LookupMemberExprInRecord(), and shouldWarnIfShadowedDecl().
|
inline |
Returns the 'naming class' for this lookup, i.e.
the class which was looked into to find these results.
C++0x [class.access.base]p5: The access to a member is affected by the class in which the member is named. This naming class is the class in which the member name was looked up and found. [Note: this class can be explicit, e.g., when a qualified-id is used, or implicit, e.g., when a class member access operator (5.2.5) is used (including cases where an implicit "this->" is added). If both a class member access operator and a qualified-id are used to name the member (as in p->T::m), the class naming the member is the class named by the nested-name-specifier of the qualified-id (that is, T). – end note ]
This is set by the lookup routines when they find results in a class.
Definition at line 429 of file Lookup.h.
Referenced by clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::CheckLookupAccess(), and clang::Sema::DiagnoseDependentMemberLookup().
|
inline |
Fetches a representative decl. Useful for lazy diagnostics.
Definition at line 550 of file Lookup.h.
References begin(), and clang::UnresolvedSetImpl::empty().
Referenced by clang::Sema::ActOnStartNamespaceDef(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::CheckQualifiedMemberReference(), and clang::Sema::DiagnoseDependentMemberLookup().
|
inline |
Definition at line 321 of file Lookup.h.
Referenced by getAsSingle(), getFoundDecl(), isAmbiguous(), isOverloadedResult(), isSingleResult(), isSingleTagDecl(), isUnresolvableResult(), and shouldWarnIfShadowedDecl().
|
inline |
Get the Sema object that this lookup result is searching with.
Definition at line 638 of file Lookup.h.
Referenced by getAcceptableDecl(), and isResultTypeOrTemplate().
|
inlinestatic |
Definition at line 353 of file Lookup.h.
References isReachable(), isVisible(), and clang::Sema::Visible.
|
inline |
Definition at line 301 of file Lookup.h.
References Ambiguous, and getResultKind().
Referenced by clang::Sema::ActOnOpenMPIdExpression(), BuildNonArrayForRange(), clang::Sema::BuildQualifiedTemplateIdExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::FindAllocationFunctions(), getAmbiguityKind(), and clang::Sema::lookupOpenMPDeclareTargetName().
Determine whether this lookup is permitted to see the declaration.
Note that a reachable but not visible declaration inhabiting a namespace is not allowed to be seen during name lookup.
For example:
Definition at line 2091 of file SemaLookup.cpp.
References clang::DeclarationName::getCXXDeductionGuideTemplate(), clang::Decl::getDeclContext(), clang::NamedDecl::getDeclName(), clang::Sema::hasReachableDefinition(), and clang::DeclContext::isFileContext().
Referenced by findAcceptableDecl(), and getAcceptableDecl().
|
inline |
|
inline |
True if this lookup is just looking for an existing declaration to link against a declaration with external linkage.
Definition at line 264 of file Lookup.h.
Referenced by isHiddenDeclarationVisible().
|
inline |
True if this lookup is just looking for an existing declaration.
Definition at line 258 of file Lookup.h.
Referenced by clang::Sema::LookupQualifiedName().
Determine whether this lookup is permitted to see hidden declarations, such as those in modules that have not yet been imported.
Definition at line 281 of file Lookup.h.
References clang::NamedDecl::isExternallyDeclarable(), and isForExternalRedeclaration().
Referenced by getAcceptableDecl().
|
inline |
Determines if the results are overloaded.
Definition at line 313 of file Lookup.h.
References FoundOverloaded, and getResultKind().
Referenced by attemptRecovery(), and clang::Sema::BuildDeclarationNameExpr().
Definition at line 2084 of file SemaLookup.cpp.
References clang::Decl::isUnconditionallyVisible(), and clang::Sema::Reachable.
Referenced by isAcceptable().
|
inline |
|
inline |
Determines if this names a single result which is not an unresolved value using decl.
If so, it is safe to call getFoundDecl().
Definition at line 308 of file Lookup.h.
References Found, and getResultKind().
Referenced by clang::Sema::ActOnOpenMPIdExpression(), clang::Sema::ActOnStartNamespaceDef(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::lookupOpenMPDeclareTargetName(), and ShouldLookupResultBeMultiVersionOverload().
|
inline |
Asks if the result is a single tag decl.
Definition at line 556 of file Lookup.h.
References Found, getFoundDecl(), and getResultKind().
|
inline |
|
inline |
|
inline |
Definition at line 317 of file Lookup.h.
References FoundUnresolvedValue, and getResultKind().
Referenced by attemptRecovery(), and ClassifyImplicitMemberAccess().
Determine whether the given declaration is visible to the program.
Definition at line 2074 of file SemaLookup.cpp.
References clang::Decl::isUnconditionallyVisible(), and clang::Sema::Visible.
Referenced by checkCorrectionVisibility(), findAcceptableDecl(), and isAcceptable().
|
inline |
Create a filter for this result set.
Definition at line 708 of file Lookup.h.
References clang::tooling::Filter.
Referenced by clang::Sema::FilterAcceptableTemplateNames(), clang::Sema::FindAllocationFunctions(), and RemoveUsingDecls().
|
delete |
|
inline |
void LookupResult::print | ( | raw_ostream & | Out | ) |
Definition at line 666 of file SemaLookup.cpp.
|
inline |
Definition at line 268 of file Lookup.h.
References clang::Sema::ForExternalRedeclaration, clang::Sema::ForVisibleRedeclaration, and clang::Sema::NotForRedeclaration.
void LookupResult::resolveKind | ( | ) |
Resolves the result kind of the lookup, possibly hiding decls.
Resolves the result kind of this lookup.
This should be called in any environment where lookup might generate multiple lookup results.
Definition at line 482 of file SemaLookup.cpp.
References AmbiguousReference, canHideTag(), Found, FoundOverloaded, FoundUnresolvedValue, clang::Decl::getCanonicalDecl(), clang::ASTContext::getCanonicalType(), getContextForScopeMatching(), clang::NamedDecl::getUnderlyingDecl(), clang::Decl::isInvalidDecl(), and isPreferredLookupResult().
Referenced by BuildImplicitMemberInitializer(), clang::Sema::DefineImplicitCopyAssignment(), clang::Sema::DefineImplicitMoveAssignment(), DiagnoseTwoPhaseLookup(), clang::Sema::LookupInSuper(), clang::Sema::LookupQualifiedName(), resolveKindAfterFilter(), and clang::TreeTransform< EnsureImmediateInvocationInDefaultArgs >::TransformOverloadExprDecls().
|
inline |
Re-resolves the result kind of the lookup after a set of removals has been performed.
Definition at line 500 of file Lookup.h.
References Ambiguous, clang::UnresolvedSetImpl::empty(), Found, NotFound, NotFoundInCurrentInstantiation, and resolveKind().
|
inline |
void LookupResult::setAmbiguousBaseSubobjects | ( | CXXBasePaths & | P | ) |
Make these results show that the name was found in distinct base classes of the same type.
The given paths object is copied and invalidated.
Definition at line 650 of file SemaLookup.cpp.
void LookupResult::setAmbiguousBaseSubobjectTypes | ( | CXXBasePaths & | P | ) |
Make these results show that the name was found in base classes of different types.
The given paths object is copied and invalidated.
Definition at line 658 of file SemaLookup.cpp.
|
inline |
Make these results show that the name was found in different contexts and a tag decl was hidden by an ordinary decl in a different context.
Definition at line 575 of file Lookup.h.
References AmbiguousTagHiding.
|
inline |
|
inline |
|
inline |
Definition at line 712 of file Lookup.h.
References clang::Decl::IDNS_LocalExtern.
|
inline |
|
inline |
|
inline |
|
inline |
Sets the 'naming class' for this lookup.
Definition at line 434 of file Lookup.h.
Referenced by attemptRecovery(), clang::Sema::LookupInSuper(), and clang::Sema::LookupQualifiedName().
|
inline |
Note that while no result was found in the current instantiation, there were dependent base classes that could not be searched.
Definition at line 478 of file Lookup.h.
References clang::UnresolvedSetImpl::empty(), NotFound, and NotFoundInCurrentInstantiation.
Referenced by clang::Sema::LookupQualifiedName().
|
inline |
Change this lookup's redeclaration kind.
Definition at line 598 of file Lookup.h.
References clang::Sema::ForExternalRedeclaration, and clang::Sema::NotForRedeclaration.
|
inline |
|
inline |
|
inline |
Suppress the diagnostics that would normally fire because of this lookup.
This happens during (e.g.) redeclaration lookups.
Definition at line 609 of file Lookup.h.
Referenced by clang::Sema::ActOnOpenMPIdExpression(), clang::Sema::AddMemberOperatorCandidates(), clang::Sema::BuildDeclarationNameExpr(), clang::Sema::BuildTemplateIdExpr(), clang::Sema::DeduceTemplateSpecializationFromInitializer(), DiagnoseTwoPhaseLookup(), clang::Sema::FindAllocationFunctions(), clang::Sema::lookupCoroutineTraits(), clang::Sema::lookupOpenMPDeclareTargetName(), and clang::TypoCorrectionConsumer::TypoCorrectionConsumer().
|
inline |
Determine whether no result was found because we could not search into dependent base classes of the current instantiation.
Definition at line 472 of file Lookup.h.
References NotFoundInCurrentInstantiation.