Skip to content
Unverified Commit b6b31e79 authored by Ella Ma's avatar Ella Ma Committed by GitHub
Browse files

[analyzer] Fix uninitialized base class with initializer list when ctor is not...

[analyzer] Fix uninitialized base class with initializer list when ctor is not declared in the base class

Fixes #70464

When ctor is not declared in the base class, initializing the base class
with the initializer list will not trigger a proper assignment of the
base region, as a CXXConstructExpr doing that is not available in the
AST.

This patch checks whether the init expr is an InitListExpr under a base
initializer, and adds a binding if so.
parent 6b8ed787
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment