[PATCH] D140021: [clang-tidy] Add configuration option to bugprone-unchecked-optional-access check.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 06:11:42 PST 2022


ymandel created this revision.
ymandel added a reviewer: xazax.hun.
Herald added subscribers: carlosgalvezp, rnkovacs.
Herald added a reviewer: njames93.
Herald added a project: All.
ymandel requested review of this revision.
Herald added a project: clang-tools-extra.

The underlying model already supports ignoring accesses to optionals through
smart pointers. This patch exposes that option through ClangTidy's configuration
options.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140021

Files:
  clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
  clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.h
  clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access-ignore-smart.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140021.482831.patch
Type: text/x-patch
Size: 7972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/6b61a2d0/attachment-0001.bin>


More information about the cfe-commits mailing list