summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-17 16:44:02 -0400
committerDavid Robillard <d@drobilla.net>2024-07-17 16:44:02 -0400
commit6bd2c9c327aa4b4cfe431f2c729f6dd0f1a10083 (patch)
tree07b1a4992a42dc13a2e61ba1b95c4b8fb645cfe2 /src/server
parentc22c440067195e9e0787604f8fb15c6f1f670329 (diff)
downloadingen-6bd2c9c327aa4b4cfe431f2c729f6dd0f1a10083.tar.gz
ingen-6bd2c9c327aa4b4cfe431f2c729f6dd0f1a10083.tar.bz2
ingen-6bd2c9c327aa4b4cfe431f2c729f6dd0f1a10083.zip
Use uppercase integer literal suffixes
Diffstat (limited to 'src/server')
-rw-r--r--src/server/.clang-tidy1
-rw-r--r--src/server/FrameTimer.hpp6
-rw-r--r--src/server/events/CreatePort.cpp2
-rw-r--r--src/server/ingen_lv2.cpp4
4 files changed, 6 insertions, 7 deletions
diff --git a/src/server/.clang-tidy b/src/server/.clang-tidy
index cf02c319..6990b1fe 100644
--- a/src/server/.clang-tidy
+++ b/src/server/.clang-tidy
@@ -2,7 +2,6 @@ Checks: >
-*-avoid-c-arrays,
-*-narrowing-conversions,
-*-non-private-member-variables-in-classes,
- -*-uppercase-literal-suffix,
-*-vararg,
-bugprone-branch-clone,
-bugprone-parent-virtual-call,
diff --git a/src/server/FrameTimer.hpp b/src/server/FrameTimer.hpp
index 1f653f67..0078f99c 100644
--- a/src/server/FrameTimer.hpp
+++ b/src/server/FrameTimer.hpp
@@ -94,12 +94,12 @@ private:
const double b;
const double c;
- uint64_t nper = 0u;
+ uint64_t nper = 0U;
double e2 = 0.0;
double t0 = 0.0;
double t1 = 0.0;
- uint64_t n0 = 0u;
- uint64_t n1 = 0u;
+ uint64_t n0 = 0U;
+ uint64_t n1 = 0U;
bool initialized = false;
};
diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp
index 937842a7..4c054fd9 100644
--- a/src/server/events/CreatePort.cpp
+++ b/src/server/events/CreatePort.cpp
@@ -179,7 +179,7 @@ CreatePort::pre_process(PreProcessContext&)
_update = _graph_port->properties();
assert(_graph_port->index() == static_cast<uint32_t>(index_i->second.get<int32_t>()));
- assert(_graph->num_ports_non_rt() == static_cast<uint32_t>(old_n_ports) + 1u);
+ assert(_graph->num_ports_non_rt() == static_cast<uint32_t>(old_n_ports) + 1U);
assert(_ports_array->size() == _graph->num_ports_non_rt());
assert(_graph_port->index() < _ports_array->size());
return Event::pre_process_done(Status::SUCCESS);
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index f5b4e79f..424a2d7f 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -104,8 +104,8 @@ public:
inline size_t
ui_ring_size(SampleCount block_length)
{
- return std::max(static_cast<size_t>(8192u),
- static_cast<size_t>(block_length) * 16u);
+ return std::max(static_cast<size_t>(8192U),
+ static_cast<size_t>(block_length) * 16U);
}
class LV2Driver : public Driver, public ingen::AtomSink