[clang] [alpha.webkit.UncountedCallArgsChecker] Support more trivial expressions. (PR #90414)
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 18:30:32 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());
----------------
haoNoQ wrote:
These might be always trivial? They're compile-time constants after all.
https://github.com/llvm/llvm-project/pull/90414
More information about the cfe-commits
mailing list