llvm-project
bd56950b - [clang] Refine the temporay object member access filtering for GSL pointer (#122088)

Commit
324 days ago
[clang] Refine the temporay object member access filtering for GSL pointer (#122088) We currently have ad-hoc filtering logic for temporary object member access in `VisitGSLPointerArg`. This logic filters out more cases than it should, leading to false negatives. Furthermore, this location lacks sufficient context to implement a more accurate solution. This patch refines the filtering logic by moving it to the central filtering location, `analyzePathForGSLPointer`, consolidating the logic and avoiding scattered filtering across multiple places. As a result, the special handling for conditional operators (#120233) is no longer necessary. This change also resolves #120543.
Author
Parents
Loading