Skip to content

Commit bcb2bcb

Browse files
[clang-format] KeepEmptyLines only at EOF (#6440)
* [clang-format] KeepEmptyLines only at EOF * Run clang-format * Fix atomic test
1 parent cb07e97 commit bcb2bcb

File tree

13 files changed

+5
-14
lines changed

13 files changed

+5
-14
lines changed

.clang-format

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ InsertTrailingCommas: Wrapped
139139
IndentRequires: true
140140
IndentPPDirectives: AfterHash
141141
IndentWidth: 2
142-
KeepEmptyLinesAtTheStartOfBlocks: false
142+
KeepEmptyLines:
143+
AtEndOfFile: true
144+
AtStartOfBlock: false
145+
AtStartOfFile: false
143146
MaxEmptyLinesToKeep: 1
144147
Macros:
145148
- _CCCL_TEMPLATE(...)=template<...>

c/parallel/test/test_segmented_reduce.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include <cstdint>
32
#include <cstdlib>
43
#include <numeric>

c/parallel/test/test_transform.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include <cstdint>
32
#include <cstdlib>
43
#include <iostream> // std::cerr

cub/cub/device/dispatch/dispatch_streaming_reduce_by_key.cuh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved.
32
// SPDX-License-Identifier: BSD-3-Clause
43

cub/cub/device/dispatch/dispatch_unique_by_key.cuh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// SPDX-FileCopyrightText: Copyright (c), NVIDIA CORPORATION. All rights reserved.
32
// SPDX-License-Identifier: BSD-3
43

libcudacxx/codegen/generators/header.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
inline void FormatHeader(std::ostream& out)
1717
{
18-
std::string header = R"XXX(
19-
//===----------------------------------------------------------------------===//
18+
std::string header = R"XXX(//===----------------------------------------------------------------------===//
2019
//
2120
// Part of libcu++, the C++ Standard Library for your entire system,
2221
// under the Apache License v2.0 with LLVM Exceptions.

libcudacxx/include/cuda/std/__atomic/functions/cuda_ptx_generated.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//===----------------------------------------------------------------------===//
32
//
43
// Part of libcu++, the C++ Standard Library for your entire system,

libcudacxx/include/cuda/std/__cccl/deprecated.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//===----------------------------------------------------------------------===//
32
//
43
// Part of libcu++, the C++ Standard Library for your entire system,

libcudacxx/test/libcudacxx/std/random/seed_seq/generate.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
//===----------------------------------------------------------------------===//
32
//
43
// Part of libcu++, the C++ Standard Library for your entire system,

thrust/testing/offset_iterator.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#include <thrust/distance.h>
32
#include <thrust/iterator/offset_iterator.h>
43

0 commit comments

Comments
 (0)