refactor: tests and format the world (#314)

This commit is contained in:
ykiko
2025-11-30 15:21:27 +08:00
committed by GitHub
parent 2214d53ea5
commit cec13ec29b
201 changed files with 8302 additions and 8277 deletions

View File

@@ -1,8 +1,9 @@
#pragma once
#include <tuple>
#include "clang/Lex/Token.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Token.h"
namespace std {
@@ -46,7 +47,7 @@ struct LocalSourceRange {
/// The end position offset to the source file.
uint32_t end = static_cast<uint32_t>(-1);
constexpr bool operator== (const LocalSourceRange& other) const = default;
constexpr bool operator==(const LocalSourceRange& other) const = default;
constexpr auto length() {
return end - begin;
@@ -128,9 +129,9 @@ public:
Lexer(Lexer&&) = delete;
Lexer& operator= (const Lexer&) = delete;
Lexer& operator=(const Lexer&) = delete;
Lexer& operator= (Lexer&&) = delete;
Lexer& operator=(Lexer&&) = delete;
~Lexer();