Home
last modified time | relevance | path

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

12345

/trueos/contrib/llvm/tools/clang/lib/Sema/
HDSemaTemplateDeduction.cpp86 static Sema::TemplateDeductionResult
87 DeduceTemplateArguments(Sema &S,
118 static Sema::TemplateDeductionResult
119 DeduceTemplateArgumentsByTypeMatch(Sema &S,
131 static Sema::TemplateDeductionResult
132 DeduceTemplateArguments(Sema &S,
315 static Sema::TemplateDeductionResult
316 DeduceNonTypeTemplateArgument(Sema &S, in DeduceNonTypeTemplateArgument()
334 return Sema::TDK_Inconsistent; in DeduceNonTypeTemplateArgument()
338 return Sema::TDK_Success; in DeduceNonTypeTemplateArgument()
[all …]
HDSemaAttr.cpp110 void Sema::FreePackedContext() { in FreePackedContext()
115 void Sema::AddAlignmentAttributesForRecord(RecordDecl *RD) { in AddAlignmentAttributesForRecord()
133 void Sema::AddMsStructLayoutForRecord(RecordDecl *RD) { in AddMsStructLayoutForRecord()
139 void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind, in ActOnPragmaOptionsAlign()
185 void Sema::ActOnPragmaPack(PragmaPackKind Kind, IdentifierInfo *Name, in ActOnPragmaPack()
215 case Sema::PPK_Default: // pack([n]) in ActOnPragmaPack()
219 case Sema::PPK_Show: // pack(show) in ActOnPragmaPack()
232 case Sema::PPK_Push: // pack(push [, id] [, [n]) in ActOnPragmaPack()
239 case Sema::PPK_Pop: // pack(pop [, id] [, n]) in ActOnPragmaPack()
263 void Sema::ActOnPragmaMSStruct(PragmaMSStructKind Kind) { in ActOnPragmaMSStruct()
[all …]
HDSemaAccess.cpp39 bool Sema::SetMemberAccessSpecifier(NamedDecl *MemberDecl, in SetMemberAccessSpecifier()
205 const CXXRecordDecl *resolveInstanceContext(Sema &S) const { in resolveInstanceContext()
325 static bool MightInstantiateTo(Sema &S, DeclContext *Context, in MightInstantiateTo()
345 static bool MightInstantiateTo(Sema &S, CanQualType Context, CanQualType Friend) { in MightInstantiateTo()
356 static bool MightInstantiateTo(Sema &S, in MightInstantiateTo()
396 static bool MightInstantiateTo(Sema &S, in MightInstantiateTo()
404 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
426 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
441 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
494 static AccessResult MatchesFriend(Sema &S, in MatchesFriend()
[all …]
HDSema.cpp47 PrintingPolicy Sema::getPrintingPolicy(const ASTContext &Context, in getPrintingPolicy()
63 void Sema::ActOnTranslationUnitScope(Scope *S) { in ActOnTranslationUnitScope()
70 Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, in Sema() function in Sema
123 void Sema::Initialize() { in Initialize()
180 Sema::~Sema() { in ~Sema()
216 bool Sema::makeUnavailableInSystemHeader(SourceLocation loc, in makeUnavailableInSystemHeader()
237 ASTMutationListener *Sema::getASTMutationListener() const { in getASTMutationListener()
246 void Sema::addExternalSource(ExternalSemaSource *E) { in addExternalSource()
263 void Sema::PrintStats() const { in PrintStats()
274 ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, in ImpCastExprToType()
[all …]
HDTargetAttributesSema.cpp25 const AttributeList &Attr, Sema &S) const { in ProcessDeclAttribute()
30 const AttributeList &Attr, Sema &S) { in HandleARMInterruptAttr()
63 const AttributeList &Attr, Sema &S) const { in ProcessDeclAttribute()
74 const AttributeList &Attr, Sema &S) { in HandleMSP430InterruptAttr()
110 const AttributeList &Attr, Sema &S) const { in ProcessDeclAttribute()
122 Sema &S) { in HandleX86ForceAlignArgPointerAttr()
152 DLLImportAttr *Sema::mergeDLLImportAttr(Decl *D, SourceRange Range, in mergeDLLImportAttr()
175 static void HandleDLLImportAttr(Decl *D, const AttributeList &Attr, Sema &S) { in HandleDLLImportAttr()
208 DLLExportAttr *Sema::mergeDLLExportAttr(Decl *D, SourceRange Range, in mergeDLLExportAttr()
222 static void HandleDLLExportAttr(Decl *D, const AttributeList &Attr, Sema &S) { in HandleDLLExportAttr()
[all …]
HDSemaStmt.cpp38 StmtResult Sema::ActOnExprStmt(ExprResult FE) { in ActOnExprStmt()
56 StmtResult Sema::ActOnExprStmtError() { in ActOnExprStmtError()
61 StmtResult Sema::ActOnNullStmt(SourceLocation SemiLoc, in ActOnNullStmt()
66 StmtResult Sema::ActOnDeclStmt(DeclGroupPtrTy dg, SourceLocation StartLoc, in ActOnDeclStmt()
76 void Sema::ActOnForEachDeclStmt(DeclGroupPtrTy dg) { in ActOnForEachDeclStmt()
121 static bool DiagnoseUnusedComparison(Sema &S, const Expr *E) { in DiagnoseUnusedComparison()
167 void Sema::DiagnoseUnusedExprResult(const Stmt *S) { in DiagnoseUnusedExprResult()
282 void Sema::ActOnStartOfCompoundStmt() { in ActOnStartOfCompoundStmt()
286 void Sema::ActOnFinishOfCompoundStmt() { in ActOnFinishOfCompoundStmt()
290 sema::CompoundScopeInfo &Sema::getCurCompoundScope() const { in getCurCompoundScope()
[all …]
HDSemaDeclAttr.cpp219 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr, in checkAttributeNumArgs()
233 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr, in checkAttributeAtLeastNumArgs()
247 static bool checkFunctionOrMethodArgumentIndex(Sema &S, const Decl *D, in checkFunctionOrMethodArgumentIndex()
297 bool Sema::checkStringLiteralArgumentAttr(const AttributeList &Attr, in checkStringLiteralArgumentAttr()
351 static bool threadSafetyCheckIsSmartPointer(Sema &S, const RecordType* RT) { in threadSafetyCheckIsSmartPointer()
368 static bool threadSafetyCheckIsPointer(Sema &S, const Decl *D, in threadSafetyCheckIsPointer()
420 static void checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr, in checkForLockableRecord()
461 static void checkAttrArgsAreLockableObjs(Sema &S, Decl *D, in checkAttrArgsAreLockableObjs()
543 static bool checkGuardedVarAttrCommon(Sema &S, Decl *D, in checkGuardedVarAttrCommon()
555 static void handleGuardedVarAttr(Sema &S, Decl *D, const AttributeList &Attr) { in handleGuardedVarAttr()
[all …]
HDSemaDeclCXX.cpp60 Sema *S;
63 CheckDefaultArgumentVisitor(Expr *defarg, Sema *s) in CheckDefaultArgumentVisitor()
151 Sema::ImplicitExceptionSpecification::CalledDecl(SourceLocation CallLoc, in CalledDecl()
222 void Sema::ImplicitExceptionSpecification::CalledExpr(Expr *E) { in CalledExpr()
252 Sema::SetParamDefaultArgument(ParmVarDecl *Param, Expr *Arg, in SetParamDefaultArgument()
301 Sema::ActOnParamDefaultArgument(Decl *param, SourceLocation EqualLoc, in ActOnParamDefaultArgument()
337 void Sema::ActOnParamUnparsedDefaultArgument(Decl *param, in ActOnParamUnparsedDefaultArgument()
350 void Sema::ActOnParamDefaultArgumentError(Decl *param) { in ActOnParamDefaultArgumentError()
364 void Sema::CheckExtraCXXDefaultArguments(Declarator &D) { in CheckExtraCXXDefaultArguments()
420 bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old, in MergeCXXFunctionDecl()
[all …]
HDSemaTemplateVariadic.cpp203 Sema::DiagnoseUnexpandedParameterPacks(SourceLocation Loc, in DiagnoseUnexpandedParameterPacks()
255 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, in DiagnoseUnexpandedParameterPack()
271 bool Sema::DiagnoseUnexpandedParameterPack(Expr *E, in DiagnoseUnexpandedParameterPack()
285 bool Sema::DiagnoseUnexpandedParameterPack(const CXXScopeSpec &SS, in DiagnoseUnexpandedParameterPack()
302 bool Sema::DiagnoseUnexpandedParameterPack(const DeclarationNameInfo &NameInfo, in DiagnoseUnexpandedParameterPack()
337 bool Sema::DiagnoseUnexpandedParameterPack(SourceLocation Loc, in DiagnoseUnexpandedParameterPack()
351 bool Sema::DiagnoseUnexpandedParameterPack(TemplateArgumentLoc Arg, in DiagnoseUnexpandedParameterPack()
364 void Sema::collectUnexpandedParameterPacks(TemplateArgument Arg, in collectUnexpandedParameterPacks()
370 void Sema::collectUnexpandedParameterPacks(TemplateArgumentLoc Arg, in collectUnexpandedParameterPacks()
376 void Sema::collectUnexpandedParameterPacks(QualType T, in collectUnexpandedParameterPacks()
[all …]
HDSemaOverload.cpp42 CreateFunctionRefExpr(Sema &S, FunctionDecl *Fn, NamedDecl *FoundDecl, in CreateFunctionRefExpr()
70 static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
76 static bool IsTransparentUnionStandardConversion(Sema &S, Expr* From,
82 IsUserDefinedConversion(Sema &S, Expr *From, QualType ToType,
90 CompareStandardConversionSequences(Sema &S,
95 CompareQualificationConversions(Sema &S,
100 CompareDerivedToBaseConversions(Sema &S,
571 Sema::TemplateDeductionResult TDK, in MakeDeductionFailureInfo()
578 case Sema::TDK_Success: in MakeDeductionFailureInfo()
579 case Sema::TDK_Invalid: in MakeDeductionFailureInfo()
[all …]
HDSemaCast.cpp49 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
63 Sema &Self;
121 void checkObjCARCConversion(Sema::CheckedConversionKind CCK) { in checkObjCARCConversion()
126 Sema::ACR_unbridged) in checkObjCARCConversion()
144 static bool CastsAwayConstness(Sema &Self, QualType SrcType, QualType DestType,
158 static TryCastResult TryLValueToRValueCast(Sema &Self, Expr *SrcExpr,
163 static TryCastResult TryStaticReferenceDowncast(Sema &Self, Expr *SrcExpr,
169 static TryCastResult TryStaticPointerDowncast(Sema &Self, QualType SrcType,
175 static TryCastResult TryStaticDowncast(Sema &Self, CanQualType SrcType,
182 static TryCastResult TryStaticMemberPointerUpcast(Sema &Self, ExprResult &SrcExpr,
[all …]
HDSemaExpr.cpp50 bool Sema::CanUseDecl(NamedDecl *D) { in CanUseDecl()
75 static void DiagnoseUnusedOfDecl(Sema &S, NamedDecl *D, SourceLocation Loc) { in DiagnoseUnusedOfDecl()
84 static AvailabilityResult DiagnoseAvailabilityOfDecl(Sema &S, in DiagnoseAvailabilityOfDecl()
145 void Sema::NoteDeletedFunction(FunctionDecl *Decl) { in NoteDeletedFunction()
203 static void diagnoseUseOfInternalDeclInInlineFunction(Sema &S, in diagnoseUseOfInternalDeclInInlineFunction()
248 void Sema::MaybeSuggestAddingStaticToDecl(const FunctionDecl *Cur) { in MaybeSuggestAddingStaticToDecl()
271 bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc, in DiagnoseUseOfDecl()
324 std::string Sema::getDeletedOrUnavailableSuffix(const FunctionDecl *FD) { in getDeletedOrUnavailableSuffix()
336 void Sema::DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc, in DiagnoseSentinelCalls()
427 SourceRange Sema::getExprRange(Expr *E) const { in getExprRange()
[all …]
HDSemaCXXScopeSpec.cpp55 DeclContext *Sema::computeDeclContext(QualType T) { in computeDeclContext()
76 DeclContext *Sema::computeDeclContext(const CXXScopeSpec &SS, in computeDeclContext()
156 bool Sema::isDependentScopeSpecifier(const CXXScopeSpec &SS) { in isDependentScopeSpecifier()
168 CXXRecordDecl *Sema::getCurrentInstantiationOf(NestedNameSpecifier *NNS) { in getCurrentInstantiationOf()
188 bool Sema::RequireCompleteDeclContext(CXXScopeSpec &SS, in RequireCompleteDeclContext()
243 bool Sema::ActOnCXXGlobalScopeSpecifier(Scope *S, SourceLocation CCLoc, in ActOnCXXGlobalScopeSpecifier()
251 bool Sema::isAcceptableNestedNameSpecifier(const NamedDecl *SD) { in isAcceptableNestedNameSpecifier()
283 NamedDecl *Sema::FindFirstQualifierInScope(Scope *S, NestedNameSpecifier *NNS) { in FindFirstQualifierInScope()
308 bool Sema::isNonTypeNestedNameSpecifier(Scope *S, CXXScopeSpec &SS, in isNonTypeNestedNameSpecifier()
363 explicit NestedNameSpecifierValidatorCCC(Sema &SRef) in NestedNameSpecifierValidatorCCC()
[all …]
HDSemaDeclObjC.cpp41 bool Sema::checkInitMethod(ObjCMethodDecl *method, in checkInitMethod()
111 void Sema::CheckObjCMethodOverride(ObjCMethodDecl *NewMethod, in CheckObjCMethodOverride()
196 bool Sema::CheckARCMethodDecl(ObjCMethodDecl *method) { in CheckARCMethodDecl()
257 static void DiagnoseObjCImplementedDeprecations(Sema &S, in DiagnoseObjCImplementedDeprecations()
273 void Sema::AddAnyMethodToGlobalPool(Decl *D) { in AddAnyMethodToGlobalPool()
288 HasExplicitOwnershipAttr(Sema &S, ParmVarDecl *Param) { in HasExplicitOwnershipAttr()
306 void Sema::ActOnStartOfObjCMethodDef(Scope *FnBodyScope, Decl *D) { in ActOnStartOfObjCMethodDef()
442 Decl *Sema::
596 void Sema::ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs, in ActOnTypedefedProtocols()
618 Decl *Sema::ActOnCompatibilityAlias(SourceLocation AtLoc, in ActOnCompatibilityAlias()
[all …]
HDSemaExprCXX.cpp47 ParsedType Sema::getInheritingConstructorName(CXXScopeSpec &SS, in getInheritingConstructorName()
80 ParsedType Sema::getDestructorName(SourceLocation TildeLoc, in getDestructorName()
320 ParsedType Sema::getDestructorType(const DeclSpec& DS, ParsedType ObjectType) { in getDestructorType()
337 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
360 ExprResult Sema::BuildCXXTypeId(QualType TypeInfoType, in BuildCXXTypeId()
416 Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXTypeid()
462 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
483 ExprResult Sema::BuildCXXUuidof(QualType TypeInfoType, in BuildCXXUuidof()
505 Sema::ActOnCXXUuidof(SourceLocation OpLoc, SourceLocation LParenLoc, in ActOnCXXUuidof()
539 Sema::ActOnCXXBoolLiteral(SourceLocation OpLoc, tok::TokenKind Kind) { in ActOnCXXBoolLiteral()
[all …]
HDSemaTemplateInstantiate.cpp52 Sema::getTemplateInstantiationArgs(NamedDecl *D, in getTemplateInstantiationArgs()
175 bool Sema::ActiveTemplateInstantiation::isInstantiationRecord() const { in isInstantiationRecord()
193 Sema::InstantiatingTemplate::
194 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
216 Sema::InstantiatingTemplate::
217 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
239 Sema::InstantiatingTemplate::
240 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
264 Sema::InstantiatingTemplate::
265 InstantiatingTemplate(Sema &SemaRef, SourceLocation PointOfInstantiation, in InstantiatingTemplate()
[all …]
HDSemaExprObjC.cpp34 ExprResult Sema::ParseObjCStringLiteral(SourceLocation *AtLocs, in ParseObjCStringLiteral()
79 ExprResult Sema::BuildObjCStringLiteral(SourceLocation AtLoc, StringLiteral *S){ in BuildObjCStringLiteral()
145 static bool validateBoxingMethod(Sema &S, SourceLocation Loc, in validateBoxingMethod()
169 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, in getNSNumberFactoryMethod()
199 Loc, Sema::LookupOrdinaryName); in getNSNumberFactoryMethod()
257 ExprResult Sema::BuildObjCNumericLiteral(SourceLocation AtLoc, Expr *Number) { in BuildObjCNumericLiteral()
307 ExprResult Sema::ActOnObjCBoolLiteral(SourceLocation AtLoc, in ActOnObjCBoolLiteral()
326 static ExprResult CheckObjCCollectionLiteralElement(Sema &S, Expr *Element, in CheckObjCCollectionLiteralElement()
441 ExprResult Sema::BuildObjCBoxedExpr(SourceRange SR, Expr *ValueExpr) { in BuildObjCBoxedExpr()
601 ExprResult Sema::BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr, in BuildObjCSubscriptExpression()
[all …]
HDSemaCodeComplete.cpp124 Sema &SemaRef;
172 explicit ResultBuilder(Sema &SemaRef, CodeCompletionAllocator &Allocator, in ResultBuilder()
259 Sema &getSema() const { return SemaRef; } in getSema()
1350 static void AddStorageSpecifiers(Sema::ParserCompletionContext CCC, in AddStorageSpecifiers()
1361 static void AddFunctionSpecifiers(Sema::ParserCompletionContext CCC, in AddFunctionSpecifiers()
1366 case Sema::PCC_Class: in AddFunctionSpecifiers()
1367 case Sema::PCC_MemberTemplate: in AddFunctionSpecifiers()
1376 case Sema::PCC_ObjCInterface: in AddFunctionSpecifiers()
1377 case Sema::PCC_ObjCImplementation: in AddFunctionSpecifiers()
1378 case Sema::PCC_Namespace: in AddFunctionSpecifiers()
[all …]
HDSemaLookup.cpp210 static inline unsigned getIDNS(Sema::LookupNameKind NameKind, in getIDNS()
215 case Sema::LookupObjCImplicitSelfParam: in getIDNS()
216 case Sema::LookupOrdinaryName: in getIDNS()
217 case Sema::LookupRedeclarationWithLinkage: in getIDNS()
218 case Sema::LookupLocalFriendName: in getIDNS()
229 case Sema::LookupOperatorName: in getIDNS()
236 case Sema::LookupTagName: in getIDNS()
251 case Sema::LookupLabel: in getIDNS()
255 case Sema::LookupMemberName: in getIDNS()
261 case Sema::LookupNestedNameSpecifierName: in getIDNS()
[all …]
/trueos/contrib/llvm/tools/clang/lib/AST/
HDCommentSema.cpp28 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, in Sema() function in clang::comments::Sema
35 void Sema::setDecl(const Decl *D) { in setDecl()
44 ParagraphComment *Sema::actOnParagraphComment( in actOnParagraphComment()
49 BlockCommandComment *Sema::actOnBlockCommandStart( in actOnBlockCommandStart()
61 void Sema::actOnBlockCommandArgs(BlockCommandComment *Command, in actOnBlockCommandArgs()
66 void Sema::actOnBlockCommandFinish(BlockCommandComment *Command, in actOnBlockCommandFinish()
75 ParamCommandComment *Sema::actOnParamCommandStart( in actOnParamCommandStart()
93 void Sema::checkFunctionDeclVerbatimLine(const BlockCommandComment *Comment) { in checkFunctionDeclVerbatimLine()
126 void Sema::checkContainerDeclVerbatimLine(const BlockCommandComment *Comment) { in checkContainerDeclVerbatimLine()
163 void Sema::checkContainerDecl(const BlockCommandComment *Comment) { in checkContainerDecl()
[all …]
/trueos/contrib/llvm/tools/clang/include/clang/Sema/
HDLookup.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()
142 AllowHidden(Redecl == Sema::ForRedeclaration), in ResultKind()
151 LookupResult(Sema &SemaRef, DeclarationName Name,
152 SourceLocation NameLoc, Sema::LookupNameKind LookupKind,
153 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration)
161 Redecl(Redecl != Sema::NotForRedeclaration), in ResultKind()
[all …]
HDSemaFixItUtils.h28 class Sema; variable
37 Sema &S,
54 Sema &S,
78 Sema &S);
/trueos/contrib/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/
HDParser.h60 class Sema {
62 virtual ~Sema();
114 parseMatcherExpression(StringRef MatcherCode, Sema *S, Diagnostics *Error);
129 static bool parseExpression(StringRef Code, Sema *S,
136 Parser(CodeTokenizer *Tokenizer, Sema *S,
143 Sema *const S;
/trueos/contrib/llvm/tools/clang/lib/Parse/
HDParsePragma.cpp43 Sema::PragmaPackKind Kind;
67 Sema::PragmaMSStructKind Kind = in HandlePragmaMSStruct()
68 static_cast<Sema::PragmaMSStructKind>( in HandlePragmaMSStruct()
76 Sema::PragmaOptionsAlignKind Kind = in HandlePragmaAlign()
77 static_cast<Sema::PragmaOptionsAlignKind>( in HandlePragmaAlign()
259 Sema::PragmaPackKind Kind = Sema::PPK_Default; in HandlePragma()
274 Kind = Sema::PPK_Push; in HandlePragma()
278 Kind = Sema::PPK_Show; in HandlePragma()
282 Kind = Sema::PPK_Push; in HandlePragma()
284 Kind = Sema::PPK_Pop; in HandlePragma()
[all …]
HDParsePragma.h20 class Sema; variable
119 PragmaCommentHandler(Sema &Actions) in PragmaCommentHandler()
124 Sema &Actions;
129 PragmaDetectMismatchHandler(Sema &Actions) in PragmaDetectMismatchHandler()
134 Sema &Actions;

12345