Home
last modified time | relevance | path

Searched refs:Sema (Results 1 – 25 of 109) sorted by relevance

12345

/external/clang/lib/Parse/
DParsePragma.h20 class Sema; variable
24 Sema &Actions;
26 explicit PragmaAlignHandler(Sema &A) : PragmaHandler("align"), Actions(A) {} in PragmaAlignHandler()
34 explicit PragmaGCCVisibilityHandler(Sema &/*A*/) in PragmaGCCVisibilityHandler() argument
42 Sema &Actions;
44 explicit PragmaOptionsHandler(Sema &A) : PragmaHandler("options"), in PragmaOptionsHandler()
52 Sema &Actions;
54 explicit PragmaPackHandler(Sema &A) : PragmaHandler("pack"), in PragmaPackHandler()
62 Sema &Actions;
64 explicit PragmaMSStructHandler(Sema &A) : PragmaHandler("ms_struct"), in PragmaMSStructHandler()
[all …]
DParsePragma.cpp41 Sema::PragmaPackKind Kind;
131 Sema::PragmaPackKind Kind = Sema::PPK_Default; in HandlePragma()
147 Kind = Sema::PPK_Push; in HandlePragma()
151 Kind = Sema::PPK_Show; in HandlePragma()
155 Kind = Sema::PPK_Push; in HandlePragma()
157 Kind = Sema::PPK_Pop; in HandlePragma()
201 Kind = Sema::PPK_Pop; in HandlePragma()
243 Sema::PragmaMSStructKind Kind = Sema::PMSST_OFF; in HandlePragma()
253 Kind = Sema::PMSST_ON; in HandlePragma()
273 static void ParseAlignPragma(Sema &Actions, Preprocessor &PP, Token &FirstTok, in ParseAlignPragma()
[all …]
DParseAST.cpp46 OwningPtr<Sema> S(new Sema(PP, Ctx, *Consumer, in ParseAST()
51 llvm::CrashRecoveryContextCleanupRegistrar<Sema> CleanupSema(S.get()); in ParseAST()
56 void clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies) { in ParseAST()
/external/clang/lib/Sema/
DSemaAttr.cpp109 void Sema::FreePackedContext() { in FreePackedContext()
114 void Sema::AddAlignmentAttributesForRecord(RecordDecl *RD) { in AddAlignmentAttributesForRecord()
132 void Sema::AddMsStructLayoutForRecord(RecordDecl *RD) { in AddMsStructLayoutForRecord()
138 void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind, in ActOnPragmaOptionsAlign()
148 if (Kind == Sema::POAK_Reset) { in ActOnPragmaOptionsAlign()
191 void Sema::ActOnPragmaPack(PragmaPackKind Kind, IdentifierInfo *Name, in ActOnPragmaPack()
221 case Sema::PPK_Default: // pack([n]) in ActOnPragmaPack()
225 case Sema::PPK_Show: // pack(show) in ActOnPragmaPack()
238 case Sema::PPK_Push: // pack(push [, id] [, [n]) in ActOnPragmaPack()
245 case Sema::PPK_Pop: // pack(pop [, id] [, n]) in ActOnPragmaPack()
[all …]
DSemaTemplateDeduction.cpp82 static Sema::TemplateDeductionResult
83 DeduceTemplateArguments(Sema &S,
114 static Sema::TemplateDeductionResult
115 DeduceTemplateArgumentsByTypeMatch(Sema &S,
127 static Sema::TemplateDeductionResult
128 DeduceTemplateArguments(Sema &S,
295 static Sema::TemplateDeductionResult
296 DeduceNonTypeTemplateArgument(Sema &S, in DeduceNonTypeTemplateArgument()
314 return Sema::TDK_Inconsistent; in DeduceNonTypeTemplateArgument()
318 return Sema::TDK_Success; in DeduceNonTypeTemplateArgument()
[all …]
DSemaAccess.cpp39 bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl, in SetMemberAccessSpecifier()
205 const CXXRecordDecl *resolveInstanceContext(Sema &S) const { in resolveInstanceContext()
317 static bool MightInstantiateTo(Sema &S, DeclContext *Context, in MightInstantiateTo()
337 static bool MightInstantiateTo(Sema &S, CanQualType Context, CanQualType Friend) { in MightInstantiateTo()
348 static bool MightInstantiateTo(Sema &S, in MightInstantiateTo()
388 static bool MightInstantiateTo(Sema &S, in MightInstantiateTo()
396 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
418 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
433 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
486 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
[all …]
DTargetAttributesSema.cpp25 const AttributeList &Attr, Sema &S) const { in ProcessDeclAttribute()
30 const AttributeList &Attr, Sema &S) { in HandleMSP430InterruptAttr()
64 const AttributeList &Attr, Sema &S) const { in ProcessDeclAttribute()
75 Sema &S) { in HandleMBlazeInterruptHandlerAttr()
90 Sema &S) { in HandleMBlazeSaveVolatilesAttr()
110 Sema &S) const { in ProcessDeclAttribute()
125 Sema &S) { in HandleX86ForceAlignArgPointerAttr()
154 DLLImportAttr *Sema::mergeDLLImportAttr(Decl *D, SourceRange Range) { in mergeDLLImportAttr()
166 static void HandleDLLImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { in HandleDLLImportAttr()
197 DLLExportAttr *Sema::mergeDLLExportAttr(Decl *D, SourceRange Range) { in mergeDLLExportAttr()
[all …]
DSema.cpp62 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy()
77 void Sema::ActOnTranslationUnitScope(Scope *S) { in ActOnTranslationUnitScope()
84 Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, in Sema() function in Sema
130 void Sema::Initialize() { in Initialize()
187 Sema::~Sema() { in ~Sema()
212 bool Sema::makeUnavailableInSystemHeader(SourceLocation loc, in makeUnavailableInSystemHeader()
233 ASTMutationListener *Sema::getASTMutationListener() const { in getASTMutationListener()
238 void Sema::PrintStats() const { in PrintStats()
249 ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, in ImpCastExprToType()
302 CastKind Sema::ScalarTypeToBooleanCastKind(QualType ScalarTy) { in ScalarTypeToBooleanCastKind()
[all …]
DSemaCast.cpp48 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
62 Sema &Self;
120 void checkObjCARCConversion(Sema::CheckedConversionKind CCK) { in checkObjCARCConversion()
125 Sema::ACR_unbridged) in checkObjCARCConversion()
143 static bool CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType,
157 static TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr,
162 static TryCastResult TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr,
168 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
174 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
181 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
[all …]
DSemaStmt.cpp38 StmtResult Sema::ActOnExprStmt(FullExprArg expr) { in ActOnExprStmt()
52 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt()
57 StmtResult Sema::ActOnDeclStmt(DeclGroupPtrTy dg, SourceLocation StartLoc, in ActOnDeclStmt()
67 void Sema::ActOnForEachDeclStmt(DeclGroupPtrTy dg) { in ActOnForEachDeclStmt()
102 static bool DiagnoseUnusedComparison(Sema &S, const Expr *E) { in DiagnoseUnusedComparison()
148 void Sema::DiagnoseUnusedExprResult(const Stmt *S) { in DiagnoseUnusedExprResult()
248 void Sema::ActOnStartOfCompoundStmt() { in ActOnStartOfCompoundStmt()
252 void Sema::ActOnFinishOfCompoundStmt() { in ActOnFinishOfCompoundStmt()
256 sema::CompoundScopeInfo &Sema::getCurCompoundScope() const { in getCurCompoundScope()
261 Sema::ActOnCompoundStmt(SourceLocation L, SourceLocation R, in ActOnCompoundStmt()
[all …]
DSemaDeclAttr.cpp201 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr, in checkAttributeNumArgs()
214 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr, in checkAttributeAtLeastNumArgs()
228 static bool checkFunctionOrMethodArgumentIndex(Sema &S, const Decl *D, in checkFunctionOrMethodArgumentIndex()
293 static bool threadSafetyCheckIsSmartPointer(Sema &S, const RecordType* RT) { in threadSafetyCheckIsSmartPointer()
310 static bool threadSafetyCheckIsPointer(Sema &S, const Decl *D, in threadSafetyCheckIsPointer()
362 static void checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr, in checkForLockableRecord()
403 static void checkAttrArgsAreLockableObjs(Sema &S, Decl *D, in checkAttrArgsAreLockableObjs()
485 static bool checkGuardedVarAttrCommon(Sema &S, Decl *D, in checkGuardedVarAttrCommon()
502 static void handleGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) { in handleGuardedVarAttr()
509 static void handlePtGuardedVarAttr(Sema &S, Decl *D, in handlePtGuardedVarAttr()
[all …]
DSemaTemplateVariadic.cpp198 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc, in DiagnoseUnexpandedParameterPacks()
250 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, in DiagnoseUnexpandedParameterPack()
266 bool Sema::DiagnoseUnexpandedParameterPack(Expr *E, in DiagnoseUnexpandedParameterPack()
280 bool Sema::DiagnoseUnexpandedParameterPack(const CXXScopeSpec &SS, in DiagnoseUnexpandedParameterPack()
297 bool Sema::DiagnoseUnexpandedParameterPack(const DeclarationNameInfo &NameInfo, in DiagnoseUnexpandedParameterPack()
332 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, in DiagnoseUnexpandedParameterPack()
346 bool Sema::DiagnoseUnexpandedParameterPack(TemplateArgumentLoc Arg, in DiagnoseUnexpandedParameterPack()
359 void Sema::collectUnexpandedParameterPacks(TemplateArgument Arg, in collectUnexpandedParameterPacks()
365 void Sema::collectUnexpandedParameterPacks(TemplateArgumentLoc Arg, in collectUnexpandedParameterPacks()
371 void Sema::collectUnexpandedParameterPacks(QualType T, in collectUnexpandedParameterPacks()
[all …]
DSemaOverload.cpp41 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, bool HadMultipleCandidates, in CreateFunctionRefExpr()
55 static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
61 static bool IsTransparentUnionStandardConversion(Sema &S, Expr* From,
67 IsUserDefinedConversion(Sema &S, Expr *From, QualType ToType,
74 CompareStandardConversionSequences(Sema &S,
79 CompareQualificationConversions(Sema &S,
84 CompareDerivedToBaseConversions(Sema &S,
550 Sema::TemplateDeductionResult TDK, in MakeDeductionFailureInfo()
557 case Sema::TDK_Success: in MakeDeductionFailureInfo()
558 case Sema::TDK_InstantiationDepth: in MakeDeductionFailureInfo()
[all …]
DSemaDeclCXX.cpp57 Sema *S;
60 CheckDefaultArgumentVisitor(Expr *defarg, Sema *s) in CheckDefaultArgumentVisitor()
129 void Sema::ImplicitExceptionSpecification::CalledDecl(SourceLocation CallLoc, in CalledDecl()
200 void Sema::ImplicitExceptionSpecification::CalledExpr(Expr *E) { in CalledExpr()
230 Sema::SetParamDefaultArgument(ParmVarDecl *Param, Expr *Arg, in SetParamDefaultArgument()
279 Sema::ActOnParamDefaultArgument(Decl *param, SourceLocation EqualLoc, in ActOnParamDefaultArgument()
315 void Sema::ActOnParamUnparsedDefaultArgument(Decl *param, in ActOnParamUnparsedDefaultArgument()
330 void Sema::ActOnParamDefaultArgumentError(Decl *param) { in ActOnParamDefaultArgumentError()
346 void Sema::CheckExtraCXXDefaultArguments(Declarator &D) { in CheckExtraCXXDefaultArguments()
380 bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old, in MergeCXXFunctionDecl()
[all …]
DSemaExpr.cpp50 bool Sema::CanUseDecl(NamedDecl *D) { in CanUseDecl()
69 static void DiagnoseUnusedOfDecl(Sema &S, NamedDecl *D, SourceLocation Loc) { in DiagnoseUnusedOfDecl()
78 static AvailabilityResult DiagnoseAvailabilityOfDecl(Sema &S, in DiagnoseAvailabilityOfDecl()
121 void Sema::NoteDeletedFunction(FunctionDecl *Decl) { in NoteDeletedFunction()
162 static void diagnoseUseOfInternalDeclInInlineFunction(Sema &S, in diagnoseUseOfInternalDeclInInlineFunction()
225 bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc, in DiagnoseUseOfDecl()
272 std::string Sema::getDeletedOrUnavailableSuffix(const FunctionDecl *FD) { in getDeletedOrUnavailableSuffix()
290 void Sema::DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc, in DiagnoseSentinelCalls()
381 SourceRange Sema::getExprRange(Expr *E) const { in getExprRange()
390 ExprResult Sema::DefaultFunctionArrayConversion(Expr *E) { in DefaultFunctionArrayConversion()
[all …]
DSemaCXXScopeSpec.cpp61 DeclContext *Sema::computeDeclContext(QualType T) { in computeDeclContext()
82 DeclContext *Sema::computeDeclContext(const CXXScopeSpec &SS, in computeDeclContext()
163 bool Sema::isDependentScopeSpecifier(const CXXScopeSpec &SS) { in isDependentScopeSpecifier()
175 bool Sema::isUnknownSpecialization(const CXXScopeSpec &SS) { in isUnknownSpecialization()
189 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf()
209 bool Sema::RequireCompleteDeclContext(CXXScopeSpec &SS, in RequireCompleteDeclContext()
264 bool Sema::ActOnCXXGlobalScopeSpecifier(Scope *S, SourceLocation CCLoc, in ActOnCXXGlobalScopeSpecifier()
272 bool Sema::isAcceptableNestedNameSpecifier(NamedDecl *SD) { in isAcceptableNestedNameSpecifier()
304 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope()
329 bool Sema::isNonTypeNestedNameSpecifier(Scope *S, CXXScopeSpec &SS, in isNonTypeNestedNameSpecifier()
[all …]
DSemaDeclObjC.cpp41 bool Sema::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod()
111 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride()
196 static bool CheckARCMethodDecl(Sema &S, ObjCMethodDecl *method) { in CheckARCMethodDecl()
257 static void DiagnoseObjCImplementedDeprecations(Sema &S, in DiagnoseObjCImplementedDeprecations()
273 void Sema::AddAnyMethodToGlobalPool(Decl *D) { in AddAnyMethodToGlobalPool()
289 StrongPointerToObjCPointer(Sema &S, ParmVarDecl *Param) { in StrongPointerToObjCPointer()
307 void Sema::ActOnStartOfObjCMethodDef(Scope *FnBodyScope, Decl *D) { in ActOnStartOfObjCMethodDef()
426 Decl *Sema::
558 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias()
606 bool Sema::CheckForwardProtocolDeclarationForCircularDependency( in CheckForwardProtocolDeclarationForCircularDependency()
[all …]
DSemaTemplateInstantiate.cpp51 Sema::getTemplateInstantiationArgs(NamedDecl *D, in getTemplateInstantiationArgs()
153 bool Sema::ActiveTemplateInstantiation::isInstantiationRecord() const { in isInstantiationRecord()
171 Sema::InstantiatingTemplate::
172 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
194 Sema::InstantiatingTemplate::
195 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
217 Sema::InstantiatingTemplate::
218 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
242 Sema::InstantiatingTemplate::
243 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
[all …]
DSemaExprCXX.cpp40 ParsedType Sema::getDestructorName(SourceLocation TildeLoc, in getDestructorName()
272 ParsedType Sema::getDestructorType(const DeclSpec& DS, ParsedType ObjectType) { in getDestructorType()
289 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
312 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
368 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXTypeid()
434 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
450 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
467 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof()
501 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) { in ActOnCXXBoolLiteral()
510 Sema::ActOnCXXNullPtrLiteral(SourceLocation Loc) { in ActOnCXXNullPtrLiteral()
[all …]
DSemaCodeComplete.cpp122 Sema &SemaRef;
170 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, in ResultBuilder()
254 Sema &getSema() const { return SemaRef; } in getSema()
1292 static void AddStorageSpecifiers(Sema::ParserCompletionContext CCC, in AddStorageSpecifiers()
1303 static void AddFunctionSpecifiers(Sema::ParserCompletionContext CCC, in AddFunctionSpecifiers()
1308 case Sema::PCC_Class: in AddFunctionSpecifiers()
1309 case Sema::PCC_MemberTemplate: in AddFunctionSpecifiers()
1318 case Sema::PCC_ObjCInterface: in AddFunctionSpecifiers()
1319 case Sema::PCC_ObjCImplementation: in AddFunctionSpecifiers()
1320 case Sema::PCC_Namespace: in AddFunctionSpecifiers()
[all …]
DSemaLookup.cpp212 static inline unsigned getIDNS(Sema::LookupNameKind NameKind, in getIDNS()
217 case Sema::LookupObjCImplicitSelfParam: in getIDNS()
218 case Sema::LookupOrdinaryName: in getIDNS()
219 case Sema::LookupRedeclarationWithLinkage: in getIDNS()
228 case Sema::LookupOperatorName: in getIDNS()
235 case Sema::LookupTagName: in getIDNS()
250 case Sema::LookupLabel: in getIDNS()
254 case Sema::LookupMemberName: in getIDNS()
260 case Sema::LookupNestedNameSpecifierName: in getIDNS()
264 case Sema::LookupNamespaceName: in getIDNS()
[all …]
/external/clang/lib/AST/
DCommentSema.cpp25 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, in Sema() function in clang::comments::Sema
31 void Sema::setDecl(const Decl *D) { in setDecl()
40 ParagraphComment *Sema::actOnParagraphComment( in actOnParagraphComment()
45 BlockCommandComment *Sema::actOnBlockCommandStart(SourceLocation LocBegin, in actOnBlockCommandStart()
51 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command, in actOnBlockCommandArgs()
56 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command, in actOnBlockCommandFinish()
64 ParamCommandComment *Sema::actOnParamCommandStart(SourceLocation LocBegin, in actOnParamCommandStart()
78 void Sema::actOnParamCommandDirectionArg(ParamCommandComment *Command, in actOnParamCommandDirectionArg()
133 void Sema::actOnParamCommandParamNameArg(ParamCommandComment *Command, in actOnParamCommandParamNameArg()
151 void Sema::actOnParamCommandFinish(ParamCommandComment *Command, in actOnParamCommandFinish()
[all …]
/external/clang/include/clang/Sema/
DLookup.h129 LookupResult(Sema &SemaRef, const DeclarationNameInfo &NameInfo,
130 Sema::LookupNameKind LookupKind,
131 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration)
139 Redecl(Redecl != Sema::NotForRedeclaration), in ResultKind()
141 Diagnose(Redecl == Sema::NotForRedeclaration) in ResultKind()
149 LookupResult(Sema &SemaRef, DeclarationName Name,
150 SourceLocation NameLoc, Sema::LookupNameKind LookupKind,
151 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration)
159 Redecl(Redecl != Sema::NotForRedeclaration), in ResultKind()
161 Diagnose(Redecl == Sema::NotForRedeclaration) in ResultKind()
[all …]
DSemaFixItUtils.h28 class Sema; variable
37 Sema &S,
54 Sema &S,
78 Sema &S);
DPrettyDeclStackTrace.h25 class Sema; variable
32 Sema &S;
38 PrettyDeclStackTraceEntry(Sema &S, Decl *D, SourceLocation Loc, in PrettyDeclStackTraceEntry()

12345