2 Commits

Author SHA1 Message Date
Ella Ma
05d52a415b
[analyzer][NFC] Add a test case to PR 70792 for Issue 59493 and 54533 (#71073)
Following PR #70792 for issue #70464 
Adding test cases for issue #59493 and #54533
2023-11-03 17:10:31 +08:00
Ella Ma
b6b31e791b
[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.
2023-11-01 17:50:01 +08:00