/external/clang/lib/Sema/ |
H A D | SemaTemplateInstantiateDecl.cpp | 40 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl, argument 49 SemaRef, 55 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), 67 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); 72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); 298 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), 312 = NamespaceAliasDecl::Create(SemaRef.Context, Owner, 329 DI = SemaRef.SubstType(DI, TemplateArgs, 333 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef [all...] |
H A D | SemaTemplateInstantiate.cpp | 204 Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind, 208 : SemaRef(SemaRef), SavedInNonInstantiationSFINAEContext( 209 SemaRef.InNonInstantiationSFINAEContext) { 212 if (SemaRef.Diags.hasFatalErrorOccurred()) { 227 SemaRef.InNonInstantiationSFINAEContext = false; 228 SemaRef.ActiveTemplateInstantiations.push_back(Inst); 230 ++SemaRef.NonInstantiationEntries; 235 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, 237 : InstantiatingTemplate(SemaRef, 203 InstantiatingTemplate( Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind, SourceLocation PointOfInstantiation, SourceRange InstantiationRange, Decl *Entity, NamedDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, sema::TemplateDeductionInfo *DeductionInfo) argument 234 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity, SourceRange InstantiationRange) argument 241 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionDecl *Entity, ExceptionSpecification, SourceRange InstantiationRange) argument 248 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) argument 257 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, FunctionTemplateDecl *FunctionTemplate, ArrayRef<TemplateArgument> TemplateArgs, ActiveTemplateInstantiation::InstantiationKind Kind, sema::TemplateDeductionInfo &DeductionInfo, SourceRange InstantiationRange) argument 267 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, ClassTemplatePartialSpecializationDecl *PartialSpec, ArrayRef<TemplateArgument> TemplateArgs, sema::TemplateDeductionInfo &DeductionInfo, SourceRange InstantiationRange) argument 278 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, VarTemplatePartialSpecializationDecl *PartialSpec, ArrayRef<TemplateArgument> TemplateArgs, sema::TemplateDeductionInfo &DeductionInfo, SourceRange InstantiationRange) argument 289 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) argument 298 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, NonTypeTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) argument 308 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, NamedDecl *Template, TemplateTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) argument 318 InstantiatingTemplate( Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, NamedDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, SourceRange InstantiationRange) argument 633 TemplateInstantiator(Sema &SemaRef, const MultiLevelTemplateArgumentList &TemplateArgs, SourceLocation Loc, DeclarationName Entity) argument [all...] |
H A D | SemaOpenMP.cpp | 112 Sema &SemaRef; member in class:__anon1198::DSAStackTy 122 explicit DSAStackTy(Sema &S) : Stack(1), SemaRef(S) {} 448 bool IsConstant = Type.isConstant(SemaRef.getASTContext()); 458 SemaRef.getLangOpts().CPlusPlus ? Type->getAsCXXRecordDecl() : nullptr; 460 !(SemaRef.getLangOpts().CPlusPlus && RD && RD->hasMutableFields())) { 633 Expr *NumIterations, Sema &SemaRef, 640 Sema &SemaRef; member in class:__anon1199::VarDeclFilterCCC 643 explicit VarDeclFilterCCC(Sema &S) : SemaRef(S) {} 648 SemaRef.isDeclInScope(ND, SemaRef 792 Sema &SemaRef; member in class:__anon1200::LocalVarRefChecker 815 LocalVarRefChecker(Sema &SemaRef) argument 891 ReportOriginalDSA(Sema &SemaRef, DSAStackTy *Stack, const VarDecl *VD, DSAStackTy::DSAVarData DVar, bool IsLoopIterVar = false) argument 948 Sema &SemaRef; member in class:__anon1202::DSAAttrChecker 1026 DSAAttrChecker(DSAStackTy *S, Sema &SemaRef, CapturedStmt *CS) argument 1228 CheckNestingOfRegions(Sema &SemaRef, DSAStackTy *Stack, OpenMPDirectiveKind CurrentRegion, const DeclarationNameInfo &CurrentName, SourceLocation StartLoc) argument 1918 Sema &SemaRef; member in class:__anon1204::OpenMPIterationSpaceChecker 1951 OpenMPIterationSpaceChecker(Sema &SemaRef, SourceLocation DefaultLoc) argument 2422 CheckOpenMPIterationSpace( OpenMPDirectiveKind DKind, Stmt *S, Sema &SemaRef, DSAStackTy &DSA, unsigned CurrentNestedLoopCount, unsigned NestedLoopCount, Expr *NestedLoopCountExpr, llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA, LoopIterationSpace &ResultIterSpace) argument 2557 BuildVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, StringRef Name) argument 2569 BuildCounterUpdate(Sema &SemaRef, Scope *S, SourceLocation Loc, ExprResult VarRef, ExprResult Start, ExprResult Iter, ExprResult Step, bool Subtract) argument 2601 WidenIterationCount(unsigned Bits, Expr *E, Sema &SemaRef) argument 2618 FitsInto(unsigned Bits, bool Signed, Expr *E, Sema &SemaRef) argument 2631 CheckOpenMPLoop(OpenMPDirectiveKind DKind, Expr *NestedLoopCountExpr, Stmt *AStmt, Sema &SemaRef, DSAStackTy &DSA, llvm::DenseMap<VarDecl *, Expr *> &VarsWithImplicitDSA, OMPLoopDirective::HelperExprs &Built) argument 3320 Sema &SemaRef; member in class:__anon1205::OpenMPAtomicUpdateChecker 3341 OpenMPAtomicUpdateChecker(Sema &SemaRef) argument 5796 FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV, Expr *NumIterations, Sema &SemaRef, Scope *S) argument [all...] |
H A D | TreeTransform.h | 113 Sema &SemaRef; member in class:clang::TreeTransform 122 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } argument 137 Sema &getSema() const { return SemaRef; } 148 bool AlwaysRebuild() { return SemaRef.ArgumentPackSubstitutionIndex != -1; } 557 return SemaRef.Context.getTrivialTypeSourceInfo(T, 792 return SemaRef.Context.getTypeDeclType(Typedef); 797 return SemaRef.Context.getTypeDeclType(Record); 802 return SemaRef [all...] |
H A D | SemaInit.cpp | 236 Sema &SemaRef; member in class:__anon1192::InitListChecker 316 static ExprResult PerformEmptyInit(Sema &SemaRef, 342 ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef, argument 350 InitListExpr DummyInitList(SemaRef.Context, Loc, None, Loc); 356 bool EmptyInitList = SemaRef.getLangOpts().CPlusPlus11 && 369 InitExpr = VerifyOnly ? &DummyInitList : new (SemaRef.Context) 370 InitListExpr(SemaRef.Context, Loc, None, Loc); 371 InitExpr->setType(SemaRef.Context.VoidTy); 379 InitializationSequence InitSeq(SemaRef, Entity, Kind, SubInit); 390 .BestViableFunction(SemaRef, Kin 1778 ExpandAnonymousFieldDesignator(Sema &SemaRef, DesignatedInitExpr *DIE, unsigned DesigIdx, IndirectFieldDecl *IndirectField) argument 1806 CloneDesignatedInitExpr(Sema &SemaRef, DesignatedInitExpr *DIE) argument [all...] |
H A D | SemaExprMember.cpp | 37 static bool isProvablyNotDerivedFrom(Sema &SemaRef, CXXRecordDecl *Record, argument 92 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef, argument 96 DeclContext *DC = SemaRef.getFunctionLevelDeclContext(); 98 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() && 138 switch (SemaRef.ExprEvalContexts.back().Context) { 140 if (isField && SemaRef.getLangOpts().CPlusPlus11) 189 if (isProvablyNotDerivedFrom(SemaRef, contextClass, Classes)) 198 static void diagnoseInstanceReference(Sema &SemaRef, argument 209 DeclContext *FunctionLevelDC = SemaRef.getFunctionLevelDeclContext(); 219 SemaRef 486 DiagnoseQualifiedMemberReference(Sema &SemaRef, Expr *BaseExpr, QualType BaseType, const CXXScopeSpec &SS, NamedDecl *rep, const DeclarationNameInfo &nameInfo) argument 601 LookupMemberExprInRecord(Sema &SemaRef, LookupResult &R, Expr *BaseExpr, const RecordType *RTy, SourceLocation OpLoc, bool IsArrow, CXXScopeSpec &SS, bool HasTemplateArgs, TypoExpr *&TE) argument 883 BuildMemberExpr( Sema &SemaRef, ASTContext &C, Expr *Base, bool isArrow, SourceLocation OpLoc, const CXXScopeSpec &SS, SourceLocation TemplateKWLoc, ValueDecl *Member, DeclAccessPair FoundDecl, const DeclarationNameInfo &MemberNameInfo, QualType Ty, ExprValueKind VK, ExprObjectKind OK, const TemplateArgumentListInfo *TemplateArgs = nullptr) argument [all...] |
H A D | SemaCodeComplete.cpp | 124 Sema &SemaRef; member in class:__anon1152::ResultBuilder 172 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, argument 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 1515 AddOrdinaryNameResults(Sema::ParserCompletionContext CCC, Scope *S, Sema &SemaRef, ResultBuilder &Results) argument 3867 mergeCandidatesWithResults(Sema &SemaRef, SmallVectorImpl<ResultCandidate> &Results, OverloadCandidateSet &CandidateSet, SourceLocation Loc) argument 3888 getParamType(Sema &SemaRef, ArrayRef<ResultCandidate> Candidates, unsigned N) argument 3913 CodeCompleteOverloadResults(Sema &SemaRef, Scope *S, MutableArrayRef<ResultCandidate> Candidates, unsigned CurrentArg, bool CompleteExpressionWithCurrentArg = true) argument 5487 AddClassMessageCompletions(Sema &SemaRef, Scope *S, ParsedType Receiver, ArrayRef<IdentifierInfo *> SelIdents, bool AtArgumentExpression, bool IsSuper, ResultBuilder &Results) argument [all...] |
H A D | SemaLookup.cpp | 1219 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { argument 1229 if (SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC))) { 1230 if (SemaRef.ActiveTemplateInstantiations.empty()) { 1241 llvm::DenseSet<Module*> &LookupModules = SemaRef.getLookupModules(); 1271 static NamedDecl *findAcceptableDecl(Sema &SemaRef, NamedDecl *D) { argument 1272 assert(!LookupResult::isVisible(SemaRef, D) && "not in slow case"); 1279 if (LookupResult::isVisible(SemaRef, ND)) 3353 static void LookupPotentialTypoResult(Sema &SemaRef, 3365 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { argument 3372 if (!LookupResult::isVisible(SemaRef, *D 3854 LookupPotentialTypoResult(Sema &SemaRef, LookupResult &Res, IdentifierInfo *Name, Scope *S, CXXScopeSpec *SS, DeclContext *MemberContext, bool EnteringContext, bool isObjCIvarLookup, bool FindHidden) argument 3907 AddKeywordsToConsumer(Sema &SemaRef, TypoCorrectionConsumer &Consumer, Scope *S, CorrectionCandidateCallback &CCC, bool AfterNestedNameSpecifier) argument 4448 FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs, bool HasExplicitTemplateArgs, MemberExpr *ME) argument [all...] |
H A D | SemaStmt.cpp | 1829 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, argument 1835 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) == 1837 SemaRef.Diag(Loc, DiagID) << Init->getType(); 1847 if (SemaRef.getLangOpts().ObjCAutoRefCount && 1848 SemaRef.inferObjCARCLifetime(Decl)) 1851 SemaRef.AddInitializerToDecl(Decl, Init, /*DirectInit=*/false, 1853 SemaRef.FinalizeDeclaration(Decl); 1854 SemaRef.CurContext->addHiddenDecl(Decl); 1864 void NoteForRangeBeginEndFunction(Sema &SemaRef, Expr *E, argument 1877 Description = SemaRef 1887 BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, const char *Name) argument 1983 BuildNonArrayForRange(Sema &SemaRef, Scope *S, Expr *BeginRange, Expr *EndRange, QualType RangeType, VarDecl *BeginVar, VarDecl *EndVar, SourceLocation ColonLoc, OverloadCandidateSet *CandidateSet, ExprResult *BeginExpr, ExprResult *EndExpr, Sema::BeginEndFunction *BEF) argument 2061 RebuildForRangeWithDereference(Sema &SemaRef, Scope *S, SourceLocation ForLoc, Stmt *LoopVarDecl, SourceLocation ColonLoc, Expr *Range, SourceLocation RangeLoc, SourceLocation RParenLoc) argument 2099 InvalidateOnErrorScope(Sema &SemaRef, Decl *D, bool Enabled) argument 2374 DiagnoseForRangeReferenceVariableCopies(Sema &SemaRef, const VarDecl *VD, QualType RangeInitType) argument 2444 DiagnoseForRangeConstVariableCopies(Sema &SemaRef, const VarDecl *VD) argument 2485 DiagnoseForRangeVariableCopies(Sema &SemaRef, const CXXForRangeStmt *ForStmt) argument [all...] |
H A D | CodeCompleteConsumer.cpp | 432 PrintingCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &SemaRef, argument 447 = Results[I].CreateCodeCompletionString(SemaRef, getAllocator(), 465 = Results[I].CreateCodeCompletionString(SemaRef, getAllocator(), 509 PrintingCodeCompleteConsumer::ProcessOverloadCandidates(Sema &SemaRef, argument 515 = Candidates[I].CreateSignatureString(CurrentArg, SemaRef,
|
H A D | SemaDeclCXX.cpp | 742 static bool CheckConstexprParameterTypes(Sema &SemaRef, argument 752 SemaRef.RequireLiteralType(ParamLoc, *i, 840 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, argument 866 SemaRef.Diag(TL.getBeginLoc(), diag::err_constexpr_vla) 878 SemaRef.Diag(DS->getLocStart(), 879 SemaRef.getLangOpts().CPlusPlus14 899 SemaRef.Diag(VD->getLocation(), 906 SemaRef.RequireLiteralType( 913 SemaRef.Diag(VD->getLocation(), 919 SemaRef 953 CheckConstexprCtorInitializer(Sema &SemaRef, const FunctionDecl *Dcl, FieldDecl *Field, llvm::SmallSet<Decl*, 16> &Inits, bool &Diagnosed) argument 992 CheckConstexprFunctionStmt(Sema &SemaRef, const FunctionDecl *Dcl, Stmt *S, SmallVectorImpl<SourceLocation> &ReturnStmts, SourceLocation &Cxx1yLoc) argument 2635 DiagnoseUninitializedFields( Sema &SemaRef, const CXXConstructorDecl *Constructor) argument 2766 FindBaseInitializer(Sema &SemaRef, CXXRecordDecl *ClassDecl, QualType BaseType, const CXXBaseSpecifier *&DirectBaseSpec, const CXXBaseSpecifier *&VirtualBaseSpec) argument 3338 CastForMoving(Sema &SemaRef, Expr *E, QualType T = QualType()) argument 3361 BuildImplicitBaseInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor, ImplicitInitializerKind ImplicitInitKind, CXXBaseSpecifier *BaseSpec, bool IsInheritedVirtualBase, CXXCtorInitializer *&CXXBaseInit) argument 3471 BuildImplicitMemberInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor, ImplicitInitializerKind ImplicitInitKind, FieldDecl *Field, IndirectFieldDecl *Indirect, CXXCtorInitializer *&CXXMemberInit) argument 3803 CollectFieldInitializer(Sema &SemaRef, BaseAndFieldInfo &Info, FieldDecl *Field, IndirectFieldDecl *Indirect = nullptr) argument 4089 DiagnoseBaseOrMemInitializerOrder( Sema &SemaRef, const CXXConstructorDecl *Constructor, ArrayRef<CXXCtorInitializer *> Inits) argument 8962 InheritingConstructorInfo(Sema &SemaRef, CXXRecordDecl *Derived) argument 9229 Sema &SemaRef; member in class:__anon1173::InheritingConstructorInfo 11438 CheckOperatorNewDeleteDeclarationScope(Sema &SemaRef, const FunctionDecl *FnDecl) argument 11458 CheckOperatorNewDeleteTypes(Sema &SemaRef, const FunctionDecl *FnDecl, CanQualType ExpectedResultType, CanQualType ExpectedFirstParamType, unsigned DependentParamTypeDiag, unsigned InvalidParamTypeDiag) argument 11506 CheckOperatorNewDeclaration(Sema &SemaRef, const FunctionDecl *FnDecl) argument 11537 CheckOperatorDeleteDeclaration(Sema &SemaRef, FunctionDecl *FnDecl) argument [all...] |
H A D | SemaOverload.cpp | 5212 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From, argument 5219 Converter.diagnoseAmbiguous(SemaRef, Loc, T) << From->getSourceRange(); 5224 Converter.noteAmbiguous(SemaRef, Conv, ConvTy); 5230 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From, argument 5243 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy()); 5245 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy) 5249 SemaRef.getLocForEndOfToken(From->getLocEnd()), ")"); 5250 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy); 5254 if (SemaRef.isSFINAEContext()) 5257 SemaRef 5270 recordConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From, Sema::ContextualImplicitConverter &Converter, QualType T, bool HadMultipleCandidates, DeclAccessPair &Found) argument 5298 finishContextualImplicitConversion( Sema &SemaRef, SourceLocation Loc, Expr *From, Sema::ContextualImplicitConverter &Converter) argument 5309 collectViableConversionCandidates(Sema &SemaRef, Expr *From, QualType ToType, UnresolvedSetImpl &ViableConversions, OverloadCandidateSet &CandidateSet) argument 6718 Sema &SemaRef; member in class:__anon1219::BuiltinCandidateTypeSet 6731 BuiltinCandidateTypeSet(Sema &SemaRef) argument [all...] |
H A D | Sema.cpp | 393 static bool ShouldRemoveFromUnused(Sema *SemaRef, const DeclaratorDecl *D) { argument 405 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); 411 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); 421 VD->isUsableInConstantExpressions(SemaRef->Context)) 428 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); 434 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck);
|
H A D | SemaDecl.cpp | 667 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result, argument 671 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName); 672 SemaRef.LookupParsedName(R, S, &SS); 698 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) 699 << Name << TagName << SemaRef.getLangOpts().CPlusPlus 704 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) 709 SemaRef.LookupParsedName(Result, S, &SS); 3779 static bool CheckAnonMemberRedeclaration(Sema &SemaRef, argument 3785 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName, 3787 if (!SemaRef 3821 InjectAnonymousStructOrUnionMembers(Sema &SemaRef, Scope *S, DeclContext *Owner, RecordDecl *AnonRecord, AccessSpecifier AS, SmallVectorImpl<NamedDecl *> &Chaining, bool MSAnonStruct) argument 6545 DiagnoseInvalidRedeclaration( Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD, ActOnFDArgs &ExtraArgs, bool IsLocalFriend, Scope *S) argument 6685 getFunctionStorageClass(Sema &SemaRef, Declarator &D) argument 6720 CreateNewFunctionDecl(Sema &SemaRef, Declarator &D, DeclContext *DC, QualType &R, TypeSourceInfo *TInfo, StorageClass SC, bool &IsVirtualOkay) argument 11231 createFriendTagNNSFixIt(Sema &SemaRef, NamedDecl *ND, Scope *S, SourceLocation NameLoc) argument [all...] |
H A D | SemaType.cpp | 2131 Sema &SemaRef = state.getSema(); local 2162 T = SemaRef.Context.VoidTy; 2170 T = SemaRef.GetTypeFromParser(D.getName().ConversionFunctionId, 2185 (!SemaRef.getLangOpts().CPlusPlus11 || !D.isFunctionDeclarator())) { 2199 if (!(SemaRef.getLangOpts().CPlusPlus14 2206 switch (cast<TagDecl>(SemaRef.CurContext)->getTagKind()) { 2232 if (!SemaRef.getLangOpts().CPlusPlus14) 2236 if (!SemaRef.getLangOpts().CPlusPlus14) 2261 if (SemaRef.getLangOpts().CPlusPlus11 && Error != -1) { 2283 SemaRef [all...] |
H A D | SemaTemplate.cpp | 485 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef, argument 491 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI); 493 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); 511 SemaRef.Context), 529 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S, argument 532 NamedDecl *PrevDecl = SemaRef.LookupSingleName( 535 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); 3136 /// \param SemaRef the semantic analysis object for which we are performing 3155 SubstDefaultTemplateArgument(Sema &SemaRef, argument 3166 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLo 3213 SubstDefaultTemplateArgument(Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc, SourceLocation RAngleLoc, NonTypeTemplateParmDecl *Param, SmallVectorImpl<TemplateArgument> &Converted) argument 3265 SubstDefaultTemplateArgument(Sema &SemaRef, TemplateDecl *Template, SourceLocation TemplateLoc, SourceLocation RAngleLoc, TemplateTemplateParmDecl *Param, SmallVectorImpl<TemplateArgument> &Converted, NestedNameSpecifierLoc &QualifierLoc) argument 8143 CurrentInstantiationRebuilder(Sema &SemaRef, SourceLocation Loc, DeclarationName Entity) argument [all...] |
/external/clang/include/clang/Sema/ |
H A D | Template.h | 186 Sema &SemaRef; 246 LocalInstantiationScope(Sema &SemaRef, bool CombineWithOuterScope = false) 247 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), 251 SemaRef.CurrentInstantiationScope = this; 258 const Sema &getSema() const { return SemaRef; } 268 SemaRef.CurrentInstantiationScope = Outer; 277 // Save the current scope from SemaRef since the LocalInstantiationScope 279 LocalInstantiationScope *oldScope = SemaRef [all...] |
H A D | SemaInternal.h | 59 SourceLocation Loc, Sema &SemaRef, 63 if (Var->hasDefinition(SemaRef.Context) == VarDecl::DeclarationOnly && 66 SourceLocation &old = SemaRef.UndefinedButUsed[Var->getCanonicalDecl()]; 70 SemaRef.tryCaptureVariable(Var, Loc, Sema::TryCapture_Implicit, 76 Var->markUsed(SemaRef.Context); 96 TypoCorrectionConsumer(Sema &SemaRef, argument 104 SavedTCIndex(0), SemaRef(SemaRef), S(S), 107 Result(SemaRef, TypoName, LookupKind), 108 Namespaces(SemaRef 58 MarkVarDeclODRUsed(VarDecl *Var, SourceLocation Loc, Sema &SemaRef, const unsigned *const FunctionScopeIndexToStopAt) argument 306 Sema &SemaRef; member in class:clang::TypoCorrectionConsumer [all...] |
H A D | Lookup.h | 129 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo, argument 135 SemaPtr(&SemaRef), 151 LookupResult(Sema &SemaRef, DeclarationName Name, argument 157 SemaPtr(&SemaRef), 289 static bool isVisible(Sema &SemaRef, NamedDecl *D) { argument 296 return isVisibleSlow(SemaRef, D); 312 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
|
H A D | Sema.h | 990 Sema &SemaRef; member in class:clang::Sema::SemaDiagnosticBuilder 994 SemaDiagnosticBuilder(DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID) argument 995 : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) { } 1014 SemaRef.EmitCurrentDiagnostic(DiagID); 6422 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 6429 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 6435 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 6442 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 6452 InstantiatingTemplate(Sema &SemaRef, SourceLocatio 6507 Sema &SemaRef; member in struct:clang::Sema::InstantiatingTemplate 6550 Sema &SemaRef; member in class:clang::Sema::SFINAETrap 6556 SFINAETrap(Sema &SemaRef, bool AccessCheckingSFINAE = false) argument 6585 Sema &SemaRef; member in class:clang::Sema::TentativeAnalysisScope 6590 TentativeAnalysisScope(Sema &SemaRef) argument [all...] |
H A D | TypoCorrection.h | 329 FunctionCallFilterCCC(Sema &SemaRef, unsigned NumArgs,
|
/external/clang/include/clang/Serialization/ |
H A D | ASTWriter.h | 518 void WriteSelectors(Sema &SemaRef); 519 void WriteReferencedSelectorsPool(Sema &SemaRef); 527 void WriteOpenCLExtensions(Sema &SemaRef); 530 void WriteLateParsedTemplates(Sema &SemaRef); 531 void WriteOptimizePragmaOptions(Sema &SemaRef); 554 void WriteASTCore(Sema &SemaRef, 568 /// \param SemaRef a reference to the semantic analysis object that processed 577 void WriteAST(Sema &SemaRef,
|
/external/clang/lib/ARCMigrate/ |
H A D | Internals.h | 150 Sema &SemaRef; member in class:clang::arcmt::MigrationPass 161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags),
|
H A D | Transforms.cpp | 33 EnableCFBridgeFns = SemaRef.isKnownName("CFBridgingRetain") && 34 SemaRef.isKnownName("CFBridgingRelease");
|
/external/clang/lib/Serialization/ |
H A D | ASTWriter.cpp | 2983 void ASTWriter::WriteSelectors(Sema &SemaRef) { 2987 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) 3001 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); 3007 if (F != SemaRef.MethodPool.end()) { 3081 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { 3083 if (SemaRef.ReferencedSelectors.empty()) 3091 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { 3938 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { 3939 if (!SemaRef.Context.getLangOpts().OpenCL) 3942 const OpenCLOptions &Opts = SemaRef [all...] |