[PATCH] D61285: [analyzer] SmartPtrModeling: Fix a null dereference.

2019-04-29 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC359530: [analyzer] SmartPtrModeling: Fix a null dereference. (authored by dergachev, committed by ). Changed prior to commit: https://reviews.llvm.org/D61285?vs=197222&id=197251#toc Repository: rC Cl

[PATCH] D61285: [analyzer] SmartPtrModeling: Fix a null dereference.

2019-04-29 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. The whole AST consists in passing raw unannotated pointers around and i suspect it'll be annoying to deal with `Stmt &`s and `Decl &`s specifically in the Analyzer when all AST APIs accept pointers. I guess we'll have to go with some sort of nullability annotations, yeah. B

[PATCH] D61285: [analyzer] SmartPtrModeling: Fix a null dereference.

2019-04-29 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. LG! These mistakes are so easy to make. Maybe we should add nullability annotations (or use optionals) in the future? (Or just make every non-null pointer a reference and make it a convention to always check for nulls?) Repository:

[PATCH] D61285: [analyzer] SmartPtrModeling: Fix a null dereference.

2019-04-29 Thread Csaba Dabis via Phabricator via cfe-commits
Charusso accepted this revision. Charusso added a comment. This revision is now accepted and ready to land. When I see `->*` I go mad, but we should handle unknown stuff, cool patch. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61285/new/ https://reviews.llvm.or