summaryrefslogtreecommitdiff
path: root/src/grammar.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-04-28 22:42:48 +0200
committerJoel Klinghed <the_jk@spawned.biz>2026-04-28 22:43:08 +0200
commit665bb6a5202ad0ca30e60bec338ca65853c1b131 (patch)
tree4d938a3f1bc3160ac065d9a437f2c1b6eb724864 /src/grammar.hh
parent2f43e9123dc406112d0802a82698cd124f42a794 (diff)
Make clang-tidy happy
Diffstat (limited to 'src/grammar.hh')
-rw-r--r--src/grammar.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/grammar.hh b/src/grammar.hh
index 13beec4..4a638ac 100644
--- a/src/grammar.hh
+++ b/src/grammar.hh
@@ -60,15 +60,14 @@ struct Element {
class Grammar {
public:
virtual ~Grammar() = default;
+ Grammar(Grammar const&) = delete;
+ Grammar& operator=(Grammar const&) = delete;
[[nodiscard]]
virtual Element const& root() const = 0;
protected:
Grammar() = default;
-
- Grammar(Grammar const&) = delete;
- Grammar& operator=(Grammar const&) = delete;
};
std::unique_ptr<Grammar> load(std::unique_ptr<io::Reader> reader,