This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Add basic analysis of `std::optional` use.
AbandonedPublicDraft

Authored by ymandel on Mar 3 2022, 7:38 PM.

Details

Reviewers
None
Summary

This patch adds an analysis with basic support for checking the use of
std::optional values. This patch focuses on variables and fields and the basic
std::optional operations: has_value and unwrapping. Future patches will
extend to the remaining portions of the API.

Diff Detail