[clang] Add test for CWG190 "Layout-compatible POD-struct types" (#121668)
[llvm-project.git] / llvm / lib / Telemetry / Telemetry.cpp
blob9e13d08334e3b4be04ee17875478a61a2ed9352d
1 #include "llvm/Telemetry/Telemetry.h"
3 namespace llvm {
4 namespace telemetry {
6 void TelemetryInfo::serialize(Serializer &serializer) const {
7 serializer.write("SessionId", SessionId);
10 Error Manager::dispatch(TelemetryInfo *Entry) {
11 if (Error Err = preDispatch(Entry))
12 return Err;
14 Error AllErrs = Error::success();
15 for (auto &Dest : Destinations) {
16 AllErrs = joinErrors(std::move(AllErrs), Dest->receiveEntry(Entry));
18 return AllErrs;
21 void Manager::addDestination(std::unique_ptr<Destination> Dest) {
22 Destinations.push_back(std::move(Dest));
25 } // namespace telemetry
26 } // namespace llvm