[PATCH] D59573: [analyzer] C++17: PR41142: Ignore transparent InitListExprs when finding construction contexts.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 20 16:19:52 PDT 2019


NoQ added a comment.

Thx!

> The problem here is that we inevitably hit the recursion limit, and then...
> 
> 4. Well, something weird happens. I'll have to have a closer look, but one weird thing i noticed is that the value for `{ boo() }` ends up being `compoundVal{Unknown}`, as if `bindReturnValue()` never gets triggered.

Wait, right, nvm. There's no `return` statement in the function, so it's not surprising at all that there's no object-under-construction. There's just no construction to have a context for. So this is just a sub-problem of problem 5.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59573/new/

https://reviews.llvm.org/D59573





More information about the cfe-commits mailing list