/external/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 615 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 799 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 113 class FormatAttr; variable 2188 FormatAttr *mergeFormatAttr(Decl *D, SourceRange Range, 9342 static bool getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember, 9420 static FormatStringType GetFormatStringType(const FormatAttr *Format); 9424 static bool GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx); 9427 bool CheckFormatArguments(const FormatAttr *Format,
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 1875 bool Sema::getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember, in getFormatStringInfo() 1930 bool Sema::GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx) { in GetFormatNSStringIdx() 1954 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI() 2095 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in checkCall() 3937 for (const auto *PVFormat : ND->specific_attrs<FormatAttr>()) { in checkFormatStringExpr() 4011 Sema::FormatStringType Sema::GetFormatStringType(const FormatAttr *Format) { in GetFormatStringType() 4027 bool Sema::CheckFormatArguments(const FormatAttr *Format, in CheckFormatArguments()
|
D | SemaDeclAttr.cpp | 2863 FormatAttr *Sema::mergeFormatAttr(Decl *D, SourceRange Range, in mergeFormatAttr() 2868 for (auto *F : D->specific_attrs<FormatAttr>()) { in mergeFormatAttr() 2880 return ::new (Context) FormatAttr(Range, Context, Format, FormatIdx, in mergeFormatAttr() 3001 FormatAttr *NewAttr = S.mergeFormatAttr(D, Attr.getRange(), II, in handleFormatAttr()
|
D | SemaDecl.cpp | 2271 else if (const auto *FA = dyn_cast<FormatAttr>(Attr)) in mergeDeclAttribute() 11835 if (!FD->hasAttr<FormatAttr>()) { in AddKnownFunctionAttributes() 11841 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes() 11850 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes() 11851 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes() 11916 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes() 11917 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes()
|
D | SemaExprObjC.cpp | 2278 for (const auto *I : Method->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInObjCAPI()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 129 class FormatAttr; variable 3173 FormatAttr *mergeFormatAttr(Decl *D, const AttributeCommonInfo &CI, 12186 static bool getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember, 12322 static FormatStringType GetFormatStringType(const FormatAttr *Format); 12326 static bool GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx); 12329 bool CheckFormatArguments(const FormatAttr *Format,
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaChecking.cpp | 4235 bool Sema::getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember, in getFormatStringInfo() 4291 bool Sema::GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx) { in GetFormatNSStringIdx() 4316 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInCFAPI() 4462 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in checkCall() 7208 for (const auto *PVFormat : ND->specific_attrs<FormatAttr>()) { in checkFormatStringExpr() 7372 Sema::FormatStringType Sema::GetFormatStringType(const FormatAttr *Format) { in GetFormatStringType() 7389 bool Sema::CheckFormatArguments(const FormatAttr *Format, in CheckFormatArguments()
|
D | SemaDeclAttr.cpp | 3335 FormatAttr *Sema::mergeFormatAttr(Decl *D, const AttributeCommonInfo &CI, in mergeFormatAttr() 3339 for (auto *F : D->specific_attrs<FormatAttr>()) { in mergeFormatAttr() 3351 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr() 3471 FormatAttr *NewAttr = S.mergeFormatAttr(D, AL, II, Idx, FirstArg); in handleFormatAttr()
|
D | SemaDecl.cpp | 2570 else if (const auto *FA = dyn_cast<FormatAttr>(Attr)) in mergeDeclAttribute() 14870 if (!FD->hasAttr<FormatAttr>()) { in AddKnownFunctionAttributes() 14876 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes() 14885 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes() 14886 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes() 14978 if (!FD->hasAttr<FormatAttr>()) in AddKnownFunctionAttributes() 14979 FD->addAttr(FormatAttr::CreateImplicit(Context, in AddKnownFunctionAttributes()
|
D | SemaExprObjC.cpp | 2553 for (const auto *I : Method->specific_attrs<FormatAttr>()) { in DiagnoseCStringFormatDirectiveInObjCAPI()
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 5878 auto *FromAttr = FromD->getAttr<FormatAttr>(); in TEST_P() 5879 auto *ToAttr = ToD->getAttr<FormatAttr>(); in TEST_P()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 8142 const auto *From = cast<FormatAttr>(FromAttr); in Import() 8143 FormatAttr *To; in Import() 8145 To = FormatAttr::Create(ToContext, ToAttrType, From->getFormatIdx(), in Import()
|