[PATCH] D155890: [clang-tidy] Add folly::Optional to unchecked-optional-access
Anton Dukeman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 20 14:47:01 PDT 2023
adukeman created this revision.
adukeman added reviewers: njames93, ymandel, sgatev.
Herald added subscribers: PiotrZSL, carlosgalvezp, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
adukeman requested review of this revision.
Herald added projects: clang, clang-tools-extra.
Herald added a subscriber: cfe-commits.
The unchecked-optional-access check identifies attempted value
unwrapping without checking if the value exists. These changes extend
that support to checking folly::Optional.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155890
Files:
clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/unchecked-optional-access/folly/types/Optional.h
clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access.cpp
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155890.542685.patch
Type: text/x-patch
Size: 5574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230720/525c773f/attachment.bin>
More information about the cfe-commits
mailing list