#include "llvm/Remarks/Remark.h"
#include "llvm/Remarks/RemarkParser.h"
#include "llvm/Remarks/YAMLRemarkSerializer.h"
#include "llvm/Support/Error.h"
#include "gtest/gtest.h"
#ifdef _WIN32
#define EXTERNALFILETESTPATH …
#else
#define EXTERNALFILETESTPATH …
#endif
usingnamespacellvm;
static void check(remarks::Format SerializerFormat,
remarks::SerializerMode Mode, ArrayRef<remarks::Remark> Rs,
StringRef ExpectedR, std::optional<StringRef> ExpectedMeta,
std::optional<remarks::StringTable> StrTab = std::nullopt) { … }
static void check(remarks::Format SerializerFormat, const remarks::Remark &R,
StringRef ExpectedR, StringRef ExpectedMeta,
std::optional<remarks::StringTable> StrTab = std::nullopt) { … }
static void
checkStandalone(remarks::Format SerializerFormat, const remarks::Remark &R,
StringRef ExpectedR,
std::optional<remarks::StringTable> StrTab = std::nullopt) { … }
TEST(YAMLRemarks, SerializerRemark) { … }
TEST(YAMLRemarks, SerializerRemarkStandalone) { … }
TEST(YAMLRemarks, SerializerRemarkStrTab) { … }
TEST(YAMLRemarks, SerializerRemarkParsedStrTab) { … }
TEST(YAMLRemarks, SerializerRemarkParsedStrTabStandaloneNoStrTab) { … }
TEST(YAMLRemarks, SerializerRemarkParsedStrTabStandalone) { … }
TEST(YAMLRemarks, SerializerRemarkParsedStrTabStandaloneMultipleRemarks) { … }