clang 23.0.0git
EntitySummary.h
Go to the documentation of this file.
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
13#include <type_traits>
14
15namespace clang::ssaf {
16
17/// Base class for analysis-specific summary data.
19public:
20 virtual ~EntitySummary() = default;
21 virtual SummaryName getSummaryName() const = 0;
22};
23
24template <typename Derived>
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
Base class for analysis-specific summary data.
virtual ~EntitySummary()=default
virtual SummaryName getSummaryName() const =0
Uniquely identifies an analysis summary.
Definition SummaryName.h:22
std::enable_if_t< std::is_base_of_v< EntitySummary, Derived > > DerivesFromEntitySummary