Skip to content

Commit 8d4e20a

Browse files
fix: revert unnecessary digit separator changes in non-preprocessor code
clang-scan-deps only parses #if/#else, #include, and import directives, so digit separators in regular C++ code do not affect module scanning. Only the __config.hpp change (in a #if directive) is necessary. Signed-off-by: Pratyksh Gupta <product@revrag.ai>
1 parent 4a54df3 commit 8d4e20a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

include/exec/detail/bwos_lifo_queue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@ namespace experimental::execution::bwos
397397

398398
template <class Tp, class Allocator>
399399
lifo_queue<Tp, Allocator>::block_type::block_type(std::size_t block_size, Allocator allocator)
400-
: head_{0xFFFFFFFF00000000 | block_size}
400+
: head_{0xFFFF'FFFF'0000'0000 | block_size}
401401
, tail_{block_size}
402402
, steal_count_{block_size}
403-
, steal_tail_{0xFFFFFFFF00000000 | block_size}
403+
, steal_tail_{0xFFFF'FFFF'0000'0000 | block_size}
404404
, ring_buffer_(block_size, allocator)
405405
{}
406406

include/exec/linux/io_uring_context.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ namespace experimental::execution
11121112
secs = (std::max) (secs, std::chrono::seconds{0});
11131113
dur = STDEXEC::__clamp(dur,
11141114
std::chrono::nanoseconds{0},
1115-
std::chrono::nanoseconds{999999999});
1115+
std::chrono::nanoseconds{999'999'999});
11161116
return __kernel_timespec{secs.count(), dur.count()};
11171117
}
11181118
# else
@@ -1130,11 +1130,11 @@ namespace experimental::execution
11301130
__nsec -= __sec;
11311131
__nsec = STDEXEC::__clamp(__nsec,
11321132
std::chrono::nanoseconds{0},
1133-
std::chrono::nanoseconds{999999999});
1133+
std::chrono::nanoseconds{999'999'999});
11341134
__timerspec.it_value.tv_sec += __sec.count();
11351135
__timerspec.it_value.tv_nsec = __nsec.count();
11361136
STDEXEC_ASSERT(0 <= __timerspec.it_value.tv_nsec
1137-
&& __timerspec.it_value.tv_nsec < 1000000000);
1137+
&& __timerspec.it_value.tv_nsec < 1'000'000'000);
11381138
return __timerspec;
11391139
}
11401140
# endif

include/exec/windows/filetime_clock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace experimental::execution::__win32
2727
{
2828
public:
2929
using rep = std::int64_t;
30-
using ratio = std::ratio<1, 10000000>; // 100ns
30+
using ratio = std::ratio<1, 10'000'000>; // 100ns
3131
using duration = std::chrono::duration<rep, ratio>;
3232

3333
static constexpr bool is_steady = false;

0 commit comments

Comments
 (0)