/external/clang/test/SemaTemplate/ |
default-expr-arguments.cpp | 41 struct FD : F<int> { }; 45 FD fd; local
|
/external/llvm/tools/bugpoint/ |
OptimizerDriver.cpp | 72 bool BugDriver::writeProgramToFile(const std::string &Filename, int FD, 74 tool_output_file Out(Filename, FD);
|
ExtractFunction.cpp | 376 int FD; 378 OutputPrefix + "-extractblocks%%%%%%%", FD, Filename); 387 tool_output_file BlocksToNotExtractFile(Filename.c_str(), FD);
|
/external/clang/lib/Basic/ |
VirtualFileSystem.cpp | 121 int FD; 124 RealFile(int FD, StringRef NewName) 125 : FD(FD), S(NewName, {}, {}, {}, {}, {}, 127 assert(FD >= 0 && "Invalid or inactive file descriptor"); 143 assert(FD != -1 && "cannot stat closed file"); 146 if (std::error_code EC = sys::fs::status(FD, RealStatus)) 156 assert(FD != -1 && "cannot get buffer for closed file"); 157 return MemoryBuffer::getOpenFile(FD, Name, FileSize, RequiresNullTerminator, 172 if (::close(FD)) [all...] |
/external/clang/lib/Sema/ |
SemaDeclAttr.cpp | 99 if (const auto *FD = dyn_cast<FunctionDecl>(D)) 100 return FD->getParamDecl(Idx)->getSourceRange(); 115 if (const auto *FD = dyn_cast<FunctionDecl>(D)) 116 return FD->getReturnTypeSourceRange(); 544 FunctionDecl *FD = dyn_cast<FunctionDecl>(D); 546 if(FD && IL) { 547 unsigned int NumParams = FD->getNumParams(); 556 ArgTy = FD->getParamDecl(ParamIdxFromZero)->getType(); [all...] |
AnalysisBasedWarnings.cpp | 168 static bool hasRecursiveCallInPath(const FunctionDecl *FD, CFGBlock &Block) { 169 // Process all the Stmt's in this block to find any calls to FD. 176 CE->getCalleeDecl()->getCanonicalDecl() != FD) 207 // to the exit block passes through a call to FD. 208 static bool checkForRecursiveFunctionCall(const FunctionDecl *FD, CFG *cfg) { 233 if (hasRecursiveCallInPath(FD, *CurBlock)) 254 static void checkRecursiveFunction(Sema &S, const FunctionDecl *FD, 256 FD = FD->getCanonicalDecl(); 260 if (FD->getTemplatedKind() != FunctionDecl::TK_NonTemplate & [all...] |
SemaDeclCXX.cpp | 420 static bool functionDeclHasDefaultArgument(const FunctionDecl *FD) { 421 for (unsigned NumParams = FD->getNumParams(); NumParams > 0; --NumParams) { 422 const ParmVarDecl *PVD = FD->getParamDecl(NumParams-1); 712 void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) { 713 unsigned NumParams = FD->getNumParams(); 718 ParmVarDecl *Param = FD->getParamDecl(p); 731 ParmVarDecl *Param = FD->getParamDecl(p); 753 ParmVarDecl *Param = FD->getParamDecl(p); 765 const FunctionDecl *FD) { 767 const FunctionProtoType *FT = FD->getType()->getAs<FunctionProtoType>() [all...] |
/external/llvm/tools/llvm-ar/ |
llvm-ar.cpp | 348 int FD; 350 sys::fs::openFileForWrite(Storage.c_str(), FD, sys::fs::F_None, Mode), 354 raw_fd_ostream file(FD, false); 367 sys::fs::setLastModificationAndAccessTime(FD, C.getLastModified())); 369 if (close(FD))
|
/external/lzma/C/ |
Aes.c | 127 #define FD(i, x) InvS[gb ## x(m[(i - x) & 3])]
128 #define FD4(i) dest[i] = Ui32(FD(i, 0), FD(i, 1), FD(i, 2), FD(i, 3)) ^ w[i];
|
/external/clang/lib/AST/ |
Decl.cpp | 543 const auto *FD = dyn_cast<FunctionDecl>(D); 544 if (!FD) 549 = FD->getTemplateSpecializationInfo()) { 552 FD->getMemberSpecializationInfo()) { 562 FD->hasBody(Def) && Def->isInlined() && !Def->hasAttr<GNUInlineAttr>(); [all...] |
DeclBase.cpp | 188 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(this)) 189 return FD; 524 } else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(this)) { 525 if (FD->hasBody()) { 724 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(this)) { 726 if (FD->hasBody(Definition)) 797 } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 798 return FD; [all...] |
ASTContext.cpp | 83 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 84 if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation) 264 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) { 266 if (const FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate()) 270 if (FD->getTemplateSpecializationKind() != TSK_ImplicitInstantiation) 274 if (const FunctionTemplateDecl *FTD = FD->getPrimaryTemplate()) 279 FD->getInstantiatedFromMemberFunction()) [all...] |
Expr.cpp | 525 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurrentDecl)) { 527 return FD->getNameAsString(); 532 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) { 543 const FunctionDecl *Decl = FD; 544 if (const FunctionDecl* Pattern = FD->getTemplateInstantiationPattern()) 548 if (FD->hasWrittenPrototype()) 563 FD->printQualifiedName(POut, Policy); 573 if (FD->getNumParams()) POut << ", "; 579 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) { 594 const DeclContext *Ctx = FD->getDeclContext() [all...] |
/external/clang/lib/CodeGen/ |
TargetInfo.cpp | 356 static bool isEmptyField(ASTContext &Context, const FieldDecl *FD, 358 if (FD->isUnnamedBitfield()) 361 QualType FT = FD->getType(); 448 for (const auto *FD : RD->fields()) { 449 QualType FT = FD->getType(); 452 if (isEmptyField(Context, FD, true)) 530 for (const auto *FD : RD->fields()) { 531 if (!is32Or64BitBasicType(FD->getType(), Context)) 537 if (FD->isBitField()) 540 Size += Context.getTypeSize(FD->getType()) [all...] |
CGDebugInfo.cpp | 181 StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) { 182 assert(FD && "Invalid FunctionDecl!"); 183 IdentifierInfo *FII = FD->getIdentifier(); 185 FD->getTemplateSpecializationInfo(); 198 FD->printQualifiedName(OS, Policy); 202 FD->printName(OS); [all...] |
CGDebugInfo.h | 231 llvm::DINodeArray CollectFunctionTemplateParams(const FunctionDecl *FD, 455 llvm::DISubprogram *getFunctionForwardDeclaration(const FunctionDecl *FD); 477 StringRef getFunctionName(const FunctionDecl *FD); 481 StringRef getObjCMethodName(const ObjCMethodDecl *FD);
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
CallEvent.h | 224 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) 225 return FD->isOverloadedOperator() && FD->isImplicit() && FD->isGlobal(); 406 const FunctionDecl *FD = getDecl(); 409 if (FD) { 412 getManager()->getContext(FD); [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
CallEvent.cpp | 122 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); 123 if (!FD) 126 return CheckerContext::isCLibraryFunction(FD, FunctionName); 263 if (const FunctionDecl* FD = dyn_cast<FunctionDecl>(D)) 264 return FD->getReturnType(); 293 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) 294 return FD->isVariadic(); [all...] |
HTMLDiagnostics.cpp | 291 int FD; 303 llvm::sys::fs::createUniqueFile(Model, FD, ResultPath)) { 324 FD, 336 llvm::raw_fd_ostream os(FD, true);
|
/external/llvm/unittests/Support/ |
Path.cpp | 824 int FD; 826 ASSERT_NO_ERROR(fs::createTemporaryFile("prefix", "temp", FD, TempPath)); 827 ASSERT_NO_ERROR(fs::resize_file(FD, 123)); 829 ASSERT_NO_ERROR(fs::status(FD, Status)); 856 int FD; 857 EC = fs::openFileForRead(Twine(TempPath), FD); 859 fs::mapped_file_region mfr(FD, fs::mapped_file_region::readonly, Size, 0, EC); 866 fs::mapped_file_region m(FD, fs::mapped_file_region::readonly, Size, 0, EC); 868 ASSERT_EQ(close(FD), 0); [all...] |
/external/clang/lib/Rewrite/ |
Rewriter.cpp | 409 int FD; 410 if (llvm::sys::fs::createUniqueFile(TempFilename, FD, TempFilename)) { 415 FileStream.reset(new llvm::raw_fd_ostream(FD, /*shouldClose=*/true));
|
/external/llvm/include/llvm/Support/ |
FileSystem.h | 357 /// @param FD Input file descriptor. 361 std::error_code resize_file(int FD, uint64_t Size); 507 std::error_code status(int FD, file_status &Result); 529 std::error_code setLastModificationAndAccessTime(int FD, TimeValue Time); 564 /// @returns errc::success if Result{FD,Path} have been successfully set, 659 std::error_code init(int FD, uint64_t Offset, mapmode Mode); 662 /// \param fd An open file descriptor to map. mapped_file_region takes 665 mapped_file_region(int fd, mapmode mode, uint64_t length, uint64_t offset,
|
/external/llvm/lib/Object/ |
ArchiveWriter.cpp | 335 ErrorOr<int> FD = Member.getFD(Status); 336 if (auto EC = FD.getError()) 339 MemoryBuffer::getOpenFile(FD.get(), Filename, Status.getSize(), 343 if (close(FD.get()) != 0)
|
/external/llvm/lib/Support/ |
Host.cpp | 58 int FD; 59 std::error_code EC = sys::fs::openFileForRead("/proc/cpuinfo", FD); 64 int Ret = read(FD, Buf, Size); 65 int CloseStatus = close(FD);
|
/external/clang/lib/Parse/ |
ParseCXXInlineMethods.cpp | 120 FunctionDecl *FD = FnD->getAsFunction(); 121 Actions.CheckForFunctionRedefinition(FD); 122 Actions.MarkAsLateParsedTemplate(FD, FnD, Toks); 172 FunctionDecl *FD = FnD->getAsFunction(); 173 Actions.CheckForFunctionRedefinition(FD); 174 FD->setLateTemplateParsed(true); [all...] |