//===- DebugSupport.cpp -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file defines functions which generate more readable forms of data // structures used in the dataflow analyses, for debugging purposes. // //===----------------------------------------------------------------------===// #include <utility> #include "clang/Analysis/FlowSensitive/DebugSupport.h" #include "clang/Analysis/FlowSensitive/Solver.h" #include "clang/Analysis/FlowSensitive/Value.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/ErrorHandling.h" namespace clang { namespace dataflow { llvm::StringRef debugString(Value::Kind Kind) { … } llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, Solver::Result::Assignment Assignment) { … } llvm::StringRef debugString(Solver::Result::Status Status) { … } llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Solver::Result &R) { … } } // namespace dataflow } // namespace clang