Skip to content

Commit 2e9cee0

Browse files
authored
Use the "clang-format" provided by the system (#7554)
* Use the "clang-format" provided by the system * Adding a note to the changelog
1 parent 09b68cd commit 2e9cee0

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* 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)).
2424
* 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))
2525
* Realm2JSON tool will now correctly upgrade file to current fileformat.
26+
* (bindgen) Remove dependency on the `clang-format` package and rely on a binary provided by the system instead.
2627

2728
----------------------------------------------
2829

bindgen/src/formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ export function format(formatter: Formatter, cwd: string, filePaths: string[]):
6767
}
6868
}
6969

70-
export const clangFormat = createCommandFormatter("clang", ["npx", "clang-format", "-i"]);
70+
export const clangFormat = createCommandFormatter("clang", ["clang-format", "-i"]);

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"chalk": "^4.1.2",
2323
"change-case": "^4.1.2",
2424
"chevrotain": "^10.4.0",
25-
"clang-format": "^1.8.0",
2625
"commander": "^11.1.0",
2726
"debug": "^4.3.4",
2827
"typescript-json-schema": "^0.55.0",

0 commit comments

Comments
 (0)