================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits