Files
revng-revng/include/revng/PipelineC/ForwardDeclarations.h
Giacomo Vercesi 15da250710 api/daemon: fix single analysis handling
* Let GraphQL accept zero or more parameters for analyses
* Handle the general case of analyses using zero or more containers with
  a variable ammount of targets
2023-03-15 10:19:01 +01:00

55 lines
1.6 KiB
C++

#pragma once
//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
#include "revng/Pipeline/Target.h"
#include "revng/Pipes/PipelineManager.h"
struct rp_error_reason {
public:
std::string Message;
std::string Location;
rp_error_reason(std::string Message, std::string Location) :
Message(std::move(Message)), Location(std::move(Location)) {}
};
struct rp_document_error {
public:
std::vector<rp_error_reason> Reasons;
std::string LocationType;
std::string ErrorType;
rp_document_error(std::string ErrorType, std::string LocationType) :
LocationType(std::move(LocationType)), ErrorType(std::move(ErrorType)) {}
};
struct rp_simple_error {
public:
std::string Message;
std::string ErrorType;
rp_simple_error(std::string Message, std::string Type) :
Message(std::move(Message)), ErrorType(std::move(Type)) {}
};
using rp_error = std::unique_ptr<
std::variant<rp_simple_error, rp_document_error>>;
typedef revng::pipes::PipelineManager rp_manager;
typedef const pipeline::Kind rp_kind;
typedef const pipeline::Rank rp_rank;
typedef pipeline::Step rp_step;
typedef pipeline::ContainerSet::value_type rp_container;
typedef const pipeline::ContainerFactorySet::value_type rp_container_identifier;
typedef const pipeline::Target rp_target;
typedef const pipeline::TargetsList rp_targets_list;
typedef const pipeline::Step::AnalysisValueType rp_analysis;
typedef const pipeline::DiffMap rp_diff_map;
typedef llvm::StringMap<std::string> rp_string_map;
typedef pipeline::InvalidationMap rp_invalidations;
typedef llvm::SmallVector<char, 0> rp_buffer;
typedef pipeline::ContainerToTargetsMap rp_container_targets_map;