Lines Matching refs:Sema

93     Sema &SemaRef;
101 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} in UnqualUsingDirectiveSet()
209 static inline unsigned getIDNS(Sema::LookupNameKind NameKind, in getIDNS()
214 case Sema::LookupObjCImplicitSelfParam: in getIDNS()
215 case Sema::LookupOrdinaryName: in getIDNS()
216 case Sema::LookupRedeclarationWithLinkage: in getIDNS()
217 case Sema::LookupLocalFriendName: in getIDNS()
218 case Sema::LookupDestructorName: in getIDNS()
229 case Sema::LookupOperatorName: in getIDNS()
236 case Sema::LookupTagName: in getIDNS()
252 case Sema::LookupLabel: in getIDNS()
256 case Sema::LookupMemberName: in getIDNS()
262 case Sema::LookupNestedNameSpecifierName: in getIDNS()
266 case Sema::LookupNamespaceName: in getIDNS()
270 case Sema::LookupUsingDeclName: in getIDNS()
277 case Sema::LookupObjCProtocolName: in getIDNS()
281 case Sema::LookupOMPReductionName: in getIDNS()
285 case Sema::LookupOMPMapperName: in getIDNS()
289 case Sema::LookupAnyName: in getIDNS()
366 static bool isPreferredLookupResult(Sema &S, Sema::LookupNameKind Kind, in isPreferredLookupResult()
370 if (Kind == Sema::LookupUsingDeclName && isa<UsingShadowDecl>(D) && in isPreferredLookupResult()
389 Kind == Sema::LookupTagName || Kind == Sema::LookupDestructorName; in isPreferredLookupResult()
681 static QualType diagOpenCLBuiltinTypeError(Sema &S, llvm::StringRef TypeClass, in diagOpenCLBuiltinTypeError()
689 static QualType getOpenCLEnumType(Sema &S, llvm::StringRef Name) { in getOpenCLEnumType()
691 Sema::LookupTagName); in getOpenCLEnumType()
702 static QualType getOpenCLTypedefType(Sema &S, llvm::StringRef Name) { in getOpenCLTypedefType()
704 Sema::LookupOrdinaryName); in getOpenCLTypedefType()
726 Sema &S, const OpenCLBuiltinStruct &OpenCLBuiltin, unsigned &GenTypeMaxCnt, in GetQualTypesForOpenCLBuiltin()
799 static void InsertOCLBuiltinDeclarationsFromTable(Sema &S, LookupResult &LR, in InsertOCLBuiltinDeclarationsFromTable()
900 bool Sema::LookupBuiltin(LookupResult &R) { in LookupBuiltin()
901 Sema::LookupNameKind NameKind = R.getLookupKind(); in LookupBuiltin()
906 if (NameKind == Sema::LookupOrdinaryName || in LookupBuiltin()
907 NameKind == Sema::LookupRedeclarationWithLinkage) { in LookupBuiltin()
910 if (getLangOpts().CPlusPlus && NameKind == Sema::LookupOrdinaryName) { in LookupBuiltin()
954 static void LookupPredefedObjCSuperType(Sema &Sema, Scope *S) { in LookupPredefedObjCSuperType() argument
955 ASTContext &Context = Sema.Context; in LookupPredefedObjCSuperType()
956 LookupResult Result(Sema, &Context.Idents.get("objc_super"), SourceLocation(), in LookupPredefedObjCSuperType()
957 Sema::LookupTagName); in LookupPredefedObjCSuperType()
958 Sema.LookupName(Result, S); in LookupPredefedObjCSuperType()
964 void Sema::LookupNecessaryTypesForBuiltin(Scope *S, unsigned ID) { in LookupNecessaryTypesForBuiltin()
980 void Sema::ForceDeclarationOfImplicitMembers(CXXRecordDecl *Class) { in ForceDeclarationOfImplicitMembers()
1031 static void DeclareImplicitMemberFunctionsWithName(Sema &S, in DeclareImplicitMemberFunctionsWithName()
1087 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) { in LookupDirect()
1178 == Sema::TDK_Success) { in LookupDirect()
1189 CppNamespaceLookup(Sema &S, LookupResult &R, ASTContext &Context, in CppNamespaceLookup()
1245 bool Sema::CppLookupName(LookupResult &R, Scope *S) { in CppLookupName()
1249 Sema::LookupNameKind NameKind = R.getLookupKind(); in CppLookupName()
1504 void Sema::makeMergedDefinitionVisible(NamedDecl *ND) { in makeMergedDefinitionVisible()
1519 static Module *getDefiningModule(Sema &S, Decl *Entity) { in getDefiningModule()
1544 llvm::DenseSet<Module*> &Sema::getLookupModules() { in getLookupModules()
1567 bool Sema::hasVisibleMergedDefinition(NamedDecl *Def) { in hasVisibleMergedDefinition()
1574 bool Sema::hasMergedDefinitionInCurrentModule(NamedDecl *Def) { in hasMergedDefinitionInCurrentModule()
1583 hasVisibleDefaultArgument(Sema &S, const ParmDecl *D, in hasVisibleDefaultArgument()
1604 bool Sema::hasVisibleDefaultArgument(const NamedDecl *D, in hasVisibleDefaultArgument()
1615 static bool hasVisibleDeclarationImpl(Sema &S, const NamedDecl *D, in hasVisibleDeclarationImpl()
1641 bool Sema::hasVisibleExplicitSpecialization( in hasVisibleExplicitSpecialization()
1654 bool Sema::hasVisibleMemberSpecialization( in hasVisibleMemberSpecialization()
1678 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { in isVisibleSlow()
1753 bool Sema::isModuleVisible(const Module *M, bool ModulePrivate) { in isModuleVisible()
1787 bool Sema::isVisibleSlow(const NamedDecl *D) { in isVisibleSlow()
1791 bool Sema::shouldLinkPossiblyHiddenDecl(LookupResult &R, const NamedDecl *New) { in shouldLinkPossiblyHiddenDecl()
1835 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D, in findAcceptableDecl()
1856 bool Sema::hasVisibleDeclarationSlow(const NamedDecl *D, in hasVisibleDeclarationSlow()
1913 bool Sema::LookupName(LookupResult &R, Scope *S, bool AllowBuiltinCreation) { in LookupName()
1922 if (NameKind == Sema::LookupRedeclarationWithLinkage) { in LookupName()
2050 static bool LookupQualifiedNameInUsingDirectives(Sema &S, LookupResult &R, in LookupQualifiedNameInUsingDirectives()
2151 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2419 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx, in LookupQualifiedName()
2448 bool Sema::LookupParsedName(LookupResult &R, Scope *S, CXXScopeSpec *SS, in LookupParsedName()
2492 bool Sema::LookupInSuper(LookupResult &R, CXXRecordDecl *Class) { in LookupInSuper()
2525 void Sema::DiagnoseAmbiguousLookup(LookupResult &Result) { in DiagnoseAmbiguousLookup()
2612 AssociatedLookup(Sema &S, SourceLocation InstantiationLoc, in AssociatedLookup()
2613 Sema::AssociatedNamespaceSet &Namespaces, in AssociatedLookup()
2614 Sema::AssociatedClassSet &Classes) in AssociatedLookup()
2624 Sema &S;
2625 Sema::AssociatedNamespaceSet &Namespaces;
2626 Sema::AssociatedClassSet &Classes;
2630 Sema::AssociatedClassSet ClassesTransitive;
2640 static void CollectEnclosingNamespace(Sema::AssociatedNamespaceSet &Namespaces, in CollectEnclosingNamespace()
2977 void Sema::FindAssociatedClassesAndNamespaces( in FindAssociatedClassesAndNamespaces()
3022 NamedDecl *Sema::LookupSingleName(Scope *S, DeclarationName Name, in LookupSingleName()
3032 ObjCProtocolDecl *Sema::LookupProtocol(IdentifierInfo *II, in LookupProtocol()
3040 void Sema::LookupOverloadedOperatorName(OverloadedOperatorKind Op, Scope *S, in LookupOverloadedOperatorName()
3056 Sema::SpecialMemberOverloadResult Sema::LookupSpecialMember(CXXRecordDecl *RD, in LookupSpecialMember()
3276 CXXConstructorDecl *Sema::LookupDefaultConstructor(CXXRecordDecl *Class) { in LookupDefaultConstructor()
3285 CXXConstructorDecl *Sema::LookupCopyingConstructor(CXXRecordDecl *Class, in LookupCopyingConstructor()
3297 CXXConstructorDecl *Sema::LookupMovingConstructor(CXXRecordDecl *Class, in LookupMovingConstructor()
3307 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) { in LookupConstructors()
3326 CXXMethodDecl *Sema::LookupCopyingAssignment(CXXRecordDecl *Class, in LookupCopyingAssignment()
3343 CXXMethodDecl *Sema::LookupMovingAssignment(CXXRecordDecl *Class, in LookupMovingAssignment()
3364 CXXDestructorDecl *Sema::LookupDestructor(CXXRecordDecl *Class) { in LookupDestructor()
3376 Sema::LiteralOperatorLookupResult
3377 Sema::LookupLiteralOperator(Scope *S, LookupResult &R, in LookupLiteralOperator()
3559 void Sema::ArgumentDependentLookup(DeclarationName Name, SourceLocation Loc, in ArgumentDependentLookup()
3754 void lookupVisibleDecls(Sema &SemaRef, Scope *S, Sema::LookupNameKind Kind, in lookupVisibleDecls()
3778 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx, in lookupVisibleDecls()
3779 Sema::LookupNameKind Kind, bool IncludeGlobalScope) { in lookupVisibleDecls()
4022 Sema::LookupMemberName); in lookupInScope()
4081 void Sema::LookupVisibleDecls(Scope *S, LookupNameKind Kind, in LookupVisibleDecls()
4089 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind, in LookupVisibleDecls()
4101 LabelDecl *Sema::LookupOrCreateLabel(IdentifierInfo *II, SourceLocation Loc, in LookupOrCreateLabel()
4140 static void LookupPotentialTypoResult(Sema &SemaRef,
4152 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { in checkCorrectionVisibility()
4496 TRD.getPair()) == Sema::AR_accessible) in performQualifiedLookups()
4635 static void LookupPotentialTypoResult(Sema &SemaRef, in LookupPotentialTypoResult()
4689 static void AddKeywordsToConsumer(Sema &SemaRef, in AddKeywordsToConsumer()
4840 std::unique_ptr<TypoCorrectionConsumer> Sema::makeTypoCorrectionConsumer( in makeTypoCorrectionConsumer()
4841 const DeclarationNameInfo &TypoName, Sema::LookupNameKind LookupKind, in makeTypoCorrectionConsumer()
5015 TypoCorrection Sema::CorrectTypo(const DeclarationNameInfo &TypoName, in CorrectTypo()
5016 Sema::LookupNameKind LookupKind, in CorrectTypo()
5150 TypoExpr *Sema::CorrectTypoDelayed( in CorrectTypoDelayed()
5151 const DeclarationNameInfo &TypoName, Sema::LookupNameKind LookupKind, in CorrectTypoDelayed()
5240 FunctionCallFilterCCC::FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs, in FunctionCallFilterCCC()
5312 void Sema::diagnoseTypo(const TypoCorrection &Correction, in diagnoseTypo()
5341 void Sema::diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl, in diagnoseMissingImport()
5371 void Sema::diagnoseMissingImport(SourceLocation UseLoc, NamedDecl *Decl, in diagnoseMissingImport()
5458 void Sema::diagnoseTypo(const TypoCorrection &Correction, in diagnoseTypo()
5491 TypoExpr *Sema::createDelayedTypo(std::unique_ptr<TypoCorrectionConsumer> TCC, in createDelayedTypo()
5506 const Sema::TypoExprState &Sema::getTypoExprState(TypoExpr *TE) const { in getTypoExprState()
5513 void Sema::clearDelayedTypo(TypoExpr *TE) { in clearDelayedTypo()
5517 void Sema::ActOnPragmaDump(Scope *S, SourceLocation IILoc, IdentifierInfo *II) { in ActOnPragmaDump()
5519 LookupResult R(*this, Name, LookupAnyName, Sema::NotForRedeclaration); in ActOnPragmaDump()