summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:42:06 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:42:06 -0400
commitb42cb99941882ec96efc469a3f9212e3b1676f26 (patch)
tree0321e3578ffa29009b02c511e57d15ba85772f80 /src
parent56cfb8680a67c283175e7a06b437cf480f9f5c82 (diff)
downloadingen-b42cb99941882ec96efc469a3f9212e3b1676f26.tar.gz
ingen-b42cb99941882ec96efc469a3f9212e3b1676f26.tar.bz2
ingen-b42cb99941882ec96efc469a3f9212e3b1676f26.zip
Use consistent brace wrapping for class definitions
Diffstat (limited to 'src')
-rw-r--r--src/gui/LoadPluginWindow.hpp6
-rw-r--r--src/gui/URIEntry.hpp3
-rw-r--r--src/gui/WidgetFactory.hpp3
-rw-r--r--src/gui/WindowFactory.hpp3
-rw-r--r--src/server/Broadcaster.hpp3
-rw-r--r--src/server/BufferFactory.hpp3
-rw-r--r--src/server/CompiledGraph.cpp3
-rw-r--r--src/server/ControlBindings.hpp3
-rw-r--r--src/server/DirectDriver.hpp3
-rw-r--r--src/server/Driver.hpp3
-rw-r--r--src/server/Event.hpp8
-rw-r--r--src/server/LV2Options.hpp3
-rw-r--r--src/server/PortType.hpp3
-rw-r--r--src/server/PostProcessor.cpp3
-rw-r--r--src/server/Task.hpp3
-rw-r--r--src/server/ThreadManager.hpp3
-rw-r--r--src/server/UndoStack.hpp3
-rw-r--r--src/server/events/Disconnect.hpp3
-rw-r--r--src/server/ingen_lv2.cpp3
19 files changed, 42 insertions, 23 deletions
diff --git a/src/gui/LoadPluginWindow.hpp b/src/gui/LoadPluginWindow.hpp
index 46c5e816..7a9313e2 100644
--- a/src/gui/LoadPluginWindow.hpp
+++ b/src/gui/LoadPluginWindow.hpp
@@ -88,7 +88,8 @@ protected:
private:
/** Columns for the plugin list */
- class ModelColumns : public Gtk::TreeModel::ColumnRecord {
+ class ModelColumns : public Gtk::TreeModel::ColumnRecord
+ {
public:
ModelColumns() {
add(_col_name);
@@ -110,7 +111,8 @@ private:
};
/** Column for the filter criteria combo box. */
- class CriteriaColumns : public Gtk::TreeModel::ColumnRecord {
+ class CriteriaColumns : public Gtk::TreeModel::ColumnRecord
+ {
public:
enum class Criteria { NAME, TYPE, PROJECT, AUTHOR, URI, };
diff --git a/src/gui/URIEntry.hpp b/src/gui/URIEntry.hpp
index cc8f96a3..04dfaa41 100644
--- a/src/gui/URIEntry.hpp
+++ b/src/gui/URIEntry.hpp
@@ -39,7 +39,8 @@ namespace gui {
class App;
-class URIEntry : public Gtk::HBox {
+class URIEntry : public Gtk::HBox
+{
public:
/** Create a widget for entering URIs.
*
diff --git a/src/gui/WidgetFactory.hpp b/src/gui/WidgetFactory.hpp
index 11ef71d1..d2f449ee 100644
--- a/src/gui/WidgetFactory.hpp
+++ b/src/gui/WidgetFactory.hpp
@@ -31,7 +31,8 @@ namespace gui {
*
* \ingroup GUI
*/
-class WidgetFactory {
+class WidgetFactory
+{
public:
static Glib::RefPtr<Gtk::Builder>
create(const std::string& toplevel_widget="");
diff --git a/src/gui/WindowFactory.hpp b/src/gui/WindowFactory.hpp
index d4fe8d22..4ef79239 100644
--- a/src/gui/WindowFactory.hpp
+++ b/src/gui/WindowFactory.hpp
@@ -53,7 +53,8 @@ class RenameWindow;
* as well as an enumeration of all windows (the goal being to reduce that
* number as much as possible).
*/
-class WindowFactory {
+class WindowFactory
+{
public:
explicit WindowFactory(App& app);
~WindowFactory();
diff --git a/src/server/Broadcaster.hpp b/src/server/Broadcaster.hpp
index 8e9848f4..39acca04 100644
--- a/src/server/Broadcaster.hpp
+++ b/src/server/Broadcaster.hpp
@@ -76,7 +76,8 @@ public:
* This makes doing the right thing in recursive functions that send
* updates simple (e.g. Event::post_process()).
*/
- class Transfer : public raul::Noncopyable {
+ class Transfer : public raul::Noncopyable
+ {
public:
explicit Transfer(Broadcaster& b) : broadcaster(b) {
if (++broadcaster._bundle_depth == 1) {
diff --git a/src/server/BufferFactory.hpp b/src/server/BufferFactory.hpp
index 58c5bba2..44409f3c 100644
--- a/src/server/BufferFactory.hpp
+++ b/src/server/BufferFactory.hpp
@@ -39,7 +39,8 @@ namespace server {
class Buffer;
class Engine;
-class INGEN_SERVER_API BufferFactory {
+class INGEN_SERVER_API BufferFactory
+{
public:
BufferFactory(Engine& engine, URIs& uris);
~BufferFactory();
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index e644d982..103d27a3 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -43,7 +43,8 @@ namespace ingen {
namespace server {
/** Graph contains ambiguous feedback with no delay nodes. */
-class FeedbackException : public std::exception {
+class FeedbackException : public std::exception
+{
public:
explicit FeedbackException(const BlockImpl* n)
: node(n)
diff --git a/src/server/ControlBindings.hpp b/src/server/ControlBindings.hpp
index e71befa1..7c5ebb1f 100644
--- a/src/server/ControlBindings.hpp
+++ b/src/server/ControlBindings.hpp
@@ -51,7 +51,8 @@ class Engine;
class RunContext;
class PortImpl;
-class ControlBindings {
+class ControlBindings
+{
public:
enum class Type : uint16_t {
NULL_CONTROL,
diff --git a/src/server/DirectDriver.hpp b/src/server/DirectDriver.hpp
index 7c683493..48de44f9 100644
--- a/src/server/DirectDriver.hpp
+++ b/src/server/DirectDriver.hpp
@@ -51,7 +51,8 @@ class Buffer;
/** Driver for running Ingen directly as a library.
* \ingroup engine
*/
-class DirectDriver : public Driver {
+class DirectDriver : public Driver
+{
public:
DirectDriver(Engine& engine,
double sample_rate,
diff --git a/src/server/Driver.hpp b/src/server/Driver.hpp
index 1bc6213d..0580e84d 100644
--- a/src/server/Driver.hpp
+++ b/src/server/Driver.hpp
@@ -44,7 +44,8 @@ class RunContext;
*
* \ingroup engine
*/
-class Driver : public raul::Noncopyable {
+class Driver : public raul::Noncopyable
+{
public:
virtual ~Driver() = default;
diff --git a/src/server/Event.hpp b/src/server/Event.hpp
index 53d33e89..485badb1 100644
--- a/src/server/Event.hpp
+++ b/src/server/Event.hpp
@@ -63,10 +63,10 @@ public:
/** Execution mode for events that block and unblock preprocessing. */
enum class Execution {
- NORMAL, ///< Normal pipelined execution
- ATOMIC, ///< Block pre-processing until this event is executed
- BLOCK, ///< Begin atomic block of events
- UNBLOCK ///< Finish atomic executed block of events
+ NORMAL, ///< Normal pipelined execution
+ ATOMIC, ///< Block pre-processing until this event is executed
+ BLOCK, ///< Begin atomic block of events
+ UNBLOCK ///< Finish atomic executed block of events
};
/** Claim position in undo stack before pre-processing (non-realtime). */
diff --git a/src/server/LV2Options.hpp b/src/server/LV2Options.hpp
index 2ae1c6d7..50544e01 100644
--- a/src/server/LV2Options.hpp
+++ b/src/server/LV2Options.hpp
@@ -34,7 +34,8 @@ class World;
namespace server {
-class LV2Options : public ingen::LV2Features::Feature {
+class LV2Options : public ingen::LV2Features::Feature
+{
public:
explicit LV2Options(const URIs& uris)
: _uris(uris)
diff --git a/src/server/PortType.hpp b/src/server/PortType.hpp
index d67429c9..2df3aa9d 100644
--- a/src/server/PortType.hpp
+++ b/src/server/PortType.hpp
@@ -32,7 +32,8 @@ namespace ingen {
* of its contents). Ports with different types can contain the same type of
* data, but may e.g. have different access semantics.
*/
-class PortType {
+class PortType
+{
public:
enum ID {
UNKNOWN = 0,
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index d02935a9..88df994c 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -26,7 +26,8 @@ namespace server {
class PreProcessContext;
-class Sentinel : public Event {
+class Sentinel : public Event
+{
public:
explicit Sentinel(Engine& engine) noexcept : Event(engine) {}
diff --git a/src/server/Task.hpp b/src/server/Task.hpp
index 7a50fe8e..83782098 100644
--- a/src/server/Task.hpp
+++ b/src/server/Task.hpp
@@ -32,7 +32,8 @@ namespace server {
class BlockImpl;
class RunContext;
-class Task {
+class Task
+{
public:
enum class Mode {
SINGLE, ///< Single block to run
diff --git a/src/server/ThreadManager.hpp b/src/server/ThreadManager.hpp
index 4db87c1c..7c895607 100644
--- a/src/server/ThreadManager.hpp
+++ b/src/server/ThreadManager.hpp
@@ -31,7 +31,8 @@ enum ThreadFlag {
THREAD_MESSAGE = 1 << 3,
};
-class INGEN_SERVER_API ThreadManager {
+class INGEN_SERVER_API ThreadManager
+{
public:
static inline void set_flag(ThreadFlag f) {
#ifndef NDEBUG
diff --git a/src/server/UndoStack.hpp b/src/server/UndoStack.hpp
index 081d3ff4..8195920a 100644
--- a/src/server/UndoStack.hpp
+++ b/src/server/UndoStack.hpp
@@ -39,7 +39,8 @@ class URIs;
namespace server {
-class INGEN_SERVER_API UndoStack : public AtomSink {
+class INGEN_SERVER_API UndoStack : public AtomSink
+{
public:
struct Entry {
Entry(time_t t = 0) noexcept : time(t) {}
diff --git a/src/server/events/Disconnect.hpp b/src/server/events/Disconnect.hpp
index c6db44be..5ce635e6 100644
--- a/src/server/events/Disconnect.hpp
+++ b/src/server/events/Disconnect.hpp
@@ -61,7 +61,8 @@ public:
void post_process() override;
void undo(Interface& target) override;
- class Impl {
+ class Impl
+ {
public:
Impl(Engine& e, GraphImpl* graph, PortImpl* t, InputPort* h);
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 203fc115..8d8a2b75 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -90,7 +90,8 @@ struct LV2Graph : public Parser::ResourceRecord {
};
/** Ingen LV2 library. */
-class Lib {
+class Lib
+{
public:
explicit Lib(const char* bundle_path);