================ @@ -0,0 +1,406 @@ +//===- TUSummaryEncoding.cpp --------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "JSONFormatImpl.h" + +#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h" +#include "clang/Analysis/Scalable/EntityLinker/TUSummaryEncoding.h" + +namespace clang::ssaf { + +//---------------------------------------------------------------------------- +// JSONEntitySummaryEncoding +//---------------------------------------------------------------------------- + +namespace { + +class JSONEntitySummaryEncoding : public EntitySummaryEncoding { +public: + explicit JSONEntitySummaryEncoding(Value Data) : Data(std::move(Data)) {} + + void + patch(const std::map<EntityId, EntityId> &EntityResolutionTable) override { + llvm_unreachable("not implemented"); + } + + Value Data; +}; + +} // namespace + +//---------------------------------------------------------------------------- +// EncodingDataMapEntry +//---------------------------------------------------------------------------- + +llvm::Expected<std::pair<EntityId, std::unique_ptr<EntitySummaryEncoding>>> +JSONFormat::encodingDataMapEntryFromJSON( + const Object &EntityDataMapEntryObject) const { + ---------------- steakhal wrote:
```suggestion ``` https://github.com/llvm/llvm-project/pull/183401 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
