Skip to content

Commit bcfec8f

Browse files
authoredAug 9, 2022
Fix clang formatter (#1268 fixes #1267)
2 parents 339b355 + 89b4692 commit bcfec8f

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
 

‎CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This document is intended for Spotless developers.
1010
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
1111

1212
## [Unreleased]
13+
### Fixed
14+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
1315

1416
## [2.28.0] - 2022-07-28
1517
### Added

‎lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ String format(ProcessRunner runner, String input, File file) throws IOException,
112112
}
113113
final String[] processArgs = args.toArray(new String[args.size() + 1]);
114114
processArgs[processArgs.length - 1] = "--assume-filename=" + file.getName();
115-
return runner.exec(input.getBytes(StandardCharsets.UTF_8), args).assertExitZero(StandardCharsets.UTF_8);
115+
return runner.exec(input.getBytes(StandardCharsets.UTF_8), processArgs).assertExitZero(StandardCharsets.UTF_8);
116116
}
117117

118118
FormatterFunc.Closeable toFunc() {

‎plugin-gradle/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).
44

55
## [Unreleased]
6+
### Fixed
7+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
68

79
## [6.9.0] - 2022-07-28
810
### Added

‎plugin-maven/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).
44

55
## [Unreleased]
6+
### Fixed
7+
* Fix Clang not knowing the filename and changing the format ([#1268](https://github.com/diffplug/spotless/pull/1268) fixes [#1267](https://github.com/diffplug/spotless/issues/1267)).
68

79
## [2.24.0] - 2022-07-28
810
### Added

0 commit comments

Comments
 (0)