[clang] [llvm] Introduce a new WebKit checker for a unchecked call arguments (#113708) (PR #114522)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 08:33:01 PST 2024


================
@@ -55,10 +55,18 @@ bool isCheckedPtr(const clang::CXXRecordDecl *Class);
 /// not, std::nullopt if inconclusive.
 std::optional<bool> isUncounted(const clang::QualType T);
 
+/// \returns true if \p Class is CheckedPtr capable AND not checked, false if
+/// not, std::nullopt if inconclusive.
+std::optional<bool> isUnchecked(const clang::QualType T);
----------------
rniwa wrote:

`UncheckedCallArgsChecker::isUnsafeType` calls it.

https://github.com/llvm/llvm-project/pull/114522


More information about the cfe-commits mailing list