1 //===-- Transfer.h ----------------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file defines a transfer function that evaluates a program statement and
10 // updates an environment accordingly.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H
15 #define LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H
17 #include "clang/AST/Stmt.h"
18 #include "clang/Analysis/FlowSensitive/DataflowEnvironment.h"
23 /// Evaluates `S` and updates `Env` accordingly.
27 /// The type of `S` must not be `ParenExpr`.
28 void transfer(const Stmt &S, Environment &Env);
30 } // namespace dataflow
33 #endif // LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_TRANSFER_H