summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/string.cpp
AgeCommit message (Collapse)Author
2024-11-27[clang][analyzer] Bring checker 'alpha.unix.cstring.NotNullTerminated' out ↵Balázs Kéri
of alpha (#113899)
2024-10-16[clang][analyzer] Improve test and documentation in cstring ↵Balázs Kéri
NotNullTerminated checker (#112019) CStringChecker has a sub-checker alpha.unix.cstring.NotNullTerminated which checks for invalid objects passed to string functions. The checker and its name are not exact and more functions could be checked, this change only adds some tests and improves documentation.
2023-12-28[analyzer] Fix "sprintf" parameter modeling in CStringCheckerBalazs Benics
`CE->getCalleeDecl()` returns `VarDecl` if the callee is actually a function pointer variable. Consequently, calling `getAsFunction()` will return null. To workaround the case, we should use the `CallEvent::parameters()`, which will internally recover the function being called and do the right thing. Fixes #74269 Depends on "[analyzer][NFC] Prefer CallEvent over CallExpr in APIs"
2018-12-19[analyzer] CStringChecker: Add the forgotten test file.Artem Dergachev
Differential Revision: https://reviews.llvm.org/D55873 rdar://problem/45366551 llvm-svn: 349683