================ @@ -0,0 +1,89 @@ +//===---------- UnsafeBufferUsage.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 "clang/ScalableStaticAnalysisFramework/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h" +#include "clang/ScalableStaticAnalysisFramework/SSAFForceLinker.h" // IWYU pragma: keep + +namespace { +constexpr const char *const UnsafeBuffersKey = "UnsafeBuffers"; +} // namespace + +namespace clang::ssaf { +using Object = llvm::json::Object; +using Array = llvm::json::Array; +using Value = llvm::json::Value; + +llvm::json::Object UnsafeBufferUsageEntitySummary::jsonSerializeFn( + const EntitySummary &ES, JSONFormat::EntityIdToJSONFn EntityId2JSON) { ---------------- aviralg wrote:
How about just `ToJSON` instead of `EntityId2JSON`? If not that, at least let's expand `2` to `To`. https://github.com/llvm/llvm-project/pull/187156 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
