Searched refs:FD (Results 51 - 75 of 388) sorted by relevance

1234567891011>>

/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DNoReturnFunctionChecker.cpp44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
45 BuildSinks = FD->hasAttr<AnalyzerNoReturnAttr>() || FD->isNoReturn();
H A DBuiltinFunctionChecker.cpp36 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); local
37 if (!FD)
43 switch (FD->getBuiltinID()) {
119 if (FD->getBuiltinID() == Builtin::BI__builtin_constant_p) {
H A DPointerArithChecker.cpp49 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
91 const FunctionDecl *FD) const {
94 if (isa<CXXMethodDecl>(FD))
96 if (FD->getNumParams() != 1 || FD->isVariadic())
220 const FunctionDecl *FD = C.getCalleeDecl(CE); local
221 if (!FD)
223 IdentifierInfo *FunI = FD->getIdentifier();
242 const FunctionDecl *FD = NE->getOperatorNew(); local
243 if (!FD)
[all...]
/openbsd-current/gnu/llvm/clang/include/clang/Analysis/
H A DCallGraph.h112 bool VisitFunctionDecl(FunctionDecl *FD) { argument
115 if (includeInGraph(FD) && FD->isThisDeclarationADefinition()) {
117 addNodesForBlocks(FD);
121 addNodeForDecl(FD, FD->isGlobal());
165 Decl *FD; member in class:clang::CallGraphNode
171 CallGraphNode(Decl *D) : FD(D) {}
195 Decl *getDecl() const { return FD; }
H A DRetainSummaryManager.h500 const RetainSummary *getOSSummaryCreateRule(const FunctionDecl *FD);
503 const RetainSummary *getOSSummaryGetRule(const FunctionDecl *FD);
506 const RetainSummary *getOSSummaryRetainRule(const FunctionDecl *FD);
509 const RetainSummary *getOSSummaryReleaseRule(const FunctionDecl *FD);
512 const RetainSummary *getOSSummaryFreeRule(const FunctionDecl *FD);
517 const RetainSummary *getCFSummaryCreateRule(const FunctionDecl *FD);
518 const RetainSummary *getCFSummaryGetRule(const FunctionDecl *FD);
519 const RetainSummary *getCFCreateGetRuleSummary(const FunctionDecl *FD);
602 const RetainSummary * generateSummary(const FunctionDecl *FD,
606 const RetainSummary *getSummaryForOSObject(const FunctionDecl *FD,
[all...]
/openbsd-current/gnu/llvm/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp67 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
68 if (FD->isInlined() && !isa<CXXMethodDecl>(FD) &&
71 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD)) {
78 if (FD->getStorageClass() == StorageClass::SC_Static)
86 if (const auto *FD =
88 return FD;
123 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
124 if (FD->isDependentContext())
246 if (const auto *FD
[all...]
/openbsd-current/gnu/llvm/clang/lib/Sema/
H A DSema.cpp602 FunctionDecl *FD = getCurFunctionDecl();
603 if (FD && FD->isDefaulted()) {
727 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
730 if (FunctionTemplateDecl *Template = FD->getDescribedFunctionTemplate())
738 if (FD->hasBody(DeclToCheck))
743 DeclToCheck = FD->getMostRecentDecl();
744 if (DeclToCheck != FD)
782 if (auto *FD = dyn_cast<FunctionDecl>(ND))
783 return FD
1614 emitCallStackNotes(Sema &S, FunctionDecl *FD) argument
1716 checkFunc(SourceLocation Loc, FunctionDecl *FD) argument
1750 checkFunc(SourceLocation(), FD); local
1756 emitDeferredDiags(FunctionDecl *FD, bool ShowCallStack) argument
1872 targetDiag(SourceLocation Loc, unsigned DiagID, FunctionDecl *FD) argument
1940 FunctionDecl *FD = isa<FunctionDecl>(C) ? cast<FunctionDecl>(C) local
[all...]
H A DSemaDecl.cpp1473 FunctionDecl *FD = D->getAsFunction(); local
1474 if (!FD)
1479 assert(CurContext == FD->getLexicalParent() &&
1481 CurContext = FD;
1484 for (unsigned P = 0, NumParams = FD->getNumParams(); P < NumParams; ++P) {
1485 ParmVarDecl *Param = FD->getParamDecl(P);
1897 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
1898 if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
1902 if (FD->getTemplateSpecializationKind() == TSK_ExplicitSpecialization &&
1903 FD
[all...]
H A DSemaCoroutine.cpp52 static QualType lookupPromiseType(Sema &S, const FunctionDecl *FD, argument
54 const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>();
55 const SourceLocation FuncLoc = FD->getLocation();
74 if (auto *MD = dyn_cast<CXXMethodDecl>(FD)) {
191 auto *FD = dyn_cast<FunctionDecl>(S.CurContext); local
192 if (!FD) {
219 auto *MD = dyn_cast<CXXMethodDecl>(FD);
227 else if (FD->isMain())
234 if (FD->isConstexpr())
235 DiagInvalid(FD
483 auto *FD = cast<FunctionDecl>(CurContext); local
1093 CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body) argument
1142 CoroutineStmtBuilder(Sema &S, FunctionDecl &FD, sema::FunctionScopeInfo &Fn, Stmt *Body) argument
1273 collectPlacementArgs(Sema &S, FunctionDecl &FD, SourceLocation Loc, SmallVectorImpl<Expr *> &PlacementArgs) argument
1474 S.Diag(Loc, diag::err_coroutine_unusable_new) << PromiseType << &FD; local
1793 auto *FD = cast<FunctionDecl>(CurContext); local
[all...]
H A DSemaDeclCXX.cpp452 static bool functionDeclHasDefaultArgument(const FunctionDecl *FD) { argument
453 return llvm::any_of(FD->parameters(), [](ParmVarDecl *P) {
1422 RD->fields(), [](FieldDecl *FD) { return !FD->isUnnamedBitfield(); });
1434 for (auto *FD : RD->fields()) {
1435 if (FD->isUnnamedBitfield())
1440 if (!FD->getDeclName()) {
1447 if (FD->isAnonymousStructOrUnion()) {
1449 << DecompType << FD->getType()->isUnionType();
1450 S.Diag(FD
[all...]
/openbsd-current/gnu/llvm/clang/lib/Analysis/
H A DCallGraph.cpp84 for (FunctionDecl *FD : FTD->specializations())
85 G->VisitFunctionDecl(FD);
91 if (FunctionDecl *FD = E->getOperatorNew())
92 addCalledDecl(FD, E);
164 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
167 if (FD->isDependentContext())
170 IdentifierInfo *II = FD->getIdentifier();
255 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD))
/openbsd-current/gnu/llvm/llvm/lib/Support/
H A DTarWriter.cpp172 int FD; local
174 openFileForWrite(OutputPath, FD, CD_CreateAlways, OF_None))
176 return std::unique_ptr<TarWriter>(new TarWriter(FD, BaseDir));
179 TarWriter::TarWriter(int FD, StringRef BaseDir) argument
180 : OS(FD, /*shouldClose=*/true, /*unbuffered=*/false),
H A Draw_ostream.cpp587 int FD; local
589 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags);
591 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags);
595 return FD;
622 /// FD is the file descriptor that this writes to. If ShouldClose is true, this
626 : raw_pwrite_stream(unbuffered, K), FD(fd), ShouldClose(shouldClose) {
627 if (FD < 0 ) {
640 if (FD <= STDERR_FILENO)
650 off_t loc = ::lseek(FD, 0, SEEK_CUR);
652 std::error_code EC = status(FD, Statu
708 write_console_impl(int FD, StringRef Data) argument
[all...]
H A DPath.cpp832 int FD;
833 auto EC = createUniqueFile(Model, FD, ResultPath, OF_None, Mode);
836 // FD is only needed to avoid race conditions. Close it right away.
837 close(FD);
874 int FD;
875 auto EC = createTemporaryFile(Prefix, Suffix, FD, ResultPath, Flags);
878 // FD is only needed to avoid race conditions. Close it right away.
879 close(FD);
1047 ErrorOr<MD5::MD5Result> md5_contents(int FD) {
1054 BytesRead = read(FD, Bu
[all...]
/openbsd-current/gnu/llvm/clang/lib/AST/
H A DComment.cpp230 const FunctionDecl *FD = cast<FunctionDecl>(CommentDecl); local
232 ParamVars = FD->parameters();
233 ReturnType = FD->getReturnType();
234 unsigned NumLists = FD->getNumTemplateParameterLists();
238 FD->getTemplateParameterList(NumLists - 1);
247 IsVariadic = FD->isVariadic();
267 const FunctionDecl *FD = FTD->getTemplatedDecl(); local
268 ParamVars = FD->parameters();
269 ReturnType = FD->getReturnType();
271 IsVariadic = FD
[all...]
H A DInheritViz.cpp139 int FD; local
142 Self.getAsString(), "dot", FD, Filename)) {
149 llvm::raw_fd_ostream O(FD, true);
/openbsd-current/gnu/llvm/clang/lib/AST/Interp/
H A DContext.cpp29 bool Context::isPotentialConstantExpr(State &Parent, const FunctionDecl *FD) { argument
31 Function *Func = P->getFunction(FD);
33 if (auto R = ByteCodeStmtGen<ByteCodeEmitter>(*this, *P).compileFunc(FD)) {
/openbsd-current/gnu/llvm/llvm/tools/llvm-cov/
H A DTestingSupport.cpp103 int FD; local
104 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) {
109 raw_fd_ostream OS(FD, true);
/openbsd-current/gnu/llvm/clang/tools/clang-extdef-mapping/
H A DClangExtDefMapGen.cpp69 if (const auto *FD = dyn_cast<FunctionDecl>(D)) {
70 if (FD->isThisDeclarationADefinition())
71 if (const Stmt *Body = FD->getBody())
72 addIfInMain(FD, Body->getBeginLoc());
/openbsd-current/gnu/llvm/llvm/include/llvm/IR/
H A DPrintPasses.h61 // Ensure temporary files exist, creating or re-using them. \p FD contains
66 std::error_code prepareTempFiles(SmallVector<int> &FD, ArrayRef<StringRef> SR,
/openbsd-current/gnu/llvm/llvm/include/llvm/Support/
H A DToolOutputFile.h57 ToolOutputFile(StringRef Filename, int FD);
/openbsd-current/gnu/llvm/clang/lib/Serialization/
H A DASTCommon.h101 if (auto *FD = dyn_cast<FriendDecl>(LexicalD))
102 LexicalD = FD->getFriendDecl();
/openbsd-current/gnu/llvm/clang/lib/CodeGen/
H A DCGHLSLRuntime.h86 void setHLSLEntryAttributes(const FunctionDecl *FD, llvm::Function *Fn);
88 void emitEntryFunction(const FunctionDecl *FD, llvm::Function *Fn);
/openbsd-current/gnu/llvm/clang/tools/libclang/
H A DCXType.cpp388 if (const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(D)) {
389 if (FD->isBitField())
390 return FD->getBitWidthValue(getCursorContext(C));
654 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>())
655 return (unsigned)FD->isVariadic();
668 if (const FunctionType *FD = T->getAs<FunctionType>()) {
670 switch (FD->getCallConv()) {
705 if (const FunctionProtoType *FD = T->getAs<FunctionProtoType>()) {
706 return FD->getNumParams();
721 if (const FunctionProtoType *FD
1101 const FunctionProtoType *FD = QT->getAs<FunctionProtoType>(); local
1118 const FieldDecl *FD = dyn_cast_or_null<FieldDecl>(cxcursor::getCursorDecl(C)); local
1268 const FieldDecl *FD = dyn_cast_or_null<FieldDecl>((*I)); local
[all...]
/openbsd-current/gnu/llvm/clang/include/clang/AST/
H A DDeclFriend.h148 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
149 return FD->getSourceRange();
249 inline void CXXRecordDecl::pushFriendDecl(FriendDecl *FD) { argument
250 assert(!FD->NextFriend && "friend already has next friend?");
251 FD->NextFriend = data().FirstFriend;
252 data().FirstFriend = FD;

Completed in 398 milliseconds

1234567891011>>