Lines Matching refs:decl
100 class Decl;
279 // the new decl. If the new decl has external linkage, we will
280 // link it with the hidden decl (which also has external linkage) and
312 /// \brief Generally null except when we temporarily switch decl contexts,
507 llvm::SmallPtrSet<const Decl*, 4> ParsingInitForAutoVars;
705 SmallVector<Decl*,2> WeakTopLevelDecl;
710 /// to lookup file scope declarations in the "ordinary" C decl namespace.
860 Decl *ManglingContextDecl;
880 Decl *ManglingContextDecl,
908 Decl *&ManglingContextDecl);
1184 const Decl *D = nullptr,
1229 SmallVectorImpl<Decl *> &WeakTopLevelDecls() { return WeakTopLevelDecl; }
1399 Module *getOwningModule(Decl *Entity);
1500 // Symbol table / Decl tracking callbacks: SemaDecl.cpp.
1515 DeclGroupPtrTy ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType = nullptr);
1668 Decl *ActOnDeclarator(Scope *S, Declarator &D);
1743 Decl *ActOnParamDeclarator(Scope *S, Declarator &D);
1751 void ActOnParamDefaultArgument(Decl *param,
1754 void ActOnParamUnparsedDefaultArgument(Decl *param,
1757 void ActOnParamDefaultArgumentError(Decl *param, SourceLocation EqualLoc);
1761 void AddInitializerToDecl(Decl *dcl, Expr *init, bool DirectInit,
1763 void ActOnUninitializedDecl(Decl *dcl, bool TypeMayContainAuto);
1764 void ActOnInitializerError(Decl *Dcl);
1765 void ActOnPureSpecifier(Decl *D, SourceLocation PureSpecLoc);
1766 void ActOnCXXForRangeDecl(Decl *D);
1771 void SetDeclDeleted(Decl *dcl, SourceLocation DelLoc);
1772 void SetDeclDefaulted(Decl *dcl, SourceLocation DefaultLoc);
1773 void FinalizeDeclaration(Decl *D);
1775 ArrayRef<Decl *> Group);
1776 DeclGroupPtrTy BuildDeclaratorGroup(MutableArrayRef<Decl *> Group,
1781 void ActOnDocumentableDecl(Decl *D);
1782 void ActOnDocumentableDecls(ArrayRef<Decl *> Group);
1789 Decl *ActOnStartOfFunctionDef(Scope *S, Declarator &D,
1792 Decl *ActOnStartOfFunctionDef(Scope *S, Decl *D,
1794 void ActOnStartOfObjCMethodDef(Scope *S, Decl *D);
1795 bool isObjCMethodDecl(Decl *D) {
1816 bool canSkipFunctionBody(Decl *D);
1819 Decl *ActOnFinishFunctionBody(Decl *Decl, Stmt *Body);
1820 Decl *ActOnFinishFunctionBody(Decl *Decl, Stmt *Body, bool IsInstantiation);
1821 Decl *ActOnSkippedFunctionBody(Decl *Decl);
1826 void ActOnFinishDelayedAttribute(Scope *S, Decl *D, ParsedAttributes &Attrs);
1840 Decl *ActOnFileScopeAsmDecl(Expr *expr,
1845 Decl *ActOnEmptyDeclaration(Scope *S,
1893 void diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
1895 void diagnoseMissingImport(SourceLocation Loc, NamedDecl *Decl,
1923 Decl *ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS,
1925 Decl *ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS, DeclSpec &DS,
1930 Decl *BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS,
1935 Decl *BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS,
1945 TUK_Declaration, // Fwd decl of a tag: 'struct foo;'
1950 Decl *ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK,
1961 Decl *ActOnTemplatedFriendTag(Scope *S, SourceLocation FriendLoc,
1976 void ActOnDefs(Scope *S, Decl *TagD, SourceLocation DeclStart,
1978 SmallVectorImpl<Decl *> &Decls);
1979 Decl *ActOnField(Scope *S, Decl *TagD, SourceLocation DeclStart,
2008 SmallVectorImpl<Decl *> &AllIvarDecls);
2009 Decl *ActOnIvar(Scope *S, SourceLocation DeclStart,
2014 void ActOnFields(Scope* S, SourceLocation RecLoc, Decl *TagDecl,
2015 ArrayRef<Decl *> Fields,
2022 void ActOnTagStartDefinition(Scope *S, Decl *TagDecl);
2027 SkippedDefinitionContext ActOnTagStartSkippedDefinition(Scope *S, Decl *TD);
2029 Decl *ActOnObjCContainerStartDefinition(Decl *IDecl);
2034 void ActOnStartCXXMemberDeclarations(Scope *S, Decl *TagDecl,
2041 void ActOnTagFinishDefinition(Scope *S, Decl *TagDecl,
2057 void ActOnTagDefinitionError(Scope *S, Decl *TagDecl);
2075 Decl *ActOnEnumConstant(Scope *S, Decl *EnumDecl, Decl *LastEnumConstant,
2080 SourceLocation RBraceLoc, Decl *EnumDecl,
2081 ArrayRef<Decl *> Elements,
2096 void ActOnReenterFunctionContext(Scope* S, Decl* D);
2102 /// to the function decl for the function being parsed. If we're currently
2107 /// the method decl for the method being parsed. If we're currently
2111 /// getCurFunctionOrMethodDecl - Return the Decl for the current ObjC method
2116 /// Add this decl to the scope shadowed decl chains.
2137 /// Finds the scope corresponding to the given decl context, if it
2174 TypeVisibilityAttr *mergeTypeVisibilityAttr(Decl *D, SourceRange Range,
2177 VisibilityAttr *mergeVisibilityAttr(Decl *D, SourceRange Range,
2180 DLLImportAttr *mergeDLLImportAttr(Decl *D, SourceRange Range,
2182 DLLExportAttr *mergeDLLExportAttr(Decl *D, SourceRange Range,
2185 mergeMSInheritanceAttr(Decl *D, SourceRange Range, bool BestCase,
2188 FormatAttr *mergeFormatAttr(Decl *D, SourceRange Range,
2191 SectionAttr *mergeSectionAttr(Decl *D, SourceRange Range, StringRef Name,
2193 AlwaysInlineAttr *mergeAlwaysInlineAttr(Decl *D, SourceRange Range,
2196 MinSizeAttr *mergeMinSizeAttr(Decl *D, SourceRange Range,
2198 OptimizeNoneAttr *mergeOptimizeNoneAttr(Decl *D, SourceRange Range,
2200 InternalLinkageAttr *mergeInternalLinkageAttr(Decl *D, SourceRange Range,
2203 CommonAttr *mergeCommonAttr(Decl *D, SourceRange Range, IdentifierInfo *Ident,
2206 void mergeDeclAttributes(NamedDecl *New, Decl *Old,
2997 void ProcessPragmaWeak(Scope *S, Decl *D);
2998 // Decl attributes - this routine is the top level dispatcher.
2999 void ProcessDeclAttributes(Scope *S, Decl *D, const Declarator &PD);
3000 void ProcessDeclAttributeList(Scope *S, Decl *D, const AttributeList *AL,
3026 void CheckAlignasUnderalignment(Decl *D);
3109 void DefaultSynthesizeProperties(Scope *S, Decl *D);
3270 void AddAnyMethodToGlobalPool(Decl *D);
3378 StmtResult ActOnDeclStmt(DeclGroupPtrTy Decl,
3381 void ActOnForEachDeclStmt(DeclGroupPtrTy Decl);
3523 Decl *ActOnObjCExceptionDecl(Scope *S, Declarator &D);
3526 Decl *Parm, Stmt *Body);
3549 Decl *ActOnExceptionDeclarator(Scope *S, Declarator &D);
3552 Decl *ExDecl, Stmt *HandlerBlock);
3571 /// \brief If it's a file scoped decl that must warn if not used, keep track
3608 void PopParsingDeclaration(ParsingDeclState state, Decl *decl);
3649 Decl *LambdaContextDecl = nullptr,
3667 // for expressions referring to a decl; these exist because odr-use marking
3676 void MarkAnyDeclReferenced(SourceLocation Loc, Decl *D, bool MightBeOdrUse);
3943 Decl *ObjCImpDecl;
3984 Decl *ObjCImpDecl);
3986 void ActOnDefaultCtorInitializers(Decl *CDtorDecl);
4188 Decl *ActOnStartNamespaceDef(Scope *S, SourceLocation InlineLoc,
4195 void ActOnFinishNamespaceDef(Decl *Dcl, SourceLocation RBrace);
4216 Decl *ActOnUsingDirective(Scope *CurScope,
4226 Decl *ActOnNamespaceAliasDef(Scope *CurScope,
4270 Decl *ActOnUsingDeclaration(Scope *CurScope,
4279 Decl *ActOnAliasDeclaration(Scope *CurScope,
4286 Decl *DeclFromDeclSpec);
4460 void actOnDelayedExceptionSpecification(Decl *Method,
4704 CXXThisScopeRAII(Sema &S, Decl *ContextDecl, unsigned CXXThisTypeQuals,
5092 void ActOnCXXEnterDeclInitializer(Scope *S, Decl *Dcl);
5096 void ActOnCXXExitDeclInitializer(Scope *S, Decl *Dcl);
5267 Decl *ActOnStartLinkageSpecification(Scope *S,
5271 Decl *ActOnFinishLinkageSpecification(Scope *S,
5272 Decl *LinkageSpec,
5295 void ActOnFinishCXXInClassMemberInitializer(Decl *VarDecl,
5299 MemInitResult ActOnMemInitializer(Decl *ConstructorD,
5311 MemInitResult ActOnMemInitializer(Decl *ConstructorD,
5321 MemInitResult BuildMemInitializer(Decl *ConstructorD,
5354 /// MarkBaseAndMemberDestructorsReferenced - Given a record decl,
5402 void ActOnMemInitializers(Decl *ConstructorDecl,
5421 Decl *TagDecl,
5426 void ActOnFinishCXXNonNestedClass(Decl *D);
5429 unsigned ActOnReenterTemplateScope(Scope *S, Decl *Template);
5430 Decl *Record);
5431 void ActOnStartDelayedCXXMethodDeclaration(Scope *S, Decl *Method);
5432 void ActOnDelayedCXXMethodParameter(Scope *S, Decl *Param);
5433 void ActOnFinishDelayedMemberDeclarations(Scope *S, Decl *Record);
5434 void ActOnFinishDelayedCXXMethodDeclaration(Scope *S, Decl *Method);
5435 void ActOnFinishDelayedMemberInitializers(Decl *Record);
5436 void MarkAsLateParsedTemplate(FunctionDecl *FD, Decl *FnD,
5441 Decl *ActOnStaticAssertDeclaration(SourceLocation StaticAssertLoc,
5445 Decl *BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
5454 Decl *ActOnFriendTypeDecl(Scope *S, const DeclSpec &DS,
5467 Decl *ActOnConversionDeclarator(CXXConversionDecl *Conversion);
5485 BaseResult ActOnBaseSpecifier(Decl *classdecl,
5495 void ActOnBaseSpecifiers(Decl *ClassDecl,
5603 bool IsSimplyAccessible(NamedDecl *decl, DeclContext *Ctx);
5604 bool isSpecialMemberAccessibleForDeletion(CXXMethodDecl *decl,
5613 void HandleDelayedAccessCheck(sema::DelayedDiagnostic &DD, Decl *Ctx);
5678 void DiagnoseTemplateParameterShadow(SourceLocation Loc, Decl *PrevDecl);
5679 TemplateDecl *AdjustDeclIfTemplate(Decl *&Decl);
5681 Decl *ActOnTypeParameter(Scope *S, bool Typename,
5691 Decl *ActOnNonTypeTemplateParameter(Scope *S, Declarator &D,
5696 Decl *ActOnTemplateTemplateParameter(Scope *S,
5712 ArrayRef<Decl *> Params,
5823 Decl *ActOnTemplateDeclarator(Scope *S,
5878 Decl *Param,
6657 Decl *Entity;
6803 typedef llvm::DenseMap<Decl *, SmallVector<PartialDiagnosticAt, 1> >
6823 Decl *Entity,
6918 Decl *Entity, NamedDecl *Template = nullptr,
7182 Decl *SubstDecl(Decl *D, DeclContext *Owner,
7213 Decl *NewDecl;
7216 Decl *D)
7223 const Decl *Pattern, Decl *Inst,
7327 ArrayRef<Decl *> typeParams,
7331 Decl *ActOnStartClassInterface(Scope *S,
7340 Decl * const *ProtoRefs,
7356 void ActOnTypedefedProtocols(SmallVectorImpl<Decl *> &ProtocolRefs,
7360 Decl *ActOnCompatibilityAlias(
7370 Decl *ActOnStartProtocolInterface(
7373 Decl * const *ProtoRefNames, unsigned NumProtoRefs,
7378 Decl *ActOnStartCategoryInterface(SourceLocation AtInterfaceLoc,
7384 Decl * const *ProtoRefs,
7389 Decl *ActOnStartClassImplementation(
7395 Decl *ActOnStartCategoryImplementation(SourceLocation AtCatImplLoc,
7401 DeclGroupPtrTy ActOnFinishObjCImplementation(Decl *ObjCImpDecl,
7402 ArrayRef<Decl *> Decls);
7416 SmallVectorImpl<Decl *> &Protocols);
7438 SmallVectorImpl<Decl *> &protocols,
7446 ArrayRef<Decl *> protocols,
7459 ArrayRef<Decl *> Protocols,
7482 void CheckObjCPropertyAttributes(Decl *PropertyPtrTy,
7501 Decl *ActOnAtEnd(Scope *S, SourceRange AtEnd,
7502 ArrayRef<Decl *> allMethods = None,
7505 Decl *ActOnProperty(Scope *S, SourceLocation AtLoc,
7512 Decl *ActOnPropertyImplDecl(Scope *S,
7542 Decl *ActOnMethodDeclaration(
7563 bool inferObjCARCLifetime(ValueDecl *decl);
7825 /// a the record decl, to handle '\#pragma pack' and '\#pragma options align'.
7841 void AddPushedVisibilityAttribute(Decl *RD);
7853 void AddCFAuditedAttribute(Decl *D);
7875 void AddAlignedAttr(SourceRange AttrRange, Decl *D, Expr *E,
7877 void AddAlignedAttr(SourceRange AttrRange, Decl *D, TypeSourceInfo *T,
7882 void AddAssumeAlignedAttr(SourceRange AttrRange, Decl *D, Expr *E, Expr *OE,
7887 void AddAlignValueAttr(SourceRange AttrRange, Decl *D, Expr *E,
7892 void AddLaunchBoundsAttr(SourceRange AttrRange, Decl *D, Expr *MaxThreads,
7896 void AddModeAttr(SourceRange AttrRange, Decl *D, IdentifierInfo *Name,
7899 void AddParameterABIAttr(SourceRange AttrRange, Decl *D,
7902 void AddNSConsumedAttr(SourceRange AttrRange, Decl *D,
8000 AccessSpecifier AS, Decl *PrevDeclInScope = nullptr);
8002 void ActOnOpenMPDeclareReductionCombinerStart(Scope *S, Decl *D);
8004 void ActOnOpenMPDeclareReductionCombinerEnd(Decl *D, Expr *Combiner);
8006 void ActOnOpenMPDeclareReductionInitializerStart(Scope *S, Decl *D);
8008 void ActOnOpenMPDeclareReductionInitializerEnd(Decl *D, Expr *Initializer);
8023 void checkDeclIsAllowedInOpenMPTarget(Expr *E, Decl *D);
8972 Decl *ConditionVar;
8979 ConditionResult(Sema &S, Decl *ConditionVar, FullExprArg Condition,
9014 ConditionResult ActOnConditionVariable(Decl *ConditionVar,
9057 bool CheckObjCDeclScope(Decl *D);
9239 void CodeCompleteInitializer(Scope *S, Decl *D);
9252 Decl *Constructor,
9570 Decl *getObjCDeclContext() const;
9609 Decl *LambdaContextDecl = nullptr,
9642 Decl *D;