[clang] [alpha.webkit.UncountedCallArgsChecker] Support more trivial expressions. (PR #90414)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 21:12:13 PDT 2024


================
@@ -360,6 +370,16 @@ class TrivialFunctionAnalysisVisitor
     return TrivialFunctionAnalysis::isTrivialImpl(Callee, Cache);
   }
 
+  bool
+  VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E) {
+    // Non-type template paramter is trivial if the replacement is trivial.
+    return Visit(E->getReplacement());
----------------
rniwa wrote:

oh, okay. I guess we can just return true then.

https://github.com/llvm/llvm-project/pull/90414


More information about the cfe-commits mailing list