[Analyzer][StreamChecker] Use BugType::SuppressOnSink at resource leak report.
authorBalázs Kéri <1.int32@gmail.com>
Thu, 23 Jul 2020 08:53:16 +0000 (10:53 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Thu, 23 Jul 2020 09:53:25 +0000 (11:53 +0200)
commit65fd651980a8ad965363807cc334c513e4c8ffe4
tree25293572db434f5c3f9922c148631c5067e9597c
parent8998f8ab6630ef173cd1f57f0e57b4c16566db6f
[Analyzer][StreamChecker] Use BugType::SuppressOnSink at resource leak report.

Summary:
Use the built-in functionality BugType::SuppressOnSink
instead of a manual solution in StreamChecker.

Differential Revision: https://reviews.llvm.org/D83120
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
clang/test/Analysis/stream.c