This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Refactor boolean creation as a test utility.
ClosedPublic

Authored by wyt on Jul 12 2022, 1:48 AM.

Details

Summary

Functionality for creating boolean values moved from SolverTest.cpp to BoolValueManager class in TestingSupport.h.

Diff Detail

Event Timeline

wyt created this revision.Jul 12 2022, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 1:48 AM
wyt requested review of this revision.Jul 12 2022, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2022, 1:48 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
wyt edited the summary of this revision. (Show Details)Jul 12 2022, 2:26 AM
wyt added a reviewer: hlopko.
wyt removed a reviewer: hlopko.
gribozavr2 accepted this revision.Jul 12 2022, 5:57 AM
gribozavr2 added inline comments.
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
223
224

ConstraintContext, to match other ~Context types whose purpose is to own things.

This revision is now accepted and ready to land.Jul 12 2022, 5:57 AM
wyt updated this revision to Diff 443938.Jul 12 2022, 7:45 AM
wyt marked 2 inline comments as done.

Address comments on renaming. Removed test fixture class, replacing TEST_F with TEST.

xazax.hun accepted this revision.Jul 12 2022, 8:47 AM
sgatev accepted this revision.Jul 12 2022, 9:10 AM
sgatev added inline comments.
clang/unittests/Analysis/FlowSensitive/TestingSupport.h
263

#include <vector>

gribozavr2 accepted this revision.Jul 12 2022, 9:14 AM
wyt updated this revision to Diff 444026.Jul 12 2022, 11:36 AM
wyt marked an inline comment as done.

Address comments: add used import, remove unused imports.

wyt updated this revision to Diff 444031.Jul 12 2022, 11:47 AM

Removed unused imports in SolverTest.cpp

This revision was landed with ongoing or failed builds.Jul 13 2022, 3:15 AM
This revision was automatically updated to reflect the committed changes.