ASDenysPetrov added inline comments.

================
Comment at: clang/lib/StaticAnalyzer/Core/RegionStore.cpp:1757-1760
+  // FIXME: Nevertheless, we can't do the same for cases, like:
+  //   const char *str = "123"; // literal length is 4
+  //   char c = str[41];        // offset is 41
+  // It should be properly handled before reaching this point.
----------------
martong wrote:
> Thanks for updating the patch! However, this `FIXME` makes me worried. Do you 
> think you could pass the `Decl` itself to `getSValFromInitListExpr` in order 
> to be able to check whether the type is a pointer or an array? 
This worried me as well. Currently I can't find a way to get the `Decl` for 
`SL`.



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

https://reviews.llvm.org/D107339

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to