[PATCH] D46421: [analyzer][CrossTU] Extend CTU to VarDecls with initializer

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 2 05:53:42 PST 2019


martong added a comment.

> I think you should change back to getInit()

I am not entirely sure about this because the initalizer may not be attached to the canonical decl. `getInit()` gives the initializer of one given specific Decl, however, `getAnyInitializer()` searches through the whole redecl chain.


Repository:
  rC Clang

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

https://reviews.llvm.org/D46421





More information about the cfe-commits mailing list