[clang] [analyzer] Check C++ base or member initializer in WebKit checkers. (PR #92220)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Wed May 15 18:16:18 PDT 2024


================
@@ -525,11 +525,19 @@ bool TrivialFunctionAnalysis::isTrivialImpl(
   if (!IsNew)
     return It->second;
 
+  TrivialFunctionAnalysisVisitor V(Cache);
+
+  if (auto *CtorDecl = dyn_cast<CXXConstructorDecl>(D)) {
+    for (auto *CtorInit : CtorDecl->inits()) {
+      if (!V.Visit(CtorInit->getInit()))
----------------
rniwa wrote:

Doesn't seem to hit any crashes as far as building WebKit goes :) 

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


More information about the cfe-commits mailing list