/frameworks/compile/slang/ |
slang_rs_special_func.cpp | 28 const clang::FunctionDecl *FD) { 29 if (FD->hasAttr<clang::KernelAttr>()) { 33 if (!FD->getName().equals("root")) { 37 if (FD->getNumParams() == 0) { 43 if ((targetAPI < SLANG_ICS_TARGET_API) && (FD->getNumParams() == 1)) { 44 const clang::QualType &IntType = FD->getASTContext().IntTy; 45 if (FD->getReturnType().getCanonicalType() == IntType) { 56 clang::FunctionDecl const *FD) { 57 slangAssert(Context && FD); 59 const clang::ASTContext &C = FD->getASTContext() [all...] |
slang_rs_special_func.h | 30 inline bool isInitRSFunc(const clang::FunctionDecl *FD) { 31 if (!FD) { 34 const llvm::StringRef Name = FD->getName(); 39 inline bool isDtorRSFunc(const clang::FunctionDecl *FD) { 40 if (!FD) { 43 const llvm::StringRef Name = FD->getName(); 49 const clang::FunctionDecl *FD); 52 const clang::FunctionDecl *FD) { 53 return isGraphicsRootRSFunc(targetAPI, FD) || isInitRSFunc(FD) || [all...] |
slang_rs_export_foreach.cpp | 41 bool isRootRSFunc(const clang::FunctionDecl *FD) { 42 if (!FD) { 45 return FD->getName().equals("root"); 55 RSContext *Context, const clang::FunctionDecl *FD) { 56 slangAssert(Context && FD); 59 numParams = FD->getNumParams(); 63 if (!isRootRSFunc(FD)) { 64 Context->ReportError(FD->getLocation(), 67 << FD->getName() << SLANG_MINIMUM_TARGET_API 73 mResultType = FD->getReturnType().getCanonicalType() [all...] |
slang_rs_context.cpp | 95 int RSContext::getForEachSlotNumber(const clang::FunctionDecl* FD) { 96 const clang::StringRef& funcName = FD->getName(); 108 bool RSContext::processExportFunc(const clang::FunctionDecl *FD) { 109 slangAssert(!FD->getName().empty() && "Function name should not be empty"); 111 if (!FD->isThisDeclarationADefinition()) { 115 slangAssert(FD->getStorageClass() == clang::SC_None); 118 if (RSSpecialFunc::isSpecialRSFunc(mTargetAPI, FD)) { 120 return RSSpecialFunc::validateSpecialFuncDecl(mTargetAPI, this, FD); 124 if (RSExportForEach::isRSForEachFunc(mTargetAPI, FD)) { 125 RSExportForEach *EFE = RSExportForEach::Create(this, FD); [all...] |
slang_rs_export_func.cpp | 36 const clang::FunctionDecl *FD) { 37 slangAssert(Context && FD); 38 const clang::ASTContext &C = FD->getASTContext(); 39 if (FD->getReturnType().getCanonicalType() != C.VoidTy) { 41 FD->getLocation(), 51 const clang::FunctionDecl *FD) { 52 llvm::StringRef Name = FD->getName(); 57 if (!ValidateFuncDecl(Context, FD)) { 61 F = new RSExportFunc(Context, Name, FD); 64 if (FD->getNumParams() <= 0) [all...] |
slang_rs_export_foreach.h | 81 const clang::FunctionDecl *FD); 84 const clang::FunctionDecl *FD); 87 const clang::FunctionDecl *FD); 90 const clang::FunctionDecl *FD, 94 const clang::FunctionDecl *FD); 97 const clang::FunctionDecl *FD); 164 const clang::FunctionDecl *FD); 167 const clang::FunctionDecl *FD);
|
slang_rs_check_ast.cpp | 149 void RSCheckAST::ValidateFunctionDecl(clang::FunctionDecl *FD) { 150 if (!FD) { 154 if (FD->hasAttr<clang::KernelAttr>()) { 156 if (FD->getStorageClass() == clang::SC_Static) { 157 Context->ReportError(FD->getLocation(), 160 << FD->getName(); 168 FD->getAttr<clang::KernelAttr>()->getKernelKind(); 171 Context->ReportError(FD->getLocation(), 174 << KernelKind << FD->getName(); 179 clang::QualType resultType = FD->getReturnType().getCanonicalType() [all...] |
slang_rs_export_func.h | 54 const clang::FunctionDecl *FD) 61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD); 65 Context->getMangleContext().mangleName(FD, BufStm); 72 const clang::FunctionDecl *FD);
|
slang_rs_special_kernel_param.h | 36 const clang::FunctionDecl *FD,
|
/external/opencv/cvaux/src/ |
cvfindface.cpp | 50 FaceDetection FD; 51 FD.SetBoosting(false); 52 FD.FindFace(Image); 54 FD.CreateResults(lpSeq); 60 FaceDetection FD; 61 FD.SetBoosting(true); 62 FD.FindFace(Image); 64 FD.CreateResults(lpSeq);
|
/external/libcxx/test/support/ |
platform_support.h | 83 int FD = -1; 86 FD = mkstemp(&Name[0]); 87 if (FD == -1 && errno == EINVAL) { 91 } while (FD == -1); 92 close(FD);
|
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerContext.cpp | 39 bool CheckerContext::isCLibraryFunction(const FunctionDecl *FD, 44 unsigned BId = FD->getBuiltinID(); 48 StringRef BName = FD->getASTContext().BuiltinInfo.getName(BId); 53 const IdentifierInfo *II = FD->getIdentifier(); 60 const DeclContext *DC = FD->getDeclContext(); 71 if (!FD->isInlined() && !FD->isExternallyVisible())
|
/external/libmicrohttpd/src/include/ |
autoinit_funcs.h | 81 #define GNUC_SET_INIT_AND_DEINIT(FI,FD) \ 84 void __attribute__ ((destructor)) _GNUC_deinit_helper_##FD(void) \ 85 { (void)(FD)(); } \ 88 #define _SET_INIT_AND_DEINIT_FUNCS(FI,FD) GNUC_SET_INIT_AND_DEINIT(FI,FD) 196 #define W32_SET_INIT_AND_DEINIT(FI,FD) \ 197 void __cdecl _W32_deinit_helper_##FD(void) \ 198 { (void)(FD)(); } \ 200 { (void)(FI)(); atexit(_W32_deinit_helper_##FD); return 0; } \ 207 #define W32_SET_INIT_AND_DEINIT(FI,FD) \ [all...] |
/external/clang/lib/CodeGen/ |
CGRecordLayout.h | 99 const FieldDecl *FD, 184 /// field FD. 185 unsigned getLLVMFieldNo(const FieldDecl *FD) const { 186 FD = FD->getCanonicalDecl(); 187 assert(FieldInfo.count(FD) && "Invalid field for record!"); 188 return FieldInfo.lookup(FD); 203 /// \brief Return the BitFieldInfo that corresponds to the field FD. 204 const CGBitFieldInfo &getBitFieldInfo(const FieldDecl *FD) const { 205 FD = FD->getCanonicalDecl() [all...] |
/external/llvm/unittests/Support/ |
raw_pwrite_stream_test.cpp | 37 int FD; 38 sys::fs::createTemporaryFile("foo", "bar", FD, Path); 39 raw_fd_ostream OS(FD, true); 55 int FD; 56 sys::fs::openFileForWrite("/dev/null", FD, sys::fs::F_None); 57 raw_fd_ostream OS(FD, true);
|
ReplaceFileTest.cpp | 33 int FD = 0; 34 if (std::error_code ec = fs::openFileForWrite(FilePath, FD, fs::F_None)) 38 raw_fd_ostream OS(FD, ShouldClose); 45 int FD; 51 explicit ScopedFD(int Descriptor) : FD(Descriptor) {} 52 ~ScopedFD() { Process::SafelyCloseFileDescriptor(FD); }
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
VirtualCallChecker.cpp | 71 const FunctionDecl *FD = WLUnit->getDirectCallee(); 72 if (!FD || !FD->getBody()) 74 Kind &K = VisitedFunctions[FD]; 90 const FunctionDecl *FD = WLUnit->getDirectCallee(); 91 assert(FD && FD->getBody()); 93 if (VisitedFunctions[FD] == PreVisited) { 97 Visit(FD->getBody()); 101 VisitedFunctions[FD] = PostVisited [all...] |
/external/llvm/bindings/ocaml/bitwriter/ |
bitwriter_ocaml.c | 31 CAMLprim value llvm_write_bitcode_to_fd(value U, LLVMModuleRef M, value FD) { 41 Result = LLVMWriteBitcodeToFD(M, Int_val(FD), 0, Unbuffered);
|
/external/llvm/lib/Support/ |
ToolOutputFile.cpp | 45 tool_output_file::tool_output_file(StringRef Filename, int FD) 46 : Installer(Filename), OS(FD, true) {}
|
/external/clang/include/clang/Analysis/DomainSpecific/ |
CocoaConventions.h | 37 bool followsCreateRule(const FunctionDecl *FD);
|
/external/clang/lib/ARCMigrate/ |
TransGCCalls.cpp | 48 if (FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(DRE->getDecl())) { 49 if (!FD->getDeclContext()->getRedeclContext()->isFileContext()) 52 if (FD->getIdentifier() == NSMakeCollectableII) { 60 } else if (FD->getIdentifier() == CFMakeCollectableII) {
|
/external/llvm/include/llvm-c/ |
BitWriter.h | 41 int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose,
|
/prebuilts/gdb/darwin-x86/include/python2.7/ |
fileobject.h | 79 int _PyVerify_fd(int fd); 81 /* fdopen doesn't set errno EBADF and crashes for large fd on debug build */ 82 #define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0) 89 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE)) 91 #define _PyIsSelectable_fd(FD) (1)
|
/prebuilts/gdb/linux-x86/include/python2.7/ |
fileobject.h | 79 int _PyVerify_fd(int fd); 81 /* fdopen doesn't set errno EBADF and crashes for large fd on debug build */ 82 #define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0) 89 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE)) 91 #define _PyIsSelectable_fd(FD) (1)
|
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
fileobject.h | 79 int _PyVerify_fd(int fd); 81 /* fdopen doesn't set errno EBADF and crashes for large fd on debug build */ 82 #define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0) 89 #define _PyIsSelectable_fd(FD) (((FD) >= 0) && ((FD) < FD_SETSIZE)) 91 #define _PyIsSelectable_fd(FD) (1)
|