summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/SourceCode.h
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-08-10 22:27:04 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-08-10 22:27:04 +0000
commite99ba6e1f9f1a682292247ad7898e1e133d51fe5 (patch)
treeea7806a0b507a315877801e532c5241de181f90b /clang-tools-extra/clangd/SourceCode.h
parent85afd1a9a085d8022b2476a2158aaf62864e8d94 (diff)
downloadbcm5719-llvm-e99ba6e1f9f1a682292247ad7898e1e133d51fe5.tar.gz
bcm5719-llvm-e99ba6e1f9f1a682292247ad7898e1e133d51fe5.zip
[analyzer] Record nullability implications on getting items from NSDictionary
If we get an item from a dictionary, we know that the item is non-null if and only if the key is non-null. This patch is a rather hacky way to record this implication, because some logic needs to be duplicated from the solver. And yet, it's pretty simple, performant, and works. Other possible approaches: - Record the implication, in future rely on Z3 to pick it up. - Generalize the current code and move it to the constraint manager. rdar://34990742 Differential Revision: https://reviews.llvm.org/D50124 llvm-svn: 339482
Diffstat (limited to 'clang-tools-extra/clangd/SourceCode.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud