Lines Matching defs:SemaRef
124 Sema &SemaRef;
172 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator,
176 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo),
190 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
207 return SemaRef.CodeCompleter &&
208 SemaRef.CodeCompleter->includeCodePatterns();
222 PreferredType = SemaRef.Context.getCanonicalType(T);
259 Sema &getSema() const { return SemaRef; }
524 SemaRef.SourceMgr.isInSystemHeader(
525 SemaRef.SourceMgr.getSpellingLoc(ND->getLocation()))))
540 if (AllowNestedNameSpecifiers && SemaRef.getLangOpts().CPlusPlus &&
560 if (!SemaRef.getLangOpts().CPlusPlus)
578 R.Qualifier = getRequiredQualification(SemaRef.Context,
762 QualType T = getDeclUsageType(SemaRef.Context, R.Declaration);
764 CanQualType TC = SemaRef.Context.getCanonicalType(T);
766 if (SemaRef.Context.hasSameUnqualifiedType(PreferredType, TC))
778 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration ||
782 ASTContext &Context = SemaRef.Context;
915 R.Qualifier = NestedNameSpecifier::Create(SemaRef.Context, 0, Namespace);
917 R.Qualifier = NestedNameSpecifier::Create(SemaRef.Context, 0, false,
918 SemaRef.Context.getTypeDeclType(Tag).getTypePtr());
980 R.Qualifier = NestedNameSpecifier::Create(SemaRef.Context, 0, Namespace);
982 R.Qualifier = NestedNameSpecifier::Create(SemaRef.Context, 0, false,
983 SemaRef.Context.getTypeDeclType(Tag).getTypePtr());
1043 if (SemaRef.getLangOpts().CPlusPlus)
1045 else if (SemaRef.getLangOpts().ObjC1) {
1061 if (SemaRef.getLangOpts().CPlusPlus)
1063 else if (SemaRef.getLangOpts().ObjC1) {
1088 if (SemaRef.getLangOpts().CPlusPlus)
1103 return SemaRef.isAcceptableNestedNameSpecifier(ND);
1202 QualType T = getDeclUsageType(SemaRef.Context, ND);
1206 T = SemaRef.Context.getBaseElementType(T);
1207 return isObjCReceiverType(SemaRef.Context, T);
1222 if ((SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryName(ND)) ||
1223 (!SemaRef.getLangOpts().CPlusPlus && !IsOrdinaryNonTypeName(ND)))
1226 QualType T = getDeclUsageType(SemaRef.Context, ND);
1230 T = SemaRef.Context.getBaseElementType(T);
1233 (SemaRef.getLangOpts().CPlusPlus && T->isRecordType());
1516 Sema &SemaRef,
1520 PrintingPolicy Policy = getCompletionPrintingPolicy(SemaRef);
1525 if (SemaRef.getLangOpts().CPlusPlus) {
1570 if (SemaRef.getLangOpts().ObjC1)
1577 if (SemaRef.getLangOpts().CPlusPlus) {
1587 if (SemaRef.CurContext->isDependentContext()) {
1624 if (SemaRef.getLangOpts().CPlusPlus && Results.includeCodePatterns()) {
1633 AddStorageSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1634 AddFunctionSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1638 AddObjCInterfaceResults(SemaRef.getLangOpts(), Results, true);
1639 AddStorageSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1640 AddFunctionSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1644 AddObjCImplementationResults(SemaRef.getLangOpts(), Results, true);
1645 AddStorageSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1646 AddFunctionSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1650 AddObjCVisibilityResults(SemaRef.getLangOpts(), Results, true);
1657 if (SemaRef.getLangOpts().CPlusPlus && Results.includeCodePatterns() &&
1658 SemaRef.getLangOpts().CXXExceptions) {
1674 if (SemaRef.getLangOpts().ObjC1)
1681 if (SemaRef.getLangOpts().CPlusPlus)
1695 if (SemaRef.getLangOpts().CPlusPlus)
1707 if (!SemaRef.getCurFunction()->SwitchStack.empty()) {
1725 if (SemaRef.getLangOpts().CPlusPlus)
1751 if (SemaRef.getLangOpts().CPlusPlus || SemaRef.getLangOpts().C99)
1783 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1786 = dyn_cast<ObjCMethodDecl>(SemaRef.CurContext))
1788 else if (SemaRef.getCurBlock() &&
1789 !SemaRef.getCurBlock()->ReturnType.isNull())
1790 isVoid = SemaRef.getCurBlock()->ReturnType->isVoidType();
1816 AddStorageSpecifiers(CCC, SemaRef.getLangOpts(), Results);
1820 if (SemaRef.getLangOpts().ObjCAutoRefCount &&
1849 if (SemaRef.getLangOpts().CPlusPlus) {
1851 addThisCompletion(SemaRef, Results);
1863 if (SemaRef.getLangOpts().RTTI) {
1905 if (SemaRef.getLangOpts().RTTI) {
1953 if (SemaRef.getLangOpts().CXXExceptions) {
1964 if (SemaRef.getLangOpts().CPlusPlus11) {
1996 if (SemaRef.getLangOpts().ObjC1) {
1998 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) {
2016 if (SemaRef.getLangOpts().C11) {
2019 if (SemaRef.getASTContext().Idents.get("alignof").hasMacroDefinition())
2044 if (WantTypesInContext(CCC, SemaRef.getLangOpts()))
2045 AddTypeSpecifierResults(SemaRef.getLangOpts(), Results);
2047 if (SemaRef.getLangOpts().CPlusPlus && CCC != Sema::PCC_Type)
3283 static void AddClassMessageCompletions(Sema &SemaRef, Scope *S,
5387 static void AddClassMessageCompletions(Sema &SemaRef, Scope *S,
5400 QualType T = SemaRef.GetTypeFromParser(Receiver, 0);
5414 = AddSuperSendCompletion(SemaRef, false, SelIdents, NumSelIdents,
5421 if (ObjCMethodDecl *CurMethod = SemaRef.getCurMethodDecl())
5427 SemaRef.CurContext, Selectors, AtArgumentExpression,
5434 if (SemaRef.getExternalSource()) {
5436 N = SemaRef.getExternalSource()->GetNumExternalSelectors();
5438 Selector Sel = SemaRef.getExternalSource()->GetExternalSelector(I);
5439 if (Sel.isNull() || SemaRef.MethodPool.count(Sel))
5442 SemaRef.ReadMethodPool(Sel);
5446 for (Sema::GlobalMethodPool::iterator M = SemaRef.MethodPool.begin(),
5447 MEnd = SemaRef.MethodPool.end();
5459 Results.MaybeAddResult(R, SemaRef.CurContext);