mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
4dc2e92782
`DocumentError`s are the inteded way of propagating errors from the pipeline to the frontend when a location is required to inform the user of the error whereabouts.
25 lines
545 B
C++
25 lines
545 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include <tuple>
|
|
#include <vector>
|
|
|
|
#include "revng/Pipeline/Kind.h"
|
|
#include "revng/Pipeline/Option.h"
|
|
|
|
namespace revng::pipes {
|
|
|
|
struct ApplyDiffAnalysis {
|
|
static constexpr auto Name = "Apply";
|
|
|
|
constexpr static std::tuple Options = { pipeline::Option("diff-path", "") };
|
|
|
|
std::vector<std::vector<pipeline::Kind *>> AcceptedKinds = {};
|
|
|
|
llvm::Error run(pipeline::Context &Ctx, std::string DiffLocation);
|
|
};
|
|
} // namespace revng::pipes
|