clang 23.0.0git
UnsafeBufferUsageTest.h
Go to the documentation of this file.
1//===- UnsafeBufferUsageTest.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// Functions and data structures that help UnsafeBufferUsage unit tests.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGETEST_H
14#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGETEST_H
15
18#include "llvm/Support/Error.h"
19
20namespace clang::ssaf {
21
22llvm::Expected<std::unique_ptr<EntitySummary>> serializeDeserializeRoundTrip(
23 const UnsafeBufferUsageEntitySummary &S,
25 std::function<llvm::Expected<EntityId>(uint64_t)> IdFromIntFn);
26
27} // namespace clang::ssaf
28
29#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_ANALYSES_UNSAFEBUFFERUSAGE_UNSAFEBUFFERUSAGETEST_H
Lightweight opaque handle representing an entity in an EntityIdTable.
Definition EntityId.h:31
llvm::Expected< std::unique_ptr< EntitySummary > > serializeDeserializeRoundTrip(const UnsafeBufferUsageEntitySummary &S, std::function< uint64_t(EntityId)> IdToIntFn, std::function< llvm::Expected< EntityId >(uint64_t)> IdFromIntFn)
unsigned long uint64_t
int const char * function
Definition c++config.h:31