Skip to content

Commit df03ee5

Browse files
committed
adding NOLINTs to static variables
1 parent ae09ff1 commit df03ee5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

include/reactor-cpp/logging.hh

+3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ private:
2727
using Lock = std::unique_lock<std::mutex>;
2828

2929
const std::string log_prefix_{};
30+
31+
// NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables)
3032
inline static std::mutex mutex_{};
33+
3134
Lock lock_{};
3235

3336
public:

include/reactor-cpp/scheduler.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private:
4343
std::thread thread_{};
4444
log::NamedLogger log_;
4545

46-
// NOLINTNEXTLINEecppcoreguidelines-avoid-non-const-global-variables)
46+
// NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables)
4747
static thread_local const Worker* current_worker;
4848

4949
void work() const;

include/reactor-cpp/time_barrier.hh

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
namespace reactor {
1919

2020
class PhysicalTimeBarrier {
21+
// NOLINTNEXTLINE (cppcoreguidelines-avoid-non-const-global-variables)
2122
inline static std::atomic<Duration> last_observed_physical_time_{Duration::zero()};
2223

2324
public:

0 commit comments

Comments
 (0)