Skip to content

Commit a7590c7

Browse files
authored
[Infra] Upgrade to clang-format@19 (#13656)
1 parent a70e2e3 commit a7590c7

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ - (instancetype)initWithRequestSender:(FIRIAMClearcutHttpRequestSender *)request
111111
_userDefaults = userDefaults ? userDefaults : [GULUserDefaults standardUserDefaults];
112112
// it would be 0 if it does not exist, which is equvilent to saying that
113113
// you can send now
114-
_nextValidSendTimeInMills = (int64_t)
115-
[_userDefaults doubleForKey:FIRIAM_UserDefaultsKeyForNextValidClearcutUploadTimeInMills];
114+
_nextValidSendTimeInMills = (int64_t)[_userDefaults
115+
doubleForKey:FIRIAM_UserDefaultsKeyForNextValidClearcutUploadTimeInMills];
116116

117117
NSArray<FIRIAMClearcutLogRecord *> *availableLogs =
118118
[logStorage popStillValidRecordsForUpTo:strategy.batchSendSize];

Firestore/core/src/immutable/keys_view.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ auto KeysView(const Range& range) -> KeysRange<decltype(std::begin(range))> {
4747
}
4848

4949
template <typename Range, typename K>
50-
auto KeysViewFrom(const Range& range,
51-
const K& key) -> KeysRange<decltype(range.lower_bound(key))> {
50+
auto KeysViewFrom(const Range& range, const K& key)
51+
-> KeysRange<decltype(range.lower_bound(key))> {
5252
auto keys_begin = util::make_iterator_first(range.lower_bound(key));
5353
auto keys_end = util::make_iterator_first(std::end(range));
5454
return util::make_range(keys_begin, keys_end);

Firestore/core/src/util/filesystem_posix.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Path Filesystem::TempDir() {
132132

133133
#if !__APPLE__
134134
Status Filesystem::IsDirectory(const Path& path) {
135-
struct stat buffer {};
135+
struct stat buffer{};
136136
if (::stat(path.c_str(), &buffer)) {
137137
if (errno == ENOENT) {
138138
// Expected common error case.
@@ -168,7 +168,7 @@ Status Filesystem::IsDirectory(const Path& path) {
168168
}
169169

170170
StatusOr<int64_t> Filesystem::FileSize(const Path& path) {
171-
struct stat st {};
171+
struct stat st{};
172172
if (::stat(path.c_str(), &st) == 0) {
173173
return st.st_size;
174174
} else {

Firestore/core/src/util/hashing.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ auto RankedInvokeHash(const Range& range, HashChoice<3>)
190190
* value can itself be hashed.
191191
*/
192192
template <typename K>
193-
auto RankedInvokeHash(const absl::optional<K>& option,
194-
HashChoice<4>) -> decltype(InvokeHash(*option)) {
193+
auto RankedInvokeHash(const absl::optional<K>& option, HashChoice<4>)
194+
-> decltype(InvokeHash(*option)) {
195195
return option ? InvokeHash(*option) : -1171;
196196
}
197197

@@ -202,8 +202,8 @@ size_t RankedInvokeHash(K value, HashChoice<5>) {
202202
}
203203

204204
template <typename K>
205-
auto RankedInvokeHash(const std::unique_ptr<K>& ptr,
206-
HashChoice<6>) -> decltype(InvokeHash(*ptr)) {
205+
auto RankedInvokeHash(const std::unique_ptr<K>& ptr, HashChoice<6>)
206+
-> decltype(InvokeHash(*ptr)) {
207207
return ptr ? InvokeHash(*ptr) : 23631;
208208
}
209209

scripts/setup_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi
3535

3636
# install clang-format
3737
brew update
38-
brew install clang-format@18
38+
brew install clang-format@19
3939

4040
# mint installs tools from Mintfile on demand.
4141
brew install mint

scripts/style.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ version="${version/ (*)/}"
5656
version="${version/.*/}"
5757

5858
case "$version" in
59-
18)
59+
19)
6060
;;
6161
google3-trunk)
6262
echo "Please use a publicly released clang-format; a recent LLVM release"

0 commit comments

Comments
 (0)