[analyzer] Extend ownership_returns attribute to cover output parameters
Open
clang:static analyzer
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
I'm currently working on adding clang memory ownership annotations to Apache Celix: https://github.com/apache/celix/pull/806
Is it possible to extend ownership_returns so that we can mark functions returning allocations through their output parameters?
I can work on this if some guidance is provided.
Contributor guide
Research direction
No source file, test, or entry point is named. Start by locating the analyzer handling for ownership_returns and its existing tests, then clarify how output parameters should be represented and what annotation behavior would demonstrate completion.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100