[PATCH] D137432: [clang][dataflow] Change transfer and diagnoser functions to receive a CFGElement.

Dani Ferreira Franco Moura via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 4 08:28:24 PDT 2022


merrymeerkat created this revision.
Herald added subscribers: martong, xazax.hun.
Herald added a reviewer: NoQ.
Herald added a project: All.
merrymeerkat requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

For example, previously, if the dataflow analysis wanted to warn the user about a CXXCtorInitializer, it could not show a precise warning because diagnosers only accepted Stmts.
Now, diagnosers receive a CFGElement and can thus warn about any type of C++ construct.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137432

Files:
  clang/include/clang/Analysis/FlowSensitive/CFGMatchSwitch.h
  clang/include/clang/Analysis/FlowSensitive/MatchSwitch.h
  clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
  clang/unittests/Analysis/FlowSensitive/CFGMatchSwitchTest.cpp
  clang/unittests/Analysis/FlowSensitive/SignAnalysisTest.cpp
  clang/unittests/Analysis/FlowSensitive/UncheckedOptionalAccessModelTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137432.473250.patch
Type: text/x-patch
Size: 20517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221104/786b4543/attachment-0001.bin>


More information about the cfe-commits mailing list