#include "clang/Analysis/FlowSensitive/RecordOps.h"
#include "TestingSupport.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
namespace clang {
namespace dataflow {
namespace test {
namespace {
void runDataflow(
llvm::StringRef Code,
std::function<llvm::StringMap<QualType>(QualType)> SyntheticFieldCallback,
std::function<
void(const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &,
ASTContext &)>
VerifyResults) { … }
const FieldDecl *getFieldNamed(RecordDecl *RD, llvm::StringRef Name) { … }
TEST(RecordOpsTest, CopyRecord) { … }
TEST(RecordOpsTest, RecordsEqual) { … }
TEST(TransferTest, CopyRecordBetweenDerivedAndBase) { … }
}
}
}
}