summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-10 12:16:39 -0500
committerDavid Robillard <d@drobilla.net>2022-12-10 12:16:39 -0500
commit6dfe369a0931dc9377aaab114041e4ad1cb2593d (patch)
treec0251fe0d1c674937d772831b812b75de599d7d4
parente47ee08c5d497fe921cc264c2573bfc21f492cf6 (diff)
downloadlilv-6dfe369a0931dc9377aaab114041e4ad1cb2593d.tar.gz
lilv-6dfe369a0931dc9377aaab114041e4ad1cb2593d.tar.bz2
lilv-6dfe369a0931dc9377aaab114041e4ad1cb2593d.zip
Update code formatting for clang-tidy 14
-rw-r--r--include/lilv/lilvmm.hpp55
1 files changed, 41 insertions, 14 deletions
diff --git a/include/lilv/lilvmm.hpp b/include/lilv/lilvmm.hpp
index f0ace1e..d51401b 100644
--- a/include/lilv/lilvmm.hpp
+++ b/include/lilv/lilvmm.hpp
@@ -47,20 +47,35 @@ uri_to_path(const char* uri)
# pragma GCC diagnostic pop
#endif
-#define LILV_WRAP0(RT, prefix, name) \
- inline RT name() { return lilv_##prefix##_##name(me); }
+#define LILV_WRAP0(RT, prefix, name) \
+ inline RT name() \
+ { \
+ return lilv_##prefix##_##name(me); \
+ }
#define LILV_WRAP0_VOID(prefix, name) \
- inline void name() { lilv_##prefix##_##name(me); }
+ inline void name() \
+ { \
+ lilv_##prefix##_##name(me); \
+ }
#define LILV_WRAP1(RT, prefix, name, T1, a1) \
- inline RT name(T1 a1) { return lilv_##prefix##_##name(me, a1); }
+ inline RT name(T1 a1) \
+ { \
+ return lilv_##prefix##_##name(me, a1); \
+ }
#define LILV_WRAP1_VOID(prefix, name, T1, a1) \
- inline void name(T1 a1) { lilv_##prefix##_##name(me, a1); }
+ inline void name(T1 a1) \
+ { \
+ lilv_##prefix##_##name(me, a1); \
+ }
#define LILV_WRAP2(RT, prefix, name, T1, a1, T2, a2) \
- inline RT name(T1 a1, T2 a2) { return lilv_##prefix##_##name(me, a1, a2); }
+ inline RT name(T1 a1, T2 a2) \
+ { \
+ return lilv_##prefix##_##name(me, a1, a2); \
+ }
#define LILV_WRAP3(RT, prefix, name, T1, a1, T2, a2, T3, a3) \
inline RT name(T1 a1, T2 a2, T3 a3) \
@@ -69,11 +84,17 @@ uri_to_path(const char* uri)
}
#define LILV_WRAP2_VOID(prefix, name, T1, a1, T2, a2) \
- inline void name(T1 a1, T2 a2) { lilv_##prefix##_##name(me, a1, a2); }
+ inline void name(T1 a1, T2 a2) \
+ { \
+ lilv_##prefix##_##name(me, a1, a2); \
+ }
#ifndef SWIG
# define LILV_WRAP_CONVERSION(CT) \
- inline operator CT*() const { return me; }
+ inline operator CT*() const \
+ { \
+ return me; \
+ }
#else
# define LILV_WRAP_CONVERSION(CT)
#endif
@@ -227,11 +248,17 @@ struct Port {
LILV_WRAP_CONVERSION(const LilvPort);
-#define LILV_PORT_WRAP0(RT, name) \
- inline RT name() { return lilv_port_##name(parent, me); }
+#define LILV_PORT_WRAP0(RT, name) \
+ inline RT name() \
+ { \
+ return lilv_port_##name(parent, me); \
+ }
-#define LILV_PORT_WRAP1(RT, name, T1, a1) \
- inline RT name(T1 a1) { return lilv_port_##name(parent, me, a1); }
+#define LILV_PORT_WRAP1(RT, name, T1, a1) \
+ inline RT name(T1 a1) \
+ { \
+ return lilv_port_##name(parent, me, a1); \
+ }
LILV_PORT_WRAP1(LilvNodes*, get_value, LilvNode*, predicate);
LILV_PORT_WRAP0(LilvNodes*, get_properties)
@@ -378,10 +405,10 @@ struct World {
inline ~World() { lilv_world_free(me); }
- World(const World&) = delete;
+ World(const World&) = delete;
World& operator=(const World&) = delete;
- World(World&&) = delete;
+ World(World&&) = delete;
World& operator=(World&&) = delete;
inline LilvNode* new_uri(const char* uri) const