Fixup/clang-format

This commit is contained in:
Jordan Bayles 2020-11-06 11:58:25 -08:00
parent 963aec7a19
commit dfe281e00c
3 changed files with 5 additions and 2 deletions

View File

@ -143,7 +143,9 @@ bool Reader::decodeNumber(Token& token) {
```
Before submitting your code, ensure that you meet the versioning requirements above, follow the style guide of the file you are modifying (or the above rules for new files), and run clang format. Meson exposes clang format with the following command:
```
ninja -v -C build-${LIB_TYPE}/ clang-format
```
For convenience, you can also run the `reformat.sh` script located in the root directory.

0
reformat.sh Normal file → Executable file
View File

View File

@ -1373,7 +1373,8 @@ bool Value::isObject() const { return type() == objectValue; }
Value::Comments::Comments(const Comments& that)
: ptr_{cloneUnique(that.ptr_)} {}
Value::Comments::Comments(Comments&& that) noexcept : ptr_{std::move(that.ptr_)} {}
Value::Comments::Comments(Comments&& that) noexcept
: ptr_{std::move(that.ptr_)} {}
Value::Comments& Value::Comments::operator=(const Comments& that) {
ptr_ = cloneUnique(that.ptr_);