Enable formatting (#188)

This commit is contained in:
ykiko
2025-08-23 22:52:27 +08:00
committed by GitHub
parent 52e45e1f26
commit 5f8a577e26
10 changed files with 161 additions and 16 deletions

View File

@@ -46,6 +46,10 @@ struct LocalSourceRange {
constexpr bool operator== (const LocalSourceRange& other) const = default;
constexpr auto length() {
return end - begin;
}
constexpr bool contains(uint32_t offset) const {
return offset >= begin && offset <= end;
}