Skip to content

Commit d656349

Browse files
committed
refactor: make StripState methods inline
1 parent bf21828 commit d656349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libexpr/parser-state.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ struct StripState {
178178
bool start = true;
179179
size_t min = -1;
180180
size_t cur = 0;
181-
bool indent(char c) {
181+
inline bool indent(char c) {
182182
if (!start) return true;
183183
indentChar = indentChar.value_or(IndentChar(c));
184184
bool ok = (indentChar == c);
185185
cur += ok;
186186
return ok;
187187
}
188-
void stop() {
188+
inline void stop() {
189189
start = false;
190190
min = std::min(min, cur);
191191
}
192-
void reset() {
192+
inline void reset() {
193193
start = true;
194194
cur = 0;
195195
}

0 commit comments

Comments
 (0)