Files
revng-revng/include/revng/Pipes/ApplyDiffAnalysis.h
Massimo Fioravanti 4dc2e92782 Introduce DocumentError
`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.
2023-02-09 13:42:50 +01:00

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