[Analyzer][StreamChecker] Add note tags for file opening.
authorBalázs Kéri <1.int32@gmail.com>
Mon, 22 Jun 2020 07:04:05 +0000 (09:04 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Mon, 22 Jun 2020 09:15:35 +0000 (11:15 +0200)
commite935a540ea29d5de297595801aed1fb70fabfbf6
tree99d46a0f1d709a3998f4db48a4f10a18e0f291bc
parent792786e34d8d881eb4d6b12275681a555cb9e245
[Analyzer][StreamChecker] Add note tags for file opening.

Summary:
Bug reports of resource leak are now improved.
If there are multiple resource leak paths for the same stream,
only one wil be reported.

Reviewers: Szelethus, xazax.hun, baloghadamsoftware, NoQ

Reviewed By: Szelethus, NoQ

Subscribers: NoQ, rnkovacs, xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gamesh411, Charusso, martong, ASDenysPetrov, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81407
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
clang/test/Analysis/stream-note.c [new file with mode: 0644]
clang/test/Analysis/stream.c
clang/test/Analysis/stream.cpp