mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -864,12 +864,12 @@ void Parser::load_state()
|
|||
m_state = m_saved_states.take_last();
|
||||
}
|
||||
|
||||
StringView Parser::text_of_token(const Cpp::Token& token) const
|
||||
StringView Parser::text_of_token(Cpp::Token const& token) const
|
||||
{
|
||||
return token.text();
|
||||
}
|
||||
|
||||
String Parser::text_of_node(const ASTNode& node) const
|
||||
String Parser::text_of_node(ASTNode const& node) const
|
||||
{
|
||||
return text_in_range(node.start(), node.end());
|
||||
}
|
||||
|
@ -969,7 +969,7 @@ Optional<size_t> Parser::index_of_node_at(Position pos) const
|
|||
VERIFY(m_saved_states.is_empty());
|
||||
Optional<size_t> match_node_index;
|
||||
|
||||
auto node_span = [](const ASTNode& node) {
|
||||
auto node_span = [](ASTNode const& node) {
|
||||
VERIFY(node.end().line >= node.start().line);
|
||||
VERIFY((node.end().line > node.start().line) || (node.end().column >= node.start().column));
|
||||
return Position { node.end().line - node.start().line, node.start().line != node.end().line ? 0 : node.end().column - node.start().column };
|
||||
|
@ -1106,7 +1106,7 @@ NonnullRefPtr<EnumDeclaration> Parser::parse_enum_declaration(ASTNode& parent)
|
|||
return enum_decl;
|
||||
}
|
||||
|
||||
Token Parser::consume_keyword(const String& keyword)
|
||||
Token Parser::consume_keyword(String const& keyword)
|
||||
{
|
||||
auto token = consume();
|
||||
if (token.type() != Token::Type::Keyword) {
|
||||
|
@ -1120,7 +1120,7 @@ Token Parser::consume_keyword(const String& keyword)
|
|||
return token;
|
||||
}
|
||||
|
||||
bool Parser::match_keyword(const String& keyword)
|
||||
bool Parser::match_keyword(String const& keyword)
|
||||
{
|
||||
auto token = peek();
|
||||
if (token.type() != Token::Type::Keyword) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue