Skip to content

Commit 5b93230

Browse files
committed
fix: logical operator precedence
1 parent ed1c6e8 commit 5b93230

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/AST/ParseRef.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ namespace clang::mrdocs {
1616
namespace {
1717
constexpr
1818
bool
19-
isDigit(char c)
19+
isDigit(char const c)
2020
{
2121
return c >= '0' && c <= '9';
2222
}
2323

2424
constexpr
2525
bool
26-
isIdentifierStart(char c)
26+
isIdentifierStart(char const c)
2727
{
28-
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '_' || c == '~';
28+
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || c == '~';
2929
}
3030

3131
constexpr
3232
bool
33-
isIdentifierContinuation(char c)
33+
isIdentifierContinuation(char const c)
3434
{
35-
return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c == '_' || isDigit(c);
35+
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || isDigit(c);
3636
}
3737

3838
class RefParser

0 commit comments

Comments
 (0)