/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 34 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), in SubstQualifier() 50 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), in SubstQualifier() 120 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitLabelDecl() 134 = NamespaceAliasDecl::Create(SemaRef.Context, Owner, in VisitNamespaceAliasDecl() 151 DI = SemaRef.SubstType(DI, TemplateArgs, in InstantiateTypedefNameDecl() 155 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy); in InstantiateTypedefNameDecl() 158 SemaRef.MarkDeclarationsReferencedInType(D->getLocation(), DI->getType()); in InstantiateTypedefNameDecl() 164 Typedef = TypeAliasDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in InstantiateTypedefNameDecl() 167 Typedef = TypedefDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in InstantiateTypedefNameDecl() 184 NamedDecl *InstPrev = SemaRef.FindInstantiatedDecl(D->getLocation(), Prev, in InstantiateTypedefNameDecl() [all …]
|
D | SemaTemplateInstantiate.cpp | 172 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument 175 : SemaRef(SemaRef), in InstantiatingTemplate() 177 SemaRef.InNonInstantiationSFINAEContext) in InstantiatingTemplate() 189 SemaRef.InNonInstantiationSFINAEContext = false; in InstantiatingTemplate() 190 SemaRef.ActiveTemplateInstantiations.push_back(Inst); in InstantiatingTemplate() 195 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate() argument 198 : SemaRef(SemaRef), in InstantiatingTemplate() 200 SemaRef.InNonInstantiationSFINAEContext) in InstantiatingTemplate() 212 SemaRef.InNonInstantiationSFINAEContext = false; in InstantiatingTemplate() 213 SemaRef.ActiveTemplateInstantiations.push_back(Inst); in InstantiatingTemplate() [all …]
|
D | TreeTransform.h | 113 Sema &SemaRef; 122 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } in TreeTransform() argument 137 Sema &getSema() const { return SemaRef; } in getSema() 513 return SemaRef.Context.getTrivialTypeSourceInfo(T, in InventTypeSourceInfo() 719 return SemaRef.Context.getTypeDeclType(Typedef); in RebuildTypedefType() 724 return SemaRef.Context.getTypeDeclType(Record); in RebuildRecordType() 729 return SemaRef.Context.getTypeDeclType(Enum); in RebuildEnumType() 758 return SemaRef.Context.getAutoType(Deduced); in RebuildAutoType() 775 return SemaRef.Context.getParenType(InnerType); in RebuildParenType() 787 return SemaRef.Context.getElaboratedType(Keyword, in RebuildElaboratedType() [all …]
|
D | SemaInit.cpp | 171 Sema &SemaRef; member in __anonf0e45af10111::InitListChecker 282 InitializationSequence InitSeq(SemaRef, Entity, Kind, 0, 0); in CheckValueInitializable() 304 SemaRef.Diag(Loc, diag::err_init_reference_member_uninitialized) in FillInValueInitForField() 307 SemaRef.Diag(Field->getLocation(), in FillInValueInitForField() 315 InitializationSequence InitSeq(SemaRef, MemberEntity, Kind, 0, 0); in FillInValueInitForField() 317 InitSeq.Diagnose(SemaRef, MemberEntity, Kind, 0, 0); in FillInValueInitForField() 323 = InitSeq.Perform(SemaRef, MemberEntity, Kind, MultiExprArg()); in FillInValueInitForField() 338 ILE->updateInit(SemaRef.Context, Init, MemberInit.takeAs<Expr>()); in FillInValueInitForField() 354 assert((ILE->getType() != SemaRef.Context.VoidTy) && in FillInValueInitializations() 397 if (const ArrayType *AType = SemaRef.Context.getAsArrayType(ILE->getType())) { in FillInValueInitializations() [all …]
|
D | SemaExprMember.cpp | 28 static bool IsProvablyNotDerivedFrom(Sema &SemaRef, in IsProvablyNotDerivedFrom() argument 40 CanQualType BaseT = SemaRef.Context.getCanonicalType((*I).getType()); in IsProvablyNotDerivedFrom() 45 if (!IsProvablyNotDerivedFrom(SemaRef, BaseRecord, Bases)) in IsProvablyNotDerivedFrom() 97 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef, in ClassifyImplicitMemberAccess() argument 102 DeclContext *DC = SemaRef.getFunctionLevelDeclContext(); in ClassifyImplicitMemberAccess() 104 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() && in ClassifyImplicitMemberAccess() 134 if (SemaRef.getLangOpts().CPlusPlus0x && isField) { in ClassifyImplicitMemberAccess() 142 = SemaRef.ExprEvalContexts.back(); in ClassifyImplicitMemberAccess() 180 if (IsProvablyNotDerivedFrom(SemaRef, contextClass, Classes)) in ClassifyImplicitMemberAccess() 189 static void diagnoseInstanceReference(Sema &SemaRef, in diagnoseInstanceReference() argument [all …]
|
D | SemaCodeComplete.cpp | 122 Sema &SemaRef; member in __anone17ed4b10111::ResultBuilder 170 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, in ResultBuilder() argument 174 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), in ResultBuilder() 188 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) in ResultBuilder() 202 return SemaRef.CodeCompleter && in includeCodePatterns() 203 SemaRef.CodeCompleter->includeCodePatterns(); in includeCodePatterns() 217 PreferredType = SemaRef.Context.getCanonicalType(T); in setPreferredType() 254 Sema &getSema() const { return SemaRef; } in getSema() 518 SemaRef.SourceMgr.isInSystemHeader( in isInterestingDecl() 519 SemaRef.SourceMgr.getSpellingLoc(ND->getLocation())))) in isInterestingDecl() [all …]
|
D | SemaLookup.cpp | 287 IDNS = getIDNS(LookupKind, SemaRef.getLangOpts().CPlusPlus, in configure() 299 SemaRef.DeclareGlobalNewDelete(); in configure() 380 QualType T = SemaRef.Context.getTypeDeclType(TD); in resolveKind() 381 if (!UniqueTypes.insert(SemaRef.Context.getCanonicalType(T))) { in resolveKind() 3157 Sema &SemaRef; member in __anonb72703d70411::TypoCorrectionConsumer 3160 explicit TypoCorrectionConsumer(Sema &SemaRef, IdentifierInfo *Typo) in TypoCorrectionConsumer() argument 3162 SemaRef(SemaRef) { } in TypoCorrectionConsumer() 3243 TypoCorrection TC(&SemaRef.Context.Idents.get(Name), ND, NNS, Distance); in addName() 3256 std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts()); in addCorrection() 3264 if (CorrectionStr < RI->getAsString(SemaRef.getLangOpts())) in addCorrection() [all …]
|
D | SemaStmt.cpp | 1561 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, in FinishForRangeVarDecl() argument 1567 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitTSI) == in FinishForRangeVarDecl() 1569 SemaRef.Diag(Loc, diag) << Init->getType(); in FinishForRangeVarDecl() 1580 if (SemaRef.getLangOpts().ObjCAutoRefCount && in FinishForRangeVarDecl() 1581 SemaRef.inferObjCARCLifetime(Decl)) in FinishForRangeVarDecl() 1584 SemaRef.AddInitializerToDecl(Decl, Init, /*DirectInit=*/false, in FinishForRangeVarDecl() 1586 SemaRef.FinalizeDeclaration(Decl); in FinishForRangeVarDecl() 1587 SemaRef.CurContext->addHiddenDecl(Decl); in FinishForRangeVarDecl() 1597 void NoteForRangeBeginEndFunction(Sema &SemaRef, Expr *E, in NoteForRangeBeginEndFunction() argument 1610 Description = SemaRef.getTemplateArgumentBindingsText( in NoteForRangeBeginEndFunction() [all …]
|
D | SemaDeclCXX.cpp | 660 static bool CheckConstexprParameterTypes(Sema &SemaRef, in CheckConstexprParameterTypes() argument 669 SemaRef.RequireLiteralType(ParamLoc, *i, in CheckConstexprParameterTypes() 757 static bool CheckConstexprDeclStmt(Sema &SemaRef, const FunctionDecl *Dcl, in CheckConstexprDeclStmt() argument 783 SemaRef.Diag(TL.getBeginLoc(), diag::err_constexpr_vla) in CheckConstexprDeclStmt() 797 SemaRef.Diag(DS->getLocStart(), diag::err_constexpr_type_definition) in CheckConstexprDeclStmt() 804 SemaRef.Diag(DS->getLocStart(), diag::err_constexpr_var_declaration) in CheckConstexprDeclStmt() 809 SemaRef.Diag(DS->getLocStart(), diag::err_constexpr_body_invalid_stmt) in CheckConstexprDeclStmt() 826 static void CheckConstexprCtorInitializer(Sema &SemaRef, in CheckConstexprCtorInitializer() argument 840 SemaRef.Diag(Dcl->getLocation(), diag::err_constexpr_ctor_missing_init); in CheckConstexprCtorInitializer() 843 SemaRef.Diag(Field->getLocation(), diag::note_constexpr_ctor_missing_init); in CheckConstexprCtorInitializer() [all …]
|
D | CodeCompleteConsumer.cpp | 466 PrintingCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &SemaRef, in ProcessCodeCompleteResults() argument 481 = Results[I].CreateCodeCompletionString(SemaRef, getAllocator(), in ProcessCodeCompleteResults() 499 = Results[I].CreateCodeCompletionString(SemaRef, getAllocator(), in ProcessCodeCompleteResults() 518 PrintingCodeCompleteConsumer::ProcessOverloadCandidates(Sema &SemaRef, in ProcessOverloadCandidates() argument 524 = Candidates[I].CreateSignatureString(CurrentArg, SemaRef, in ProcessOverloadCandidates()
|
D | SemaDecl.cpp | 517 static bool isTagTypeWithMissingTag(Sema &SemaRef, LookupResult &Result, in isTagTypeWithMissingTag() argument 521 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName); in isTagTypeWithMissingTag() 522 SemaRef.LookupParsedName(R, S, &SS); in isTagTypeWithMissingTag() 553 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag() 554 << Name << TagName << SemaRef.getLangOpts().CPlusPlus in isTagTypeWithMissingTag() 559 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag() 564 SemaRef.LookupParsedName(Result, S, &SS); in isTagTypeWithMissingTag() 2798 static bool CheckAnonMemberRedeclaration(Sema &SemaRef, in CheckAnonMemberRedeclaration() argument 2804 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName, in CheckAnonMemberRedeclaration() 2806 if (!SemaRef.LookupName(R, S)) return false; in CheckAnonMemberRedeclaration() [all …]
|
D | SemaOverload.cpp | 6046 Sema &SemaRef; member in clang::BuiltinCandidateTypeSet 6059 BuiltinCandidateTypeSet(Sema &SemaRef) in BuiltinCandidateTypeSet() argument 6063 SemaRef(SemaRef), in BuiltinCandidateTypeSet() 6064 Context(SemaRef.Context) { } in BuiltinCandidateTypeSet() 6233 Ty = SemaRef.Context.getArrayDecayedType(Ty); in AddTypesConvertedFrom() 6269 if (SemaRef.RequireCompleteType(Loc, Ty, 0)) in AddTypesConvertedFrom() 9471 DiagnoseTwoPhaseLookup(Sema &SemaRef, SourceLocation FnLoc, in DiagnoseTwoPhaseLookup() argument 9475 if (SemaRef.ActiveTemplateInstantiations.empty() || !SS.isEmpty()) in DiagnoseTwoPhaseLookup() 9478 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) { in DiagnoseTwoPhaseLookup() 9482 SemaRef.LookupQualifiedName(R, DC); in DiagnoseTwoPhaseLookup() [all …]
|
D | SemaStmtAsm.cpp | 347 static StringRef getSpelling(Sema &SemaRef, Token AsmTok) { in getSpelling() argument 352 Asm = SemaRef.PP.getSpelling(AsmTok, TokenBuf, &StringInvalid); in getSpelling() 419 static std::string buildMSAsmString(Sema &SemaRef, ArrayRef<Token> AsmToks, in buildMSAsmString() argument 449 Asm += getSpelling(SemaRef, AsmToks[i]); in buildMSAsmString()
|
D | Sema.cpp | 318 static bool ShouldRemoveFromUnused(Sema *SemaRef, const DeclaratorDecl *D) { in ShouldRemoveFromUnused() argument 327 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused() 333 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused() 341 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused() 347 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck); in ShouldRemoveFromUnused()
|
D | SemaTemplate.cpp | 491 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef, in translateTemplateArgument() argument 497 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI); in translateTemplateArgument() 499 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); in translateTemplateArgument() 517 SemaRef.Context), in translateTemplateArgument() 2555 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument 2570 = SemaRef.getTemplateInstantiationArgs(Template, &TemplateArgs); in SubstDefaultTemplateArgument() 2572 Sema::InstantiatingTemplate Inst(SemaRef, TemplateLoc, in SubstDefaultTemplateArgument() 2578 Sema::ContextRAII SavedContext(SemaRef, Template->getDeclContext()); in SubstDefaultTemplateArgument() 2579 ArgType = SemaRef.SubstType(ArgType, AllTemplateArgs, in SubstDefaultTemplateArgument() 2610 SubstDefaultTemplateArgument(Sema &SemaRef, in SubstDefaultTemplateArgument() argument [all …]
|
D | SemaType.cpp | 1787 Sema &SemaRef = state.getSema(); in GetDeclSpecTypeForDeclarator() local 1815 T = SemaRef.Context.VoidTy; in GetDeclSpecTypeForDeclarator() 1823 T = SemaRef.GetTypeFromParser(D.getName().ConversionFunctionId, in GetDeclSpecTypeForDeclarator() 1836 (!SemaRef.getLangOpts().CPlusPlus0x || !D.isFunctionDeclarator())) { in GetDeclSpecTypeForDeclarator() 1852 switch (cast<TagDecl>(SemaRef.CurContext)->getTagKind()) { in GetDeclSpecTypeForDeclarator() 1902 if (SemaRef.getLangOpts().CPlusPlus0x && Error != -1) { in GetDeclSpecTypeForDeclarator() 1918 SemaRef.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetDeclSpecTypeForDeclarator() 1921 T = SemaRef.Context.IntTy; in GetDeclSpecTypeForDeclarator() 1924 SemaRef.Diag(D.getDeclSpec().getTypeSpecTypeLoc(), in GetDeclSpecTypeForDeclarator() 1928 if (SemaRef.getLangOpts().CPlusPlus && in GetDeclSpecTypeForDeclarator() [all …]
|
D | SemaExpr.cpp | 9616 static void MakeObjCStringLiteralFixItHint(Sema& SemaRef, QualType DstType, in MakeObjCStringLiteralFixItHint() argument 9618 if (!SemaRef.getLangOpts().ObjC1) in MakeObjCStringLiteralFixItHint() 10038 TransformToPE(Sema &SemaRef) : BaseTransform(SemaRef) { } in TransformToPE() argument 10060 !SemaRef.isUnevaluatedContext()) in TransformDeclRefExpr() 10061 return SemaRef.Diag(E->getLocation(), in TransformDeclRefExpr() 10169 static bool IsPotentiallyEvaluatedContext(Sema &SemaRef) { in IsPotentiallyEvaluatedContext() argument 10172 if (SemaRef.CurContext->isDependentContext()) in IsPotentiallyEvaluatedContext() 10175 switch (SemaRef.ExprEvalContexts.back().Context) { in IsPotentiallyEvaluatedContext() 10806 static void MarkVarDeclODRUsed(Sema &SemaRef, VarDecl *Var, in MarkVarDeclODRUsed() argument 10810 if (Var->hasDefinition(SemaRef.Context) == VarDecl::DeclarationOnly && in MarkVarDeclODRUsed() [all …]
|
D | SemaTemplateDeduction.cpp | 3462 SubstituteAutoTransform(Sema &SemaRef, QualType Replacement) : in SubstituteAutoTransform() argument 3463 TreeTransform<SubstituteAutoTransform>(SemaRef), Replacement(Replacement) { in SubstituteAutoTransform()
|
/external/clang/include/clang/Sema/ |
D | Template.h | 187 Sema &SemaRef; 246 LocalInstantiationScope(Sema &SemaRef, bool CombineWithOuterScope = false) 247 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), in SemaRef() argument 251 SemaRef.CurrentInstantiationScope = this; in SemaRef() 258 const Sema &getSema() const { return SemaRef; } in getSema() 268 SemaRef.CurrentInstantiationScope = Outer; in Exit() 277 new LocalInstantiationScope(SemaRef, CombineWithOuterScope); in cloneScopes() 358 Sema &SemaRef; variable 373 TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, in TemplateDeclInstantiator() argument 375 : SemaRef(SemaRef), in TemplateDeclInstantiator() [all …]
|
D | Lookup.h | 129 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo, 135 SemaRef(SemaRef), in ResultKind() 149 LookupResult(Sema &SemaRef, DeclarationName Name, 155 SemaRef(SemaRef), in ResultKind() 173 SemaRef(Other.SemaRef), in LookupResult() 522 Sema &getSema() const { return SemaRef; } in getSema() 594 SemaRef.DiagnoseAmbiguousLookup(*this); in diagnose() 595 else if (isClassLookup() && SemaRef.getLangOpts().AccessControl) in diagnose() 596 SemaRef.CheckLookupAccess(*this); in diagnose() 634 Sema &SemaRef; variable
|
D | Sema.h | 766 Sema &SemaRef; variable 770 SemaDiagnosticBuilder(DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID) in SemaDiagnosticBuilder() argument 771 : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) { } in SemaDiagnosticBuilder() 790 SemaRef.EmitCurrentDiagnostic(DiagID); in ~SemaDiagnosticBuilder() 5638 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 5645 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 5651 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 5658 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 5668 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, 5674 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, [all …]
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 2358 void ASTWriter::WriteSelectors(Sema &SemaRef) { in WriteSelectors() argument 2362 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) in WriteSelectors() 2377 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); in WriteSelectors() 2383 if (F != SemaRef.MethodPool.end()) { in WriteSelectors() 2456 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { in WriteReferencedSelectorsPool() argument 2458 if (SemaRef.ReferencedSelectors.empty()) in WriteReferencedSelectorsPool() 2467 SemaRef.ReferencedSelectors.begin(), in WriteReferencedSelectorsPool() 2468 E = SemaRef.ReferencedSelectors.end(); S != E; ++S) { in WriteReferencedSelectorsPool() 2938 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { in WriteOpenCLExtensions() argument 2939 if (!SemaRef.Context.getLangOpts().OpenCL) in WriteOpenCLExtensions() [all …]
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 426 void WriteSelectors(Sema &SemaRef); 427 void WriteReferencedSelectorsPool(Sema &SemaRef); 436 void WriteOpenCLExtensions(Sema &SemaRef); 458 void WriteASTCore(Sema &SemaRef, MemorizeStatCalls *StatCalls, 481 void WriteAST(Sema &SemaRef, MemorizeStatCalls *StatCalls,
|
/external/clang/lib/ARCMigrate/ |
D | Internals.h | 145 Sema &SemaRef; variable 154 SemaRef(sema), TA(TA), in MigrationPass()
|
D | Transforms.cpp | 32 EnableCFBridgeFns = SemaRef.isKnownName("CFBridgingRetain") && in CFBridgingFunctionsDefined() 33 SemaRef.isKnownName("CFBridgingRelease"); in CFBridgingFunctionsDefined()
|