summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.clang-tidy1
-rw-r--r--src/lilv_internal.h1
-rw-r--r--src/plugin.c10
-rw-r--r--src/util.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 8d229b6..0673649 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -15,6 +15,7 @@ Checks: >
-hicpp-multiway-paths-covered,
-hicpp-signed-bitwise,
-llvm-header-guard,
+ -performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
-readability-suspicious-call-argument,
InheritParentConfig: true
diff --git a/src/lilv_internal.h b/src/lilv_internal.h
index 0f125e0..0a1f7d4 100644
--- a/src/lilv_internal.h
+++ b/src/lilv_internal.h
@@ -26,7 +26,6 @@ extern "C" {
# define dlopen(path, flags) LoadLibrary(path)
# define dlclose(lib) FreeLibrary((HMODULE)lib)
# ifdef _MSC_VER
-# define __func__ __FUNCTION__
# ifndef snprintf
# define snprintf _snprintf
# endif
diff --git a/src/plugin.c b/src/plugin.c
index 0600369..f191eda 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -567,9 +567,11 @@ lilv_plugin_get_port_ranges_float(const LilvPlugin* plugin,
}
uint32_t
-lilv_plugin_get_num_ports_of_class_va(const LilvPlugin* plugin,
- const LilvNode* class_1,
- va_list args)
+lilv_plugin_get_num_ports_of_class_va(
+ const LilvPlugin* plugin,
+ const LilvNode* class_1,
+ va_list args // NOLINT(readability-non-const-parameter)
+)
{
lilv_plugin_load_ports_if_necessary(plugin);
@@ -611,7 +613,7 @@ lilv_plugin_get_num_ports_of_class(const LilvPlugin* plugin,
const LilvNode* class_1,
...)
{
- va_list args;
+ va_list args; // NOLINT(cppcoreguidelines-init-variables)
va_start(args, class_1);
uint32_t count = lilv_plugin_get_num_ports_of_class_va(plugin, class_1, args);
diff --git a/src/util.c b/src/util.c
index 0904ce6..b7b62a4 100644
--- a/src/util.c
+++ b/src/util.c
@@ -37,7 +37,7 @@ lilv_strjoin(const char* first, ...)
memcpy(result, first, len);
- va_list args;
+ va_list args; // NOLINT(cppcoreguidelines-init-variables)
va_start(args, first);
while (1) {
const char* const s = va_arg(args, const char*);