Skip to content

Commit

Permalink
Use the "clang-format" provided by the system (#7554)
Browse files Browse the repository at this point in the history
* Use the "clang-format" provided by the system

* Adding a note to the changelog
  • Loading branch information
kraenhansen authored Apr 4, 2024
1 parent 09b68cd commit 2e9cee0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Recreating the sync metadata Realm when the encryption key changes is now done in a multi-process safe manner ([PR #7526](https://github.com/realm/realm-core/pull/7526)).
* Added `App::default_base_url()` static accessor for SDKs to retrieve the default base URL from Core. ([PR #7534](https://github.com/realm/realm-core/pull/7534))
* Realm2JSON tool will now correctly upgrade file to current fileformat.
* (bindgen) Remove dependency on the `clang-format` package and rely on a binary provided by the system instead.

----------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion bindgen/src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ export function format(formatter: Formatter, cwd: string, filePaths: string[]):
}
}

export const clangFormat = createCommandFormatter("clang", ["npx", "clang-format", "-i"]);
export const clangFormat = createCommandFormatter("clang", ["clang-format", "-i"]);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"chalk": "^4.1.2",
"change-case": "^4.1.2",
"chevrotain": "^10.4.0",
"clang-format": "^1.8.0",
"commander": "^11.1.0",
"debug": "^4.3.4",
"typescript-json-schema": "^0.55.0",
Expand Down

0 comments on commit 2e9cee0

Please sign in to comment.