
This is a somewhat naive implementation, but it is enough to parse a simple unified patch header. After parsing the patch header, the parser will be at the beginning of the first hunks range, ready for that hunk to be parsed.
21 lines
264 B
C++
21 lines
264 B
C++
/*
|
|
* Copyright (c) 2023, Shannon Booth <shannon.ml.booth@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Diff {
|
|
|
|
enum class Format;
|
|
|
|
class Parser;
|
|
|
|
struct Header;
|
|
struct Hunk;
|
|
struct HunkLocation;
|
|
struct Line;
|
|
struct Range;
|
|
|
|
}
|