]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/Transfer.h
zfs: merge openzfs/zfs@6c3c5fcfb (zfs-2.1-release) into stable/13
[FreeBSD/FreeBSD.git] / contrib / llvm-project / clang / include / clang / Analysis / FlowSensitive / Transfer.h
1 //===-- Transfer.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 //  This file defines a transfer function that evaluates a program statement and
10 //  updates an environment accordingly.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H
15 #define LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H
16
17 #include "clang/AST/Stmt.h"
18 #include "clang/Analysis/FlowSensitive/DataflowEnvironment.h"
19
20 namespace clang {
21 namespace dataflow {
22
23 /// Evaluates `S` and updates `Env` accordingly.
24 ///
25 /// Requirements:
26 ///
27 ///  The type of `S` must not be `ParenExpr`.
28 void transfer(const Stmt &S, Environment &Env);
29
30 } // namespace dataflow
31 } // namespace clang
32
33 #endif // LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H