[analyzer] Turn ReturnVisitor into a tracking visitor
authorValeriy Savchenko <vsavchenko@apple.com>
Thu, 3 Jun 2021 16:09:43 +0000 (19:09 +0300)
committerValeriy Savchenko <vsavchenko@apple.com>
Fri, 11 Jun 2021 09:49:03 +0000 (12:49 +0300)
commitf853d2601abd4f6ab789ca1513ae8b59ba5d38b7
tree5686e09f44cfd48e411e7eae8266a8708d8a1b02
parent87a5c4d3745a06ec0594fa3f7aaf7f58a53315ec
[analyzer] Turn ReturnVisitor into a tracking visitor

Whenever Tracker spawns a visitor that needs to call tracker
back, we have to use TrackingBugReporterVisitor in order to maintain
all the hooks that the checker might've used.

Differential Revision: https://reviews.llvm.org/D103628
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp