HomeSort by relevance Sort by last modified time
    Searched refs:SemaRef (Results 1 - 25 of 34) sorted by null

1 2

  /external/clang/include/clang/Sema/
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.CurrentInstantiationScope
    [all...]
SemaInternal.h 71 SourceLocation Loc, Sema &SemaRef,
75 if (Var->hasDefinition(SemaRef.Context) == VarDecl::DeclarationOnly &&
78 SourceLocation &old = SemaRef.UndefinedButUsed[Var->getCanonicalDecl()];
83 SemaRef.tryCaptureVariable(Var, Loc, Sema::TryCapture_Implicit,
89 Var->markUsed(SemaRef.Context);
109 TypoCorrectionConsumer(Sema &SemaRef,
117 SavedTCIndex(0), SemaRef(SemaRef), S(S),
120 Result(SemaRef, TypoName, LookupKind),
121 Namespaces(SemaRef.Context, SemaRef.CurContext, SS)
    [all...]
Lookup.h 129 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo,
135 SemaPtr(&SemaRef),
151 LookupResult(Sema &SemaRef, DeclarationName Name,
157 SemaPtr(&SemaRef),
333 static bool isVisible(Sema &SemaRef, NamedDecl *D) {
340 return isVisibleSlow(SemaRef, D);
356 static bool isVisibleSlow(Sema &SemaRef, NamedDecl *D);
  /external/clang/lib/Sema/
SemaTemplateInstantiateDecl.cpp 40 static bool SubstQualifier(Sema &SemaRef, const DeclT *OldDecl, DeclT *NewDecl,
49 SemaRef,
55 = SemaRef.SubstNestedNameSpecifierLoc(OldDecl->getQualifierLoc(),
67 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs);
72 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs);
444 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
458 = NamespaceAliasDecl::Create(SemaRef.Context, Owner,
475 DI = SemaRef.SubstType(DI, TemplateArgs,
479 DI = SemaRef.Context.getTrivialTypeSourceInfo(SemaRef.Context.IntTy)
    [all...]
SemaOpenMP.cpp 120 Sema &SemaRef;
132 explicit DSAStackTy(Sema &S) : Stack(1), SemaRef(S) {}
618 static VarDecl *buildVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type,
620 DeclContext *DC = SemaRef.CurContext;
621 IdentifierInfo *II = &SemaRef.PP.getIdentifierTable().get(Name);
622 TypeSourceInfo *TInfo = SemaRef.Context.getTrivialTypeSourceInfo(Type, Loc);
624 VarDecl::Create(SemaRef.Context, DC, Loc, Loc, II, Type, TInfo, SC_None);
654 SemaRef.getLangOpts().OpenMPUseTLS &&
655 SemaRef.getASTContext().getTargetInfo().isTLSSupported())) ||
658 addDSA(D, buildDeclRefExpr(SemaRef, VD, D->getType().getNonReferenceType()
    [all...]
SemaTemplateInstantiate.cpp 205 Sema &SemaRef, ActiveTemplateInstantiation::InstantiationKind Kind,
209 : SemaRef(SemaRef), SavedInNonInstantiationSFINAEContext(
210 SemaRef.InNonInstantiationSFINAEContext) {
213 if (SemaRef.Diags.hasFatalErrorOccurred()) {
228 SemaRef.InNonInstantiationSFINAEContext = false;
229 SemaRef.ActiveTemplateInstantiations.push_back(Inst);
231 ++SemaRef.NonInstantiationEntries;
236 Sema &SemaRef, SourceLocation PointOfInstantiation, Decl *Entity,
238 : InstantiatingTemplate(SemaRef,
    [all...]
SemaInit.cpp 238 Sema &SemaRef;
321 static ExprResult PerformEmptyInit(Sema &SemaRef,
376 ExprResult InitListChecker::PerformEmptyInit(Sema &SemaRef,
385 InitListExpr DummyInitList(SemaRef.Context, Loc, None, Loc);
391 bool EmptyInitList = SemaRef.getLangOpts().CPlusPlus11 &&
404 InitExpr = VerifyOnly ? &DummyInitList : new (SemaRef.Context)
405 InitListExpr(SemaRef.Context, Loc, None, Loc);
406 InitExpr->setType(SemaRef.Context.VoidTy);
414 InitializationSequence InitSeq(SemaRef, Entity, Kind, SubInit);
425 .BestViableFunction(SemaRef, Kind.getLocation(), Best)
    [all...]
SemaExprMember.cpp 33 static bool isProvablyNotDerivedFrom(Sema &SemaRef, CXXRecordDecl *Record,
89 static IMAKind ClassifyImplicitMemberAccess(Sema &SemaRef,
93 DeclContext *DC = SemaRef.getFunctionLevelDeclContext();
95 bool isStaticContext = SemaRef.CXXThisTypeOverride.isNull() &&
135 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...]
SemaStmt.cpp 495 Sema &SemaRef;
497 CommaVisitor(Sema &SemaRef) : Inherited(SemaRef.Context), SemaRef(SemaRef) {}
500 SemaRef.DiagnoseCommaOperator(E->getLHS(), E->getExprLoc());
    [all...]
SemaLookup.cpp     [all...]
SemaCodeComplete.cpp 123 Sema &SemaRef;
171 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator,
175 : SemaRef(SemaRef), Allocator(Allocator), CCTUInfo(CCTUInfo),
189 if (ObjCMethodDecl *Method = SemaRef.getCurMethodDecl())
206 return SemaRef.CodeCompleter &&
207 SemaRef.CodeCompleter->includeCodePatterns();
221 PreferredType = SemaRef.Context.getCanonicalType(T);
258 Sema &getSema() const { return SemaRef; }
497 static bool shouldIgnoreDueToReservedName(const NamedDecl *ND, Sema &SemaRef) {
    [all...]
TreeTransform.h 114 Sema &SemaRef;
123 TreeTransform(Sema &SemaRef) : SemaRef(SemaRef) { }
138 Sema &getSema() const { return SemaRef; }
149 bool AlwaysRebuild() { return SemaRef.ArgumentPackSubstitutionIndex != -1; }
570 return SemaRef.Context.getTrivialTypeSourceInfo(T,
    [all...]
CodeCompleteConsumer.cpp 432 PrintingCodeCompleteConsumer::ProcessCodeCompleteResults(Sema &SemaRef,
447 = Results[I].CreateCodeCompletionString(SemaRef, Context,
466 = Results[I].CreateCodeCompletionString(SemaRef, Context,
511 PrintingCodeCompleteConsumer::ProcessOverloadCandidates(Sema &SemaRef,
517 = Candidates[I].CreateSignatureString(CurrentArg, SemaRef,
SemaDeclCXX.cpp 764 static bool CheckConstexprParameterTypes(Sema &SemaRef,
774 SemaRef.RequireLiteralType(ParamLoc, *i,
    [all...]
SemaOverload.cpp     [all...]
SemaCoroutine.cpp 162 static ExprResult buildOperatorCoawaitCall(Sema &SemaRef, Scope *S,
165 SemaRef.LookupOverloadedOperatorName(OO_Coawait, S, E->getType(), QualType(),
167 return SemaRef.CreateOverloadedUnaryOp(Loc, UO_Coawait, Functions, E);
Sema.cpp 425 static bool ShouldRemoveFromUnused(Sema *SemaRef, const DeclaratorDecl *D) {
437 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck);
443 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck);
453 VD->isUsableInConstantExpressions(SemaRef->Context))
460 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck);
466 return !SemaRef->ShouldWarnIfUnusedFileScopedDecl(DeclToCheck);
    [all...]
SemaTemplate.cpp 500 static TemplateArgumentLoc translateTemplateArgument(Sema &SemaRef,
506 QualType T = SemaRef.GetTypeFromParser(Arg.getAsType(), &DI);
508 DI = SemaRef.Context.getTrivialTypeSourceInfo(T, Arg.getLocation());
526 SemaRef.Context),
544 static void maybeDiagnoseTemplateParameterShadow(Sema &SemaRef, Scope *S,
547 NamedDecl *PrevDecl = SemaRef.LookupSingleName(
550 SemaRef.DiagnoseTemplateParameterShadow(Loc, PrevDecl);
    [all...]
  /external/clang/include/clang/Serialization/
ModuleFileExtension.h 124 virtual void writeExtensionContents(Sema &SemaRef,
ASTWriter.h 456 void WriteSelectors(Sema &SemaRef);
457 void WriteReferencedSelectorsPool(Sema &SemaRef);
463 void WriteOpenCLExtensions(Sema &SemaRef);
465 void WriteLateParsedTemplates(Sema &SemaRef);
466 void WriteOptimizePragmaOptions(Sema &SemaRef);
467 void WriteMSStructPragmaOptions(Sema &SemaRef);
468 void WriteMSPointersToMembersPragmaOptions(Sema &SemaRef);
469 void WriteModuleFileExtension(Sema &SemaRef,
492 uint64_t WriteASTCore(Sema &SemaRef,
513 /// \param SemaRef a reference to the semantic analysis object that processe
    [all...]
  /external/clang/lib/Frontend/
TestModuleFileExtension.h 33 void writeExtensionContents(Sema &SemaRef,
TestModuleFileExtension.cpp 22 Sema &SemaRef,
  /external/clang/lib/ARCMigrate/
Internals.h 150 Sema &SemaRef;
161 SemaRef(sema), TA(TA), CapturedDiags(capturedDiags),
Transforms.cpp 34 EnableCFBridgeFns = SemaRef.isKnownName("CFBridgingRetain") &&
35 SemaRef.isKnownName("CFBridgingRelease");
215 return Pass.SemaRef.PP.isMacroDefined("nil") ? "nil" : "0";
  /external/clang/lib/Serialization/
ASTWriter.cpp     [all...]

Completed in 420 milliseconds

1 2