Lines Matching refs:FD
67 void RSBackend::AnnotateFunction(clang::FunctionDecl *FD) {
68 if (FD &&
69 FD->hasBody() &&
70 !SlangRS::IsFunctionInRSHeaderFile(FD, mSourceMgr)) {
72 mRefCount.Visit(FD->getBody());
83 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
84 if (FD == NULL)
86 if (!FD->getName().startswith("rs")) // Check prefix
88 if (!SlangRS::IsFunctionInRSHeaderFile(FD, mSourceMgr))
90 clang::FullSourceLoc(FD->getLocation(), mSourceMgr),
94 << FD->getName();
100 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
101 if (FD && FD->isGlobal()) {
102 AnnotateFunction(FD);
171 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor();
172 if (FD) {
173 HandleTopLevelDecl(clang::DeclGroupRef(FD));
181 clang::FunctionDecl *FD = llvm::dyn_cast<clang::FunctionDecl>(*I);
182 if (FD && !FD->isGlobal()) {
183 AnnotateFunction(FD);