[PATCH] D77809: [Analyzer] Include typedef statements in CFG build.

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 05:59:18 PDT 2020


Szelethus added reviewers: NoQ, xazax.hun.
Szelethus added a subscriber: NoQ.
Szelethus added a comment.
Herald added a subscriber: rnkovacs.

Adding @NoQ and @xazax.hun , I don't have much experience building CFGs.



================
Comment at: clang/lib/Analysis/CFG.cpp:2855
+
   VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl());
 
----------------
How about `using`? How about some other shenanigans that obscure the size of the VLA? Can't we just retrieve the size from `VariableArrayType::getSizeExpr` after seeing this `VarDecl`, and add that to the block?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77809





More information about the cfe-commits mailing list