Home | History | Annotate | Download | only in Sema

Lines Matching refs:sema

14 #include "clang/Sema/SemaInternal.h"
15 #include "clang/Sema/Initialization.h"
16 #include "clang/Sema/Lookup.h"
17 #include "clang/Sema/CXXFieldCollector.h"
18 #include "clang/Sema/Scope.h"
19 #include "clang/Sema/ScopeInfo.h"
32 #include "clang/Sema/DeclSpec.h"
33 #include "clang/Sema/ParsedTemplate.h"
36 #include "clang/Sema/DelayedDiagnostic.h"
39 // FIXME: layering (ideally, Sema shouldn't be dependent on Lex API's)
48 using namespace sema;
50 Sema::DeclGroupPtrTy Sema::ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType) {
70 ParsedType Sema::getTypeName(IdentifierInfo &II, SourceLocation NameLoc,
153 Sema::CTC_Type);
287 DeclSpec::TST Sema::isTagName(IdentifierInfo &II, Scope *S) {
320 bool Sema::isMicrosoftMissingTypename(const CXXScopeSpec *SS, Scope *S) {
334 bool Sema::DiagnoseUnknownTypeName(const IdentifierInfo &II,
446 Sema::NameClassification Sema::ClassifyName(Scope *S,
747 DeclContext *Sema::getContainingDC(DeclContext *DC) {
774 void Sema::PushDeclContext(Scope *S, DeclContext *DC) {
781 void Sema::PopDeclContext() {
791 void Sema::EnterDeclaratorContext(Scope *S, DeclContext *DC) {
820 void Sema
834 void Sema::ActOnReenterFunctionContext(Scope* S, Decl *D) {
878 void Sema::PushOnScopeChains(NamedDecl *D, Scope *S, bool AddToContext) {
939 bool Sema::isDeclInScope(NamedDecl *&D, DeclContext *Ctx, Scope *S,
945 Scope *Sema::getScopeForDeclContext(Scope *S, DeclContext *DC) {
962 void Sema::FilterLookupForScope(LookupResult &R,
1019 bool Sema::ShouldWarnIfUnusedFileScopedDecl(const DeclaratorDecl *D) const {
1068 void Sema::MarkUnusedFileScopedDecl(const DeclaratorDecl *D) {
1155 void Sema::DiagnoseUnusedDecl(const NamedDecl *D) {
1173 static void CheckPoppedLabel(LabelDecl *L, Sema &S) {
1181 void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) {
1222 ObjCInterfaceDecl *Sema::getObjCInterfaceDecl(IdentifierInfo *&Id,
1272 Scope *Sema::getNonFieldDeclScope(Scope *S) {
1285 NamedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid,
1364 void Sema::MergeTypedefNameDecl(TypedefNameDecl *New, LookupResult &OldDecls) {
1605 Sema::CXXSpecialMember Sema::getSpecialMember(const CXXMethodDecl *MD) {
1608 return Sema::CXXDefaultConstructor;
1611 return Sema::CXXCopyConstructor;
1614 return Sema::CXXMoveConstructor;
1616 return Sema::CXXDestructor;
1618 return Sema::CXXCopyAssignment;
1620 return Sema::CXXMoveAssignment;
1623 return Sema::CXXInvalid;
1648 bool Sema::MergeFunctionDecl(FunctionDecl *New, Decl *OldD) {
2025 bool Sema::MergeCompatibleFunctionDecls(FunctionDecl *New, FunctionDecl *Old) {
2058 void Sema::mergeObjCMethodDecls(ObjCMethodDecl *newMethod,
2085 void Sema::MergeVarDeclTypes(VarDecl *New, VarDecl *Old) {
2145 void Sema::MergeVarDecl(VarDecl *New, LookupResult &Previous) {
2286 Decl *Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
2295 Decl *Sema::ParsedFreeStandingDeclSpec(Scope *S, AccessSpecifier AS,
2457 StmtResult Sema::ActOnVlaStmt(const DeclSpec &DS) {
2478 static bool CheckAnonMemberRedeclaration(Sema &SemaRef,
2484 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName,
2485 Sema::ForRedeclaration);
2520 static bool InjectAnonymousStructOrUnionMembers(Sema &SemaRef, Scope *S,
2628 Decl *Sema::BuildAnonymousStructOrUnion(Scope *S, DeclSpec &DS,
2861 Decl *Sema::BuildMicrosoftCAnonymousStruct(Scope *S, DeclSpec &DS,
2904 DeclarationNameInfo Sema::GetNameForDeclarator(Declarator &D) {
2910 Sema::GetNameFromUnqualifiedId(const UnqualifiedId &Name) {
3062 static bool RebuildDeclaratorInCurrentInstantiation(Sema &S, Declarator &D,
3131 Decl *Sema::ActOnDeclarator(Scope *S, Declarator &D) {
3143 bool Sema::DiagnoseClassNameShadow(DeclContext *DC,
3156 Decl *Sema::HandleDeclarator(Scope *S, Declarator &D,
3460 Sema::RegisterLocallyScopedExternCDecl(NamedDecl *ND,
3498 Sema::findLocallyScopedExternalDecl(DeclarationName Name) {
3516 void Sema::DiagnoseFunctionSpecifiers(Declarator& D) {
3533 Sema::ActOnTypedefDeclarator(Scope* S, Declarator& D, DeclContext* DC,
3579 Sema::CheckTypedefForVariablyModifiedType(Scope *S, TypedefNameDecl *NewTD) {
3617 Sema::ActOnTypedefNameDecl(Scope *S, DeclContext *DC, TypedefNameDecl *NewTD,
3709 bool Sema::inferObjCARCLifetime(ValueDecl *decl) {
3754 Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC,
4074 void Sema::CheckShadow(Scope *S, VarDecl *D, const LookupResult& R) {
4149 void Sema::CheckShadow(Scope *S, VarDecl *D) {
4155 Sema::LookupOrdinaryName, Sema::ForRedeclaration);
4172 bool Sema::CheckVariableDeclaration(VarDecl *NewVD,
4306 Sema *S;
4347 bool Sema::AddOverriddenMethods(CXXRecordDecl *DC, CXXMethodDecl *MD) {
4373 // DiagnoseInvalidRedeclaration to call Sema::ActOnFunctionDeclarator.
4392 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD,
4398 Sema::LookupOrdinaryName, Sema::ForRedeclaration);
4429 Sema::SFINAETrap Trap(SemaRef);
4519 static FunctionDecl::StorageClass getFunctionStorageClass(Sema &SemaRef, Declarator &D) {
4551 static FunctionDecl* CreateNewFunctionDecl(Sema &SemaRef, Declarator &D,
4710 Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
5013 // We let through "const void" here because Sema::GetTypeForDeclarator
5441 bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
5632 void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) {
5723 bool Sema::CheckForConstantInitializer(Expr *Init, QualType DclT) {
5744 Sema &S;
5752 SelfReferenceChecker(Sema &S, Decl *OrigDecl) : Inherited(S.Context),
5813 LookupResult Result(S, DRE->getNameInfo(), Sema::LookupOrdinaryName,
5814 Sema::NotForRedeclaration);
5825 void Sema::CheckSelfReference(Decl* OrigDecl, Expr *E) {
5832 void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init,
6167 void Sema::ActOnInitializerError(Decl *D) {
6204 void Sema::ActOnUninitializedDecl(Decl *RealDecl,
6396 void Sema::ActOnCXXForRangeDecl(Decl *D) {
6438 void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
6506 Sema::FinalizeDeclaration(Decl *ThisDecl) {
6511 Sema::DeclGroupPtrTy
6512 Sema::FinalizeDeclaratorGroup(Scope *S, const DeclSpec &DS,
6529 Sema::DeclGroupPtrTy
6530 Sema::BuildDeclaratorGroup(Decl **Group, unsigned NumDecls,
6577 Decl *Sema::ActOnParamDeclarator(Scope *S, Declarator &D) {
6689 ParmVarDecl *Sema::BuildParmVarDeclForTypedef(DeclContext *DC,
6702 void Sema::DiagnoseUnusedParameters(ParmVarDecl * const *Param,
6718 void Sema::DiagnoseSizeOfParametersAndReturnValue(ParmVarDecl * const *Param,
6747 ParmVarDecl *Sema::CheckParameter(DeclContext *DC, SourceLocation StartLoc,
6765 sema::DelayedDiagnostic::makeForbiddenType(
6811 void Sema::ActOnFinishKNRParamDeclarations(Scope *S, Declarator &D,
6845 Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope,
6901 void Sema::CheckForFunctionRedefinition(FunctionDecl *FD) {
6917 Decl *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Decl *D) {
7027 void Sema::computeNRVO(Stmt *Body, FunctionScopeInfo *Scope) {
7045 Decl *Sema::ActOnFinishFunctionBody(Decl *D, Stmt *BodyArg) {
7049 Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
7058 sema::AnalysisBasedWarnings::Policy WP = AnalysisWarnings.getDefaultPolicy();
7059 sema::AnalysisBasedWarnings::Policy *ActivePolicy = 0;
7184 void Sema::ActOnFinishDelayedAttribute(Scope *S, Decl *D,
7192 NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
7257 void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) {
7331 TypedefDecl *Sema::ParseTypedefDecl(Scope *S, Declarator &D, QualType T,
7406 bool Sema::isAcceptableTagRedeclaration(const TagDecl *Previous,
7501 Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK,
7686 // in Sema::LookupName; is there a better way to deal with this?
8193 void Sema::ActOnTagStartDefinition(Scope *S, Decl *TagD) {
8201 Decl *Sema::ActOnObjCContainerStartDefinition(Decl *IDecl) {
8211 void Sema::ActOnStartCXXMemberDeclarations(Scope *S, Decl *TagD,
8246 void Sema::ActOnTagFinishDefinition(Scope *S, Decl *TagD,
8262 void Sema::ActOnObjCContainerFinishDefinition() {
8267 void Sema::ActOnObjCTemporaryExitContainerContext() {
8272 void Sema::ActOnObjCReenterContainerContext() {
8277 void Sema::ActOnTagDefinitionError(Scope *S, Decl *TagD) {
8290 bool Sema::VerifyBitField(SourceLocation FieldLoc, IdentifierInfo *FieldName,
8364 Decl *Sema::ActOnField(Scope *S, Decl *TagD, SourceLocation DeclStart,
8374 FieldDecl *Sema::HandleField(Scope *S, RecordDecl *Record,
8458 FieldDecl *Sema::CheckFieldDecl(DeclarationName Name, QualType T,
8594 bool Sema::CheckNontrivialField(FieldDecl *FD) {
8648 void Sema::DiagnoseNontrivial(const RecordType* T, CXXSpecialMember member) {
8821 Decl *Sema::ActOnIvar(Scope *S,
8930 void Sema::ActOnLastBitfield(SourceLocation DeclLoc,
8964 void Sema::ActOnFields(Scope* S,
9344 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum,
9502 Decl *Sema::ActOnEnumConstant(Scope *S, Decl *theEnumDecl, Decl *lastEnumConst,
9567 void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc,
9781 Decl *Sema::ActOnFileScopeAsmDecl(Expr *expr,
9793 DeclResult Sema::ActOnModuleImport(SourceLocation ImportLoc,
9807 Sema::diagnoseModulePrivateRedeclaration(NamedDecl *New, NamedDecl *Old,
9820 void Sema::ActOnPragmaWeakID(IdentifierInfo* Name,
9834 void Sema::ActOnPragmaWeakAlias(IdentifierInfo* Name,
9853 Decl *Sema::getObjCDeclContext() const {
9857 AvailabilityResult Sema::getCurContextAvailability() const {