1//===- EntitySummary.h ------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
10#define LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
11
12#include "clang/Analysis/Scalable/Model/SummaryName.h"
13#include <type_traits>
14
15namespace clang::ssaf {
16
17/// Base class for analysis-specific summary data.
18class EntitySummary {
19public:
20 virtual ~EntitySummary() = default;
21 virtual SummaryName getSummaryName() const = 0;
22};
23
24template <typename Derived>
25using DerivesFromEntitySummary =
26 std::enable_if_t<std::is_base_of_v<EntitySummary, Derived>>;
27
28} // namespace clang::ssaf
29
30#endif // LLVM_CLANG_ANALYSIS_SCALABLE_TUSUMMARY_ENTITYSUMMARY_H
31