Skip to content

Commit bf4772d

Browse files
require non-negative timestamps
1 parent 081ea07 commit bf4772d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.clang-tidy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ Checks: >-
3131
-misc-include-cleaner,
3232
-cppcoreguidelines-avoid-do-while,
3333
-*-magic-numbers,
34+
-*-use-enum-class,
35+
-*-use-trailing-return-type,
36+
-*-deprecated-headers,
3437
CheckOptions:
3538
- key: readability-function-cognitive-complexity.Threshold
3639
value: '99'

libudpard/udpard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
/// SPDX-License-Identifier: MIT
3636
/// Author: Pavel Kirienko <[email protected]>
3737

38+
// ReSharper disable CppUnusedIncludeDirective
39+
3840
#ifndef UDPARD_H_INCLUDED
3941
#define UDPARD_H_INCLUDED
4042

@@ -69,6 +71,7 @@ extern "C"
6971
/// The library supports at most this many local redundant network interfaces.
7072
#define UDPARD_NETWORK_INTERFACE_COUNT_MAX 3U
7173

74+
/// Timestamps supplied by the application must be non-negative monotonically increasing counts of microseconds.
7275
typedef int64_t udpard_us_t;
7376

7477
#define UDPARD_PRIORITY_MAX 7U

0 commit comments

Comments
 (0)