mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Run clang-format 14 on everything
Later versions may need some proprties added or changed to not format closing braces weirdly.
This commit is contained in:
@@ -2175,19 +2175,18 @@ static Capture startCapture() {
|
||||
view && lexerState->expansions.empty()) {
|
||||
return {
|
||||
.lineNo = lineNo,
|
||||
.span =
|
||||
{
|
||||
.ptr = std::shared_ptr<char[]>(view->span.ptr, &view->span.ptr[view->offset]),
|
||||
.size = 0,
|
||||
}
|
||||
};
|
||||
.span = {
|
||||
.ptr = std::shared_ptr<char[]>(view->span.ptr, &view->span.ptr[view->offset]),
|
||||
.size = 0,
|
||||
}
|
||||
};
|
||||
} else {
|
||||
assert(lexerState->captureBuf == nullptr);
|
||||
lexerState->captureBuf = std::make_shared<std::vector<char>>();
|
||||
// `.span.ptr == nullptr`; indicates to retrieve the capture buffer when done capturing
|
||||
return {
|
||||
.lineNo = lineNo, .span = {.ptr = nullptr, .size = 0}
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user