[clang] Thread Safety Analysis: Improved pointer handling (PR #127396)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 16:56:49 PST 2025
================
@@ -2294,6 +2309,11 @@ void BuildLockset::VisitReturnStmt(const ReturnStmt *S) {
FunctionExitFSet, RetVal,
ReturnType->getPointeeType().isConstQualified() ? AK_Read : AK_Written,
POK_ReturnByRef);
+ } else if (ReturnType->isPointerType()) {
----------------
aaronpuchert wrote:
Also here, adapt the comment above to "returning by reference/pointer".
https://github.com/llvm/llvm-project/pull/127396
More information about the cfe-commits
mailing list