[clang] [alpha.webkit.UncountedLocalVarsChecker] Allow uncounted object references within trivial statements (PR #82229)
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 4 15:45:59 PST 2024
================
@@ -253,6 +253,17 @@ class TrivialFunctionAnalysisVisitor
return true;
}
+ template <typename StmtType, typename CheckFunction>
+ bool WithCachedResult(const StmtType *S, CheckFunction Function) {
----------------
haoNoQ wrote:
```suggestion
template <typename CheckFunction>
bool WithCachedResult(const Stmt *S, CheckFunction Function) {
```
A bit simpler since we don't really care about the sub-class.
https://github.com/llvm/llvm-project/pull/82229
More information about the cfe-commits
mailing list