clang 23.0.0git
UnsafeBufferUsage.cpp
Go to the documentation of this file.
1//===- UnsafeBufferUsage.cpp ----------------------------------------------===//
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
10
11using namespace clang;
12using namespace ssaf;
13
15ssaf::buildUnsafeBufferUsageEntitySummary(EntityPointerLevelSet UnsafeBuffers) {
16 return UnsafeBufferUsageEntitySummary(std::move(UnsafeBuffers));
17}
18
19llvm::iterator_range<EntityPointerLevelSet::const_iterator>
20ssaf::getUnsafeBuffers(const UnsafeBufferUsageEntitySummary &S) {
21 return llvm::make_range(S.UnsafeBuffers.begin(), S.UnsafeBuffers.end());
22}
An UnsafeBufferUsageEntitySummary contains a set of EntityPointerLevels extracted from unsafe buffer ...
The JSON file list parser is used to communicate input to InstallAPI.