#include "llvm/Bitcode/BitcodeAnalyzer.h"
#include "llvm/Remarks/RemarkLinker.h"
#include "llvm/Remarks/RemarkSerializer.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <string>
usingnamespacellvm;
static void serializeAndCheck(remarks::RemarkLinker &RL,
remarks::Format OutputFormat,
StringRef ExpectedOutput) { … }
static void check(remarks::Format InputFormat, StringRef Input,
remarks::Format OutputFormat, StringRef ExpectedOutput,
std::optional<bool> KeepAllRemarks = { … }
static void check(remarks::Format InputFormat, StringRef Input,
remarks::Format InputFormat2, StringRef Input2,
remarks::Format OutputFormat, StringRef ExpectedOutput) { … }
TEST(Remarks, LinkingGoodYAML) { … }
TEST(Remarks, LinkingGoodBitstream) { … }
TEST(Remarks, LinkingGoodStrTab) { … }
TEST(Remarks, LinkingError) { … }