makefile
```makefile <<<<<<< SEARCH check: cppcheck --enable=all --error-exitcode=1 --suppress=missingIncludeSystem --suppress=usleepCalled --suppress=unreadVariable --suppress=normalCheckLevelMaxBranches src/*.c --library=posix . ======= check: cppcheck --enable=all --error-exitcode=1 --suppress=unreadVariable src/*.c --library=posix . >>>>>>> REPLACE ``` src/channel.c ```c <<<<<<< SEARCH #include "channel.h" #include <jack/jack.h> #include <stdatomic.h> #include <stdio.h> #include <string.h> ======= // cppcheck-suppress missingIncludeSystem #include "channel.h" #include <jack/jack.h> #include <stdatomic.h> #include <stdio.h> #include <string.h> >>>>>>> REPLACE ``` src/channel.h ```c <<<<<<< SEARCH #include <jack/jack.h> #include <stdatomic.h> ======= // cppcheck-suppress missingIncludeSystem #include <jack/jack.h> #include <stdatomic.h> >>>>>>> REPLACE ``` src/looper.c ```c <<<<<<< SEARCH #include "looper.h" #include "channel.h" #include "midi.h" #include <jack/jack.h> #include <jack/midiport.h> #include <math.h> #include <stdatomic.h> #include <stdio.h> #include <stdlib.h> #include <string.h> ======= // cppcheck-suppress missingIncludeSystem #include "looper.h" #include "channel.h" #include "midi.h" #include <jack/jack.h> #include <jack/midiport.h> #include <math.h> #include <stdatomic.h> #include <stdio.h> #include <stdlib.h> #include <string.h> >>>>>>> REPLACE ``` src/looper.h ```c <<<<<<< SEARCH #include <jack/jack.h> ======= // cppcheck-suppress missingIncludeSystem #include <jack/jack.h> >>>>>>> REPLACE ``` src/main.c ```c <<<<<<< SEARCH #include "looper.h" #include <jack/jack.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> ======= // cppcheck-suppress missingIncludeSystem #include "looper.h" #include <jack/jack.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> >>>>>>> REPLACE ``` src/midi.c ```c <<<<<<< SEARCH #include "midi.h" #include "channel.h" #include <jack/jack.h> #include <jack/midiport.h> #include <stdatomic.h> ======= // cppcheck-suppress missingIncludeSystem #include "midi.h" #include "channel.h" #include <jack/jack.h> #include <jack/midiport.h> #include <stdatomic.h> >>>>>>> REPLACE ``` src/midi.h ```c <<<<<<< SEARCH #include <jack/types.h> ======= // cppcheck-suppress missingIncludeSystem #include <jack/types.h> >>>>>>> REPLACE ``` tests/integration.c ```c <<<<<<< SEARCH #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include <sys/types.h> #include <string.h> #include <stdarg.h> #include <fcntl.h> #include <jack/jack.h> #include <jack/midiport.h> #include <math.h> #include <time.h> ======= // cppcheck-suppress missingIncludeSystem // cppcheck-suppress usleepCalled // cppcheck-suppress normalCheckLevelMaxBranches #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/wait.h> #include <sys/types.h> #include <string.h> #include <stdarg.h> #include <fcntl.h> #include <jack/jack.h> #include <jack/midiport.h> #include <math.h> #include <time.h> >>>>>>> REPLACE ``` Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
2
makefile
2
makefile
@@ -22,7 +22,7 @@ clean:
|
|||||||
rm -f looper integration_test src/*.o
|
rm -f looper integration_test src/*.o
|
||||||
|
|
||||||
check:
|
check:
|
||||||
cppcheck --enable=all --error-exitcode=1 --suppress=missingIncludeSystem --suppress=usleepCalled --suppress=unreadVariable --suppress=normalCheckLevelMaxBranches src/*.c --library=posix .
|
cppcheck --enable=all --error-exitcode=1 --suppress=unreadVariable src/*.c --library=posix .
|
||||||
|
|
||||||
# Optional: Format code using clang-format
|
# Optional: Format code using clang-format
|
||||||
format:
|
format:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef CHANNEL_H
|
#ifndef CHANNEL_H
|
||||||
#define CHANNEL_H
|
#define CHANNEL_H
|
||||||
|
|
||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
#include <stdatomic.h>
|
#include <stdatomic.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include "looper.h"
|
#include "looper.h"
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
#include "midi.h"
|
#include "midi.h"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef LOOPER_H
|
#ifndef LOOPER_H
|
||||||
#define LOOPER_H
|
#define LOOPER_H
|
||||||
|
|
||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
|
|
||||||
/* Initialisation – must be called after setting process callback */
|
/* Initialisation – must be called after setting process callback */
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include "looper.h"
|
#include "looper.h"
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include "midi.h"
|
#include "midi.h"
|
||||||
#include "channel.h"
|
#include "channel.h"
|
||||||
#include <jack/jack.h>
|
#include <jack/jack.h>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef MIDI_H
|
#ifndef MIDI_H
|
||||||
#define MIDI_H
|
#define MIDI_H
|
||||||
|
|
||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
#include <jack/types.h>
|
#include <jack/types.h>
|
||||||
|
|
||||||
void midi_handle_events(void *port_buffer, jack_nframes_t nframes);
|
void midi_handle_events(void *port_buffer, jack_nframes_t nframes);
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// cppcheck-suppress missingIncludeSystem
|
||||||
|
// cppcheck-suppress usleepCalled
|
||||||
|
// cppcheck-suppress normalCheckLevelMaxBranches
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user