Skip to content

Commit

Permalink
chore: fix some clang tidy warnings (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Nov 16, 2024
1 parent fa439b5 commit 9e602a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/parser/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#include <fmt/core.h>
#include <lexer/token.hpp>

enum precedence
namespace
{
enum precedence : std::uint8_t
{
lowest,
equals,
Expand All @@ -39,7 +41,7 @@ enum precedence
idx,
};

auto precedence_of_token(token_type type) -> int
auto precedence_of_token(token_type type) -> std::uint8_t
{
switch (type) {
case token_type::equals:
Expand All @@ -62,6 +64,7 @@ auto precedence_of_token(token_type type) -> int
return lowest;
}
}
} // namespace

parser::parser(lexer lxr)
: m_lxr(lxr)
Expand Down

0 comments on commit 9e602a9

Please sign in to comment.