[PATCH] D146507: [clang][dataflow][NFC] Eliminate StmtToEnvMap interface.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 21 02:14:34 PDT 2023


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

Instead of `StmtToEnvMap`, we pass an `AnalysisContext`, which contains all of
the data that `StmtToEnvMapImpl` required to implement its sole member function,
getEnvironment().

The layering issue that originally required the indirection through the
`StmtToEnvMap` interface no longer exists.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146507

Files:
  clang/include/clang/Analysis/FlowSensitive/Transfer.h
  clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
  clang/lib/Analysis/FlowSensitive/Transfer.cpp
  clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146507.506881.patch
Type: text/x-patch
Size: 9304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230321/9f0ef930/attachment-0001.bin>


More information about the cfe-commits mailing list