#include "llvm/Remarks/RemarkStreamer.h"
#include "llvm/Support/CommandLine.h"
#include <optional>
usingnamespacellvm;
usingnamespacellvm::remarks;
static cl::opt<cl::boolOrDefault> EnableRemarksSection(
"remarks-section",
cl::desc(
"Emit a section containing remark diagnostics metadata. By default, "
"this is enabled for the following formats: yaml-strtab, bitstream."),
cl::init(cl::BOU_UNSET), cl::Hidden);
RemarkStreamer::RemarkStreamer(
std::unique_ptr<remarks::RemarkSerializer> RemarkSerializer,
std::optional<StringRef> FilenameIn)
: … { … }
Error RemarkStreamer::setFilter(StringRef Filter) { … }
bool RemarkStreamer::matchesFilter(StringRef Str) { … }
bool RemarkStreamer::needsSection() const { … }