| /src/external/apache2/llvm/dist/clang/lib/Sema/ |
| SemaTemplateInstantiateDecl.cpp | 45 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl, 54 SemaRef, 60 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(), 72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); 77 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); 818 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(), 832 = NamespaceAliasDecl::Create(SemaRef.Context, Owner, 849 DI = SemaRef.SubstType(DI, TemplateArgs, 853 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy) [all...] |
| SemaOpenMP.cpp | 50 Sema &SemaRef, Expr *E, 212 Sema &SemaRef; 315 explicit DSAStackTy(Sema &S) : SemaRef(S) {} 445 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); 458 for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) { 654 SemaRef.Diag(CNew->getBeginLoc(), 657 SemaRef.Diag(CPrev->getBeginLoc(), 1395 static VarDecl *buildVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, 1398 DeclContext *DC = SemaRef.CurContext; 1399 IdentifierInfo *II = &SemaRef.PP.getIdentifierTable().get(Name) [all...] |
| SemaTemplateInstantiate.cpp | 236 Sema &SemaRef, CodeSynthesisContext::SynthesisKind Kind, 240 : SemaRef(SemaRef) { 244 if (SemaRef.Diags.hasFatalErrorOccurred() && 245 SemaRef.hasUncompilableErrorOccurred()) { 260 SemaRef.pushCodeSynthesisContext(Inst); 263 !SemaRef.InstantiatingSpecializations 266 atTemplateBegin(SemaRef.TemplateInstCallbacks, SemaRef, Inst); 271 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity [all...] |
| SemaAvailability.cpp | 652 Sema &SemaRef; 663 DiagnoseUnguardedAvailability(Sema &SemaRef, Decl *Ctx) 664 : SemaRef(SemaRef), Ctx(Ctx) { 666 SemaRef.Context.getTargetInfo().getPlatformMinVersion()); 727 SemaRef.Diag(E->getBeginLoc(), diag::warn_at_available_unchecked_use) 728 << (!SemaRef.getLangOpts().ObjC); 740 ShouldDiagnoseAvailabilityOfDecl(SemaRef, D, nullptr, ReceiverClass); 748 getAttrForPlatform(SemaRef.getASTContext(), OffendingDecl); 756 if (!ShouldDiagnoseAvailabilityInContext(SemaRef, Result, Introduced, Ctx [all...] |
| SemaExprMember.cpp | 32 static bool isProvablyNotDerivedFrom(Sema &SemaRef, CXXRecordDecl *Record, 88 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef, 92 DeclContext *DC = SemaRef.getFunctionLevelDeclContext(); 94 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() && 134 switch (SemaRef.ExprEvalContexts.back().Context) { 137 if (isField && SemaRef.getLangOpts().CPlusPlus11) 187 if (isProvablyNotDerivedFrom(SemaRef, contextClass, Classes)) 196 static void diagnoseInstanceReference(Sema &SemaRef, 207 DeclContext *FunctionLevelDC = SemaRef.getFunctionLevelDeclContext(); 217 SemaRef.Diag(Loc, diag::err_invalid_member_use_in_static_method [all...] |
| SemaInit.cpp | 286 Sema &SemaRef; 296 DummyExpr = new (SemaRef.Context) NoInitExpr(SemaRef.Context.VoidTy); 388 unsigned DiagID = SemaRef.getLangOpts().CPlusPlus 392 if (InOverloadResolution && SemaRef.getLangOpts().CPlusPlus) { 432 SemaRef.Diag(NewInitRange.getBegin(), DiagID) 434 SemaRef.Diag(OldInit->getBeginLoc(), diag::note_previous_initializer) 435 << (OldInit->HasSideEffects(SemaRef.Context) && FullyOverwritten) 496 InitListExpr DummyInitList(SemaRef.Context, Loc, None, Loc); 502 bool EmptyInitList = SemaRef.getLangOpts().CPlusPlus11 & [all...] |
| TreeTransform.h | 120 Sema &SemaRef; 129 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { } 144 Sema &getSema() const { return SemaRef; } 155 bool AlwaysRebuild() { return SemaRef.ArgumentPackSubstitutionIndex != -1; } 630 return SemaRef.Context.getTrivialTypeSourceInfo(T, 938 return SemaRef.Context.getTypeDeclType(Typedef); 944 return SemaRef.Context.getMacroQualifiedType(T, MacroII); 949 return SemaRef.Context.getTypeDeclType(Record) [all...] |
| SemaLookup.cpp | 93 Sema &SemaRef; 101 UnqualUsingDirectiveSet(Sema &SemaRef) : SemaRef(SemaRef) {} 120 if (SemaRef.isVisible(I)) 160 if (SemaRef.isVisible(UD) && visited.insert(NS).second) { 1678 bool LookupResult::isVisibleSlow(Sema &SemaRef, NamedDecl *D) { 1682 Module *DeclModule = SemaRef.getOwningModule(D); 1686 if (SemaRef.isModuleVisible(DeclModule, D->isModulePrivate())) 1719 VisibleWithinParent = SemaRef.hasVisibleDefinition(cast<NamedDecl>(DC)) [all...] |
| CodeCompleteConsumer.cpp | 536 Sema &SemaRef, CodeCompletionContext Context, CodeCompletionResult *Results, 544 StringRef Filter = SemaRef.getPreprocessor().getCodeCompletionFilter(); 566 SemaRef, Context, getAllocator(), CCTUInfo, 581 SemaRef, Context, getAllocator(), CCTUInfo, 595 SourceManager &SM = SemaRef.SourceMgr; 600 EInfo.second += Lexer::MeasureTokenLength(ELoc, SM, SemaRef.LangOpts); 645 Sema &SemaRef, unsigned CurrentArg, OverloadCandidate *Candidates, 648 OpenParLoc.print(OS, SemaRef.getSourceManager()); 653 CurrentArg, SemaRef, getAllocator(), CCTUInfo,
|
| SemaStmt.cpp | 850 Sema &SemaRef; 852 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {} 855 SemaRef.DiagnoseCommaOperator(E->getLHS(), E->getExprLoc()); 2327 static bool FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, 2330 ExprResult Res = SemaRef.CorrectDelayedTyposInExpr(Init); 2342 SemaRef.DeduceAutoType(Decl->getTypeSourceInfo(), Init, InitType) == 2344 SemaRef.Diag(Loc, DiagID) << Init->getType() [all...] |
| SemaCodeComplete.cpp | 153 Sema &SemaRef; 208 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, 212 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo), 224 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl()) 241 return SemaRef.CodeCompleter && 242 SemaRef.CodeCompleter->includeCodePatterns(); 254 PreferredType = SemaRef.Context.getCanonicalType(T); 290 Sema &getSema() const { return SemaRef; } 741 static bool shouldIgnoreDueToReservedName(const NamedDecl *ND, Sema &SemaRef) { [all...] |
| SemaDeclCXX.cpp | 1633 static bool CheckLiteralType(Sema &SemaRef, Sema::CheckConstexprKind Kind, 1641 return SemaRef.RequireLiteralType(Loc, T, DiagID, 1645 return !T->isLiteralType(SemaRef.Context); 1652 static bool CheckConstexprDestructorSubobjects(Sema &SemaRef, 1662 SemaRef.Diag(DD->getLocation(), diag::err_constexpr_dtor_subobject) 1665 SemaRef.Diag(Loc, diag::note_constexpr_dtor_subobject) 1683 static bool CheckConstexprParameterTypes(Sema &SemaRef, 1693 if (CheckLiteralType(SemaRef, Kind, ParamLoc, *i, 1704 static bool CheckConstexprReturnType(Sema &SemaRef, const FunctionDecl *FD, 1706 if (CheckLiteralType(SemaRef, Kind, FD->getLocation(), FD->getReturnType() [all...] |
| SemaTemplate.cpp | 918 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef, 924 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI); 926 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation()); 943 SemaRef.Context, TArg, 944 Arg.getScopeSpec().getWithLocInContext(SemaRef.Context), 961 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S, 964 NamedDecl *PrevDecl = SemaRef.LookupSingleName( 967 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl); 2092 Sema &SemaRef, 2094 : Base(SemaRef), MaterializedTypedefs(MaterializedTypedefs) { [all...] |
| SemaExprCXX.cpp | 681 getUuidAttrOfType(Sema &SemaRef, QualType QT, 705 getUuidAttrOfType(SemaRef, TA.getAsType(), UuidAttrs); 707 getUuidAttrOfType(SemaRef, TA.getAsDecl()->getType(), UuidAttrs); 3384 DiagnoseMismatchedNewDelete(Sema &SemaRef, SourceLocation DeleteLoc, 3386 SourceLocation EndOfDelete = SemaRef.getLocForEndOfToken(DeleteLoc); 3392 DeleteLoc, tok::l_square, SemaRef.getSourceManager(), 3393 SemaRef.getLangOpts(), true); 3397 SemaRef.Diag(DeleteLoc, diag::warn_mismatched_delete_new) 3401 SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here) 7384 canRecoverDotPseudoDestructorCallsOnPointerObjects(Sema &SemaRef, [all...] |
| SemaCoroutine.cpp | 254 static ExprResult buildOperatorCoawaitLookupExpr(Sema &SemaRef, Scope *S, 257 SemaRef.Context.DeclarationNames.getCXXOperatorName(OO_Coawait); 258 LookupResult Operators(SemaRef, OpName, SourceLocation(), 260 SemaRef.LookupName(Operators, S); 268 SemaRef.Context, /*NamingClass*/ nullptr, NestedNameSpecifierLoc(), 277 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, SourceLocation Loc, 282 return SemaRef.CreateOverloadedUnaryOp(Loc, UO_Coawait, Functions, E); 285 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S, 287 ExprResult R = buildOperatorCoawaitLookupExpr(SemaRef, S, Loc); 290 return buildOperatorCoawaitCall(SemaRef, Loc, E [all...] |
| SemaOverload.cpp | 5890 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From, 5897 Converter.diagnoseAmbiguous(SemaRef, Loc, T) << From->getSourceRange(); 5902 Converter.noteAmbiguous(SemaRef, Conv, ConvTy); 5908 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From, 5921 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy()); 5923 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy) 5927 SemaRef.getLocForEndOfToken(From->getEndLoc()), ")"); 5928 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy); 5932 if (SemaRef.isSFINAEContext()) 5935 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found) [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| Template.h | 278 Sema &SemaRef; 333 LocalInstantiationScope(Sema &SemaRef, bool CombineWithOuterScope = false) 334 : SemaRef(SemaRef), Outer(SemaRef.CurrentInstantiationScope), 336 SemaRef.CurrentInstantiationScope = this; 347 const Sema &getSema() const { return SemaRef; } 357 SemaRef.CurrentInstantiationScope = Outer; 366 // Save the current scope from SemaRef since the LocalInstantiationScope 368 LocalInstantiationScope *oldScope = SemaRef.CurrentInstantiationScope [all...] |
| SemaInternal.h | 91 TypoCorrectionConsumer(Sema &SemaRef, 99 SavedTCIndex(0), SemaRef(SemaRef), S(S), 102 Result(SemaRef, TypoName, LookupKind), 103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS), 201 ASTContext &getContext() const { return SemaRef.Context; } 309 Sema &SemaRef;
|
| Lookup.h | 145 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo, 148 : SemaPtr(&SemaRef), NameInfo(NameInfo), LookupKind(LookupKind), 158 LookupResult(Sema &SemaRef, DeclarationName Name, 161 : SemaPtr(&SemaRef), NameInfo(Name, NameLoc), LookupKind(LookupKind), 349 static bool isVisible(Sema &SemaRef, NamedDecl *D) { 356 return isVisibleSlow(SemaRef, D); 372 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
|
| /src/external/apache2/llvm/dist/clang/include/clang/Serialization/ |
| ASTWriter.h | 505 void WriteSelectors(Sema &SemaRef); 506 void WriteReferencedSelectorsPool(Sema &SemaRef); 512 void WriteOpenCLExtensions(Sema &SemaRef); 513 void WriteCUDAPragmas(Sema &SemaRef); 515 void WriteLateParsedTemplates(Sema &SemaRef); 516 void WriteOptimizePragmaOptions(Sema &SemaRef); 517 void WriteMSStructPragmaOptions(Sema &SemaRef); 518 void WriteMSPointersToMembersPragmaOptions(Sema &SemaRef); 519 void WritePackPragmaOptions(Sema &SemaRef); 520 void WriteFloatControlPragmaOptions(Sema &SemaRef); [all...] |
| ModuleFileExtension.h | 130 virtual void writeExtensionContents(Sema &SemaRef,
|
| /src/external/apache2/llvm/dist/clang/lib/Frontend/ |
| TestModuleFileExtension.h | 33 void writeExtensionContents(Sema &SemaRef,
|
| TestModuleFileExtension.cpp | 23 Sema &SemaRef,
|
| /src/external/apache2/llvm/dist/clang/lib/Serialization/ |
| ASTWriter.cpp | 3100 void ASTWriter::WriteSelectors(Sema &SemaRef) { 3104 if (SemaRef.MethodPool.empty() && SelectorIDs.empty()) 3118 Sema::GlobalMethodPool::iterator F = SemaRef.MethodPool.find(S); 3124 if (F != SemaRef.MethodPool.end()) { 3200 void ASTWriter::WriteReferencedSelectorsPool(Sema &SemaRef) { 3203 if (SemaRef.ReferencedSelectors.empty()) 3212 for (auto &SelectorAndLocation : SemaRef.ReferencedSelectors) { 3950 void ASTWriter::WriteOpenCLExtensions(Sema &SemaRef) { 3951 if (!SemaRef.Context.getLangOpts().OpenCL) 3954 const OpenCLOptions &Opts = SemaRef.getOpenCLOptions() [all...] |
| /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/ |
| Internals.h | 151 Sema &SemaRef; 162 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags),
|