[PATCH] D156255: [clang-tidy] Update unchecked-optiona-access-check to use convenience function for diagnosing `FunctionDecl`s.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 11:28:45 PDT 2023


ymandel created this revision.
ymandel added reviewers: xazax.hun, mboehme.
Herald added subscribers: PiotrZSL, ChuanqiXu, carlosgalvezp.
Herald added a reviewer: NoQ.
Herald added a reviewer: njames93.
Herald added a project: All.
ymandel requested review of this revision.
Herald added projects: clang, clang-tools-extra.

Also changes code in the underlying model to fit the type expected by the convenience function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156255

Files:
  clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
  clang/include/clang/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.h
  clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
  clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156255.544051.patch
Type: text/x-patch
Size: 5871 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230725/e231c45d/attachment.bin>


More information about the cfe-commits mailing list