Home | History | Annotate | Download | only in Sema

Lines Matching full:sema

14 #include "clang/Sema/SemaInternal.h"
27 #include "clang/Sema/DeclSpec.h"
28 #include "clang/Sema/DelayedDiagnostic.h"
29 #include "clang/Sema/Lookup.h"
30 #include "clang/Sema/Scope.h"
33 using namespace sema;
55 /// been processed by Sema::GetTypeForDeclarator.
153 static bool checkAttributeNumArgs(Sema &S, const AttributeList &Attr,
166 static bool checkAttributeAtLeastNumArgs(Sema &S, const AttributeList &Attr,
179 static bool checkUInt32Argument(Sema &S, const AttributeList &Attr,
202 static bool checkAttrMutualExclusion(Sema &S, Decl *D,
216 static bool checkFunctionOrMethodParameterIndex(Sema &S, const Decl *D,
264 bool Sema::checkStringLiteralArgumentAttr(const AttributeList &Attr,
299 static void handleSimpleAttribute(Sema &S, Decl *D,
314 static bool threadSafetyCheckIsSmartPointer(Sema &S, const RecordType* RT) {
331 static bool threadSafetyCheckIsPointer(Sema &S, const Decl *D,
367 static bool checkRecordTypeForCapability(Sema &S, QualType Ty) {
412 static bool typeHasCapability(Sema &S, QualType Ty) {
422 static bool isCapabilityExpr(Sema &S, const Expr *Ex) {
453 static void checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D,
535 static void handlePtGuardedVarAttr(Sema &S, Decl *D,
545 static bool checkGuardedByAttrCommon(Sema &S, Decl *D,
560 static void handleGuardedByAttr(Sema &S, Decl *D, const AttributeList &Attr) {
569 static void handlePtGuardedByAttr(Sema &S, Decl *D,
583 static bool checkAcquireOrderAttrCommon(Sema &S, Decl *D,
608 static void handleAcquiredAfterAttr(Sema &S, Decl *D,
621 static void handleAcquiredBeforeAttr(Sema &S, Decl *D,
634 static bool checkLockFunAttrCommon(Sema &S, Decl *D,
644 static void handleAssertSharedLockAttr(Sema &S, Decl *D,
657 static void handleAssertExclusiveLockAttr(Sema &S, Decl *D,
672 static bool checkTryLockFunAttrCommon(Sema &S, Decl *D,
690 static void handleSharedTrylockFunctionAttr(Sema &S, Decl *D,
703 static void handleExclusiveTrylockFunctionAttr(Sema &S, Decl *D,
716 static void handleLockReturnedAttr(Sema &S, Decl *D,
730 static void handleLocksExcludedAttr(Sema &S, Decl *D,
748 static void handleEnableIfAttr(Sema &S, Decl *D, const AttributeList &Attr) {
776 static void handleConsumableAttr(Sema &S, Decl *D, const AttributeList &Attr) {
799 static bool checkForConsumableClass(Sema &S, const CXXMethodDecl *MD,
817 static void handleCallableWhenAttr(Sema &S, Decl *D,
850 static void handleParamTypestateAttr(Sema &S, Decl *D,
890 static void handleReturnTypestateAttr(Sema &S, Decl *D,
941 static void handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) {
968 static void handleTestTypestateAttr(Sema &S, Decl *D,
996 static void handleExtVectorTypeAttr(Sema &S, Scope *scope, Decl *D,
1002 static void handlePackedAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1022 static bool checkIBOutletCommon(Sema &S, Decl *D, const AttributeList &Attr) {
1048 static void handleIBOutlet(Sema &S, Decl *D, const AttributeList &Attr) {
1057 static void handleIBOutletCollection(Sema &S, Decl *D,
1118 static bool attrNonNullArgCheck(Sema &S, QualType T, const AttributeList &Attr,
1133 static void handleNonNullAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1178 static void handleNonNullAttrParameter(Sema &S, ParmVarDecl *D,
1199 static void handleReturnsNonNullAttr(Sema &S, Decl *D,
1211 static void handleOwnershipAttr(Sema &S, Decl *D, const AttributeList &AL) {
1310 static void handleWeakRefAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1374 static void handleAliasAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1390 static void handleColdAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1398 static void handleHotAttr(Sema
1406 static void handleTLSModelAttr(Sema &S, Decl *D,
1426 static void handleKernelAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1436 static void handleMallocAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1450 static void handleCommonAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1461 static void handleNoReturnAttr(Sema &S, Decl *D, const AttributeList &attr) {
1477 bool Sema::CheckNoReturnAttr(const AttributeList &attr) {
1486 static void handleAnalyzerNoReturnAttr(Sema &S, Decl *D,
1509 static void handleVecReturnAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1564 static void handleDependencyAttr(Sema &S, Scope *Scope, Decl *D,
1581 static void handleUsedAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1598 static void handleConstructorAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1616 static void handleDestructorAttr(Sema &S, Decl *D, const AttributeList &Attr) {
1635 static void handleAttrWithMessage(Sema &S, Decl *D,
1653 static void handleObjCSuppresProtocolAttr(Sema &S, Decl *D,
1666 static bool checkAvailabilityAttr(Sema &S, SourceRange Range,
1723 AvailabilityAttr *Sema::mergeAvailabilityAttr(NamedDecl *D, SourceRange Range,
1848 static void handleAvailabilityAttr(Sema &S, Decl *D,
1887 static T *mergeVisibilityAttr(Sema &S, Decl *D, SourceRange range,
1902 VisibilityAttr *Sema::mergeVisibilityAttr(Decl *D, SourceRange Range,
1909 TypeVisibilityAttr *Sema::mergeTypeVisibilityAttr(Decl *D, SourceRange Range,
1916 static void handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr,
1969 static void handleObjCMethodFamilyAttr(Sema &S, Decl *decl,
1999 static void handleObjCNSObject(Sema &S, Decl *D, const AttributeList &Attr) {
2028 static void handleBlocksAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2048 static void handleSentinelAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2146 static void handleWarnUnusedResult(Sema &S, Decl *D, const AttributeList &Attr) {
2165 static void handleWeakImportAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2190 static void handleWorkGroupSize(Sema &S, Decl *D,
2215 static void handleVecTypeHint(Sema &S, Decl *D, const AttributeList &Attr) {
2246 SectionAttr *Sema::mergeSectionAttr(Decl *D, SourceRange Range,
2260 static void handleSectionAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2283 static void handleCleanupAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2335 ParamTy, Ty) != Sema::Compatible) {
2348 static void handleFormatArgAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2420 static void handleInitPriorityAttr(Sema &S, Decl *D,
2459 FormatAttr *Sema::mergeFormatAttr(Decl *D, SourceRange Range,
2482 static void handleFormatAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2605 static void handleTransparentUnionAttr(Sema &S, Decl *D,
2674 static void handleAnnotateAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2692 static void handleAlignedAttr(Sema &S, Decl *D, const AttributeList &Attr) {
2720 void Sema::AddAlignedAttr(SourceRange AttrRange, Decl *D, Expr *E,
2805 void Sema::AddAlignedAttr(SourceRange AttrRange, Decl *D, TypeSourceInfo *TS,
2815 void Sema::CheckAlignasUnderalignment(Decl *D) {
2849 bool Sema::checkMSInheritanceAttrOnDefinition(
2884 static void handleModeAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3001 static void handleNoDebugAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3019 static void handleAlwaysInlineAttr(Sema &S, Decl *D,
3029 static void handleOptimizeNoneAttr(Sema &S, Decl *D,
3039 static void handleGlobalAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3055 static void handleGNUInlineAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3067 static void handleCallConvAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3153 bool Sema::CheckCallingConvAttr(const AttributeList &attr, CallingConv &CC,
3219 bool Sema::CheckRegparmAttr(const AttributeList &Attr, unsigned &numParams) {
3253 static void handleLaunchBoundsAttr(Sema &S, Decl *D,
3277 static void handleArgumentWithTypeTagAttr(Sema &S, Decl *D,
3322 static void handleTypeTagForDatatypeAttr(Sema &S, Decl *D,
3361 static bool isValidSubjectOfNSAttribute(Sema &S, QualType type) {
3366 static bool isValidSubjectOfCFAttribute(Sema &S, QualType type) {
3372 static void handleNSConsumedAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3400 static void handleNSReturnsRetainedAttr(Sema &S, Decl *D,
3480 static void handleObjCReturnsInnerPointerAttr(Sema &S, Decl *D,
3509 static void handleObjCRequiresSuperAttr(Sema &S, Decl *D,
3531 static void handleCFAuditedTransferAttr(Sema &S, Decl *D,
3541 static void handleCFUnknownTransferAttr(Sema &S, Decl *D,
3551 static void handleObjCBridgeAttr(Sema &S, Scope *Sc, Decl *D,
3565 static void handleObjCBridgeMutableAttr(Sema &S, Scope *Sc, Decl *D,
3579 static void handleObjCBridgeRelatedAttr(Sema &S, Scope *Sc, Decl *D,
3597 static void handleObjCDesignatedInitializer(Sema &S, Decl *D,
3610 static void handleObjCOwnershipAttr(Sema &S, Decl *D,
3618 static void handleObjCPreciseLifetimeAttr(Sema &S, Decl *D,
3663 static void handleUuidAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3708 static void handleMSInheritanceAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3722 static void handleDeclspecThreadAttr(Sema &S, Decl *D,
3741 static void handleARMInterruptAttr(Sema &S, Decl *D,
3770 static void handleMSP430InterruptAttr(Sema &S, Decl *D,
3806 static void handleInterruptAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3814 static void handleX86ForceAlignArgPointerAttr(Sema &S, Decl *D,
3839 DLLImportAttr *Sema::mergeDLLImportAttr(Decl *D, SourceRange Range,
3852 DLLExportAttr *Sema::mergeDLLExportAttr(Decl *D, SourceRange Range,
3865 static void handleDLLAttr(Sema &S, Decl *D, const AttributeList &A) {
3882 Sema::mergeMSInheritanceAttr(Decl *D, SourceRange Range, bool BestCase,
3917 static void handleCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) {
3941 static void handleAssertCapabilityAttr(Sema &S, Decl *D,
3948 static void handleAcquireCapabilityAttr(Sema &S, Decl *D,
3960 static void handleTryAcquireCapabilityAttr(Sema &S, Decl *D,
3974 static void handleReleaseCapabilityAttr(Sema &S, Decl *D,
3985 static void handleRequiresCapabilityAttr(Sema &S, Decl *D,
4006 static bool handleCommonAttributeFeatures(Sema &S, Scope *scope, Decl *D,
4036 // Top Level Sema Entry Points
4042 static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
4537 void Sema::ProcessDeclAttributeList(Scope *S, Decl *D,
4573 bool Sema::ProcessAccessDeclAttributeList(AccessSpecDecl *ASDecl,
4589 static void checkUnusedDeclAttributes(Sema &S, const AttributeList *A) {
4608 void Sema::checkUnusedDeclAttributes(Declarator &D) {
4617 NamedDecl * Sema::DeclClonePragmaWeak(NamedDecl *ND, IdentifierInfo *II,
4665 void Sema::DeclApplyPragmaWeak(Scope *S, NamedDecl *ND, WeakInfo &W) {
4675 // FIXME: "hideous" code from Sema::LazilyCreateBuiltin
4688 void Sema::ProcessPragmaWeak(Scope *S, Decl *D) {
4717 void Sema::ProcessDeclAttributes(Scope *S, Decl *D, const Declarator &PD) {
4736 static bool isForbiddenTypeAllowed(Sema &S, Decl *decl) {
4750 static void handleDelayedForbiddenType(Sema &S, DelayedDiagnostic &diag,
4775 void Sema::PopParsingDeclaration(ParsingDeclState state, Decl *decl) {
4825 void Sema::redelayDiagnostics(DelayedDiagnosticPool &pool) {
4854 DoEmitAvailabilityWarning(Sema &S,
4921 void Sema::HandleDelayedAvailabilityCheck(DelayedDiagnostic &DD,
4934 void Sema::EmitAvailabilityWarning(AvailabilityDiagnostic AD,