|
CppInterOp
C++ Language Interoperability Layer
|
#include "CppInterOp/CppInterOpTypes.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/StringMap.h"#include "llvm/Support/FormatVariadic.h"#include "llvm/Support/Timer.h"#include "llvm/Support/raw_ostream.h"#include <cassert>#include <cstdint>#include <functional>#include <memory>#include <optional>#include <string>#include <string_view>#include <type_traits>#include <unordered_map>#include <vector>

Go to the source code of this file.
Namespaces | |
| namespace | CppInterOp |
| namespace | CppInterOp::Tracing |
Macros | |
| #define | CPPINTEROP_TRACE_API |
| #define | INTEROP_FUNC_SIG __PRETTY_FUNCTION__ |
| #define | INTEROP_TRACE(...) |
| #define | INTEROP_RETURN(Val) _TR.record(Val) |
| #define | INTEROP_VOID_RETURN() (_TR.recordVoid()) |
| #define | INTEROP_OUT(Var) CppInterOp::Tracing::MakeOutParam(Var) |
Functions | |
| void | CppInterOp::Tracing::InitTracing () |
| Activate tracing. | |
| std::string | CppInterOp::Tracing::StartTracing (bool WriteOnStdErr=true) |
| Begin recording a traced region. | |
| void | CppInterOp::Tracing::StopTracing (const std::string &Version="") |
| End the traced region and write the reproducer file containing only the calls made between StartTracing() and this call. | |
| template<typename Container > | |
| OutParam | CppInterOp::Tracing::MakeOutParam (const Container &C) |
| Create an OutParam for any container. | |
| template<typename T > | |
| OutParam | CppInterOp::Tracing::MakeOutParam (T *) |
| Scalar pointer overload (e.g. | |
Variables | |
| template<typename T > | |
| constexpr bool | CppInterOp::Tracing::is_pointer_vector_v = is_pointer_vector<T>::value |
| template<typename T > | |
| constexpr bool | CppInterOp::Tracing::is_handle_v |
| Detect opaque handle structs (Cpp::DeclRef, Cpp::TypeRef, etc.) | |
| template<typename T > | |
| constexpr bool | CppInterOp::Tracing::is_handle_vector_v = is_handle_vector<T>::value |
| #define INTEROP_OUT | ( | Var | ) | CppInterOp::Tracing::MakeOutParam(Var) |
| #define INTEROP_TRACE | ( | ... | ) |