/external/llvm-project/clang/lib/Sema/ |
D | SemaDecl.cpp | 8234 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD, in DiagnoseInvalidRedeclaration() argument 8236 DeclarationName Name = NewFD->getDeclName(); in DiagnoseInvalidRedeclaration() 8237 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration() 8244 NewFD->getFriendObjectKind() ? diag::err_qualified_friend_no_match : in DiagnoseInvalidRedeclaration() 8246 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration() 8251 NewFD->setInvalidDecl(); in DiagnoseInvalidRedeclaration() 8258 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in DiagnoseInvalidRedeclaration() 8259 DifferentNameValidatorCCC CCC(SemaRef.Context, NewFD, in DiagnoseInvalidRedeclaration() 8266 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration() 8289 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration() [all …]
|
D | SemaCUDA.cpp | 810 void Sema::checkCUDATargetOverload(FunctionDecl *NewFD, in checkCUDATargetOverload() argument 813 CUDAFunctionTarget NewTarget = IdentifyCUDATarget(NewFD); in checkCUDATargetOverload() 828 !IsOverload(NewFD, OldFD, /* UseMemberUsingDeclRules = */ false, in checkCUDATargetOverload() 830 Diag(NewFD->getLocation(), diag::err_cuda_ovl_target) in checkCUDATargetOverload() 831 << NewTarget << NewFD->getDeclName() << OldTarget << OldFD; in checkCUDATargetOverload() 833 NewFD->setInvalidDecl(); in checkCUDATargetOverload()
|
D | SemaDeclCXX.cpp | 1720 bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD, in CheckConstexprFunctionDefinition() argument 1722 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition() 1736 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base) in CheckConstexprFunctionDefinition() 1737 << isa<CXXConstructorDecl>(NewFD) in CheckConstexprFunctionDefinition() 1746 if (!isa<CXXConstructorDecl>(NewFD)) { in CheckConstexprFunctionDefinition() 1751 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDefinition() 1776 if (!CheckConstexprReturnType(*this, NewFD, Kind)) in CheckConstexprFunctionDefinition() 1780 if (auto *Dtor = dyn_cast<CXXDestructorDecl>(NewFD)) { in CheckConstexprFunctionDefinition() 1793 if (!CheckConstexprParameterTypes(*this, NewFD, Kind)) in CheckConstexprFunctionDefinition() 1796 Stmt *Body = NewFD->getBody(); in CheckConstexprFunctionDefinition() [all …]
|
D | SemaDeclAttr.cpp | 8253 FunctionDecl *NewFD; in DeclClonePragmaWeak() local 8258 NewFD = FunctionDecl::Create( in DeclClonePragmaWeak() 8263 NewD = NewFD; in DeclClonePragmaWeak() 8266 NewFD->setQualifierInfo(FD->getQualifierLoc()); in DeclClonePragmaWeak() 8274 ParmVarDecl *Param = BuildParmVarDeclForTypedef(NewFD, Loc, AI); in DeclClonePragmaWeak() 8278 NewFD->setParams(Params); in DeclClonePragmaWeak()
|
D | SemaOpenMP.cpp | 6260 auto *NewFD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl()); in checkOpenMPDeclareVariantFunction() local 6261 if (!NewFD) { in checkOpenMPDeclareVariantFunction() 6270 Context.mergeFunctionTypes(FD->getType(), NewFD->getType()); in checkOpenMPDeclareVariantFunction() 6274 << NewFD->getType() << FD->getType() << VariantRef->getSourceRange(); in checkOpenMPDeclareVariantFunction() 6279 setPrototype(*this, FD, NewFD, NewType); in checkOpenMPDeclareVariantFunction() 6280 else if (NewFD->getType()->isFunctionNoProtoType()) in checkOpenMPDeclareVariantFunction() 6281 setPrototype(*this, NewFD, FD, NewType); in checkOpenMPDeclareVariantFunction() 6286 if (NewFD->hasAttrs() && NewFD->hasAttr<OMPDeclareVariantAttr>()) { in checkOpenMPDeclareVariantFunction() 6291 NewFD->specific_attr_begin<OMPDeclareVariantAttr>()->getRange(); in checkOpenMPDeclareVariantFunction() 6339 << (NewFD->isConsteval() ? ConstevalFuncs : ConstexprFuncs); in checkOpenMPDeclareVariantFunction() [all …]
|
D | SemaLookup.cpp | 3491 FunctionDecl *NewFD = New->getAsFunction(); in insert() local 3493 FunctionDecl *Cursor = NewFD; in insert()
|
D | SemaExpr.cpp | 19083 FunctionDecl *NewFD = FunctionDecl::Create( in resolveDecl() local 19090 NewFD->setQualifierInfo(FD->getQualifierLoc()); in resolveDecl() 19099 NewFD->setParams(Params); in resolveDecl() 19100 DRE->setDecl(NewFD); in resolveDecl()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 7161 Sema &SemaRef, LookupResult &Previous, FunctionDecl *NewFD, in DiagnoseInvalidRedeclaration() argument 7163 DeclarationName Name = NewFD->getDeclName(); in DiagnoseInvalidRedeclaration() 7164 DeclContext *NewDC = NewFD->getDeclContext(); in DiagnoseInvalidRedeclaration() 7171 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration() 7176 NewFD->setInvalidDecl(); in DiagnoseInvalidRedeclaration() 7183 CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in DiagnoseInvalidRedeclaration() 7189 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration() 7202 SemaRef.Context, NewFD, MD ? MD->getParent() : nullptr), in DiagnoseInvalidRedeclaration() 7214 hasSimilarParameters(SemaRef.Context, FD, NewFD, MismatchedParams)) { in DiagnoseInvalidRedeclaration() 7233 NewFD->getTypeSourceInfo(), Previous, ExtraArgs.TemplateParamLists, in DiagnoseInvalidRedeclaration() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 2520 CXXMethodDecl *NewFD = in VisitClassScopeFunctionSpecializationDecl() local 2522 if (!NewFD) in VisitClassScopeFunctionSpecializationDecl() 2525 LookupResult Previous(SemaRef, NewFD->getNameInfo(), Sema::LookupOrdinaryName, in VisitClassScopeFunctionSpecializationDecl() 2536 if (SemaRef.CheckFunctionTemplateSpecialization(NewFD, TemplateArgsPtr, in VisitClassScopeFunctionSpecializationDecl() 2538 NewFD->setInvalidDecl(); in VisitClassScopeFunctionSpecializationDecl() 2539 return NewFD; in VisitClassScopeFunctionSpecializationDecl() 2547 return NewFD; in VisitClassScopeFunctionSpecializationDecl()
|
D | SemaDeclAttr.cpp | 6021 FunctionDecl *NewFD; in DeclClonePragmaWeak() local 6026 NewFD = FunctionDecl::Create(FD->getASTContext(), FD->getDeclContext(), in DeclClonePragmaWeak() 6032 NewD = NewFD; in DeclClonePragmaWeak() 6035 NewFD->setQualifierInfo(FD->getQualifierLoc()); in DeclClonePragmaWeak() 6043 ParmVarDecl *Param = BuildParmVarDeclForTypedef(NewFD, Loc, AI); in DeclClonePragmaWeak() 6047 NewFD->setParams(Params); in DeclClonePragmaWeak()
|
D | SemaDeclCXX.cpp | 803 bool Sema::CheckConstexprFunctionDecl(const FunctionDecl *NewFD) { in CheckConstexprFunctionDecl() argument 804 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl() 812 Diag(NewFD->getLocation(), diag::err_constexpr_virtual_base) in CheckConstexprFunctionDecl() 813 << isa<CXXConstructorDecl>(NewFD) in CheckConstexprFunctionDecl() 822 if (!isa<CXXConstructorDecl>(NewFD)) { in CheckConstexprFunctionDecl() 827 const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(NewFD); in CheckConstexprFunctionDecl() 844 QualType RT = NewFD->getReturnType(); in CheckConstexprFunctionDecl() 846 RequireLiteralType(NewFD->getLocation(), RT, in CheckConstexprFunctionDecl() 852 if (!CheckConstexprParameterTypes(*this, NewFD)) in CheckConstexprFunctionDecl()
|
D | SemaLookup.cpp | 3234 FunctionDecl *NewFD = New->getAsFunction(); in insert() local 3236 FunctionDecl *Cursor = NewFD; in insert()
|
D | SemaExpr.cpp | 14802 FunctionDecl *NewFD = FunctionDecl::Create(FD->getASTContext(), in resolveDecl() local 14811 NewFD->setQualifierInfo(FD->getQualifierLoc()); in resolveDecl() 14820 NewFD->setParams(Params); in resolveDecl() 14821 DRE->setDecl(NewFD); in resolveDecl()
|
/external/llvm-project/clang/unittests/CrossTU/ |
D | CrossTranslationUnitTest.cpp | 90 const FunctionDecl *NewFD = *NewFDorError; in HandleTranslationUnit() local 91 *Success = NewFD && NewFD->hasBody() && !OrigFDHasBody; in HandleTranslationUnit() 93 if (NewFD) { in HandleTranslationUnit() 96 CTU.getImportedFromSourceLocation(NewFD->getLocation()); in HandleTranslationUnit() 118 Ctx.getParentMapContext().getParents<Decl>(*NewFD); in HandleTranslationUnit()
|
/external/llvm-project/llvm/unittests/Support/ |
D | CommandLineTest.cpp | 1137 sys::fs::createTemporaryFile("unittest-redirect", "", NewFD, in OutputRedirector() 1139 dup2(NewFD, RedirectFD) == -1) in OutputRedirector() 1146 close(NewFD); in ~OutputRedirector() 1155 int NewFD; member in __anon0c4405960111::OutputRedirector
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 2558 FunctionDecl *NewFD, LookupResult &Previous, 10166 const FunctionDecl *OldFD, const FunctionDecl *NewFD, 11977 void checkCUDATargetOverload(FunctionDecl *NewFD,
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1739 FunctionDecl *NewFD, LookupResult &Previous,
|