[PATCH] D151192: [clang-tidy] have bugprone-unchecked-optional-access check boost::optional usage

Piotr Zegar via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 08:39:23 PDT 2023


PiotrZSL requested changes to this revision.
PiotrZSL added a comment.
This revision now requires changes to proceed.

- Add some simple test (positive and negative), just to prove that it's detected
- Add release note entry
- Add entry in check documentation, that boost::optional may be partially supported
- boost::optional got other methods like `get`, `get_value_or`, `get_ptr`, `is_initialized` that won't be detected and therefor false-positive issue can be produced, add support for them or mention this limitation in documentation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151192



More information about the cfe-commits mailing list