Home
last modified time | relevance | path

Searched refs:NewD (Results 1 – 3 of 3) sorted by relevance

/external/clang/lib/Sema/
DSemaCUDA.cpp444 void Sema::maybeAddCUDAHostDeviceAttrs(Scope *S, FunctionDecl *NewD, in maybeAddCUDAHostDeviceAttrs() argument
447 if (!getLangOpts().CUDAHostDeviceConstexpr || !NewD->isConstexpr() || in maybeAddCUDAHostDeviceAttrs()
448 NewD->isVariadic() || NewD->hasAttr<CUDAHostAttr>() || in maybeAddCUDAHostDeviceAttrs()
449 NewD->hasAttr<CUDADeviceAttr>() || NewD->hasAttr<CUDAGlobalAttr>()) in maybeAddCUDAHostDeviceAttrs()
460 !IsOverload(NewD, OldD, /* UseMemberUsingDeclRules = */ false, in maybeAddCUDAHostDeviceAttrs()
471 Diag(NewD->getLocation(), in maybeAddCUDAHostDeviceAttrs()
473 << NewD->getName(); in maybeAddCUDAHostDeviceAttrs()
480 NewD->addAttr(CUDAHostAttr::CreateImplicit(Context)); in maybeAddCUDAHostDeviceAttrs()
481 NewD->addAttr(CUDADeviceAttr::CreateImplicit(Context)); in maybeAddCUDAHostDeviceAttrs()
DSemaDeclAttr.cpp6019 NamedDecl *NewD = nullptr; in DeclClonePragmaWeak() local
6032 NewD = NewFD; in DeclClonePragmaWeak()
6050 NewD = VarDecl::Create(VD->getASTContext(), VD->getDeclContext(), in DeclClonePragmaWeak()
6055 VarDecl *NewVD = cast<VarDecl>(NewD); in DeclClonePragmaWeak()
6059 return NewD; in DeclClonePragmaWeak()
6069 NamedDecl *NewD = DeclClonePragmaWeak(ND, W.getAlias(), W.getLocation()); in DeclApplyPragmaWeak() local
6070 NewD->addAttr(AliasAttr::CreateImplicit(Context, NDId->getName(), in DeclApplyPragmaWeak()
6072 NewD->addAttr(WeakAttr::CreateImplicit(Context, W.getLocation())); in DeclApplyPragmaWeak()
6073 WeakTopLevelDecl.push_back(NewD); in DeclApplyPragmaWeak()
6078 NewD->setDeclContext(CurContext); in DeclApplyPragmaWeak()
[all …]
/external/clang/include/clang/AST/
DExpr.h1019 void setDecl(ValueDecl *NewD) { D = NewD; } in setDecl() argument