From 04ade9a255ac2429238cdb3e6b076a4989f5d2f0 Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Tue, 7 Jun 2022 06:34:28 +0200 Subject: Update clang-tidy configuration in format.sh and apply fixes for a new check (#1257) * Update format.sh compiler options and add a check for clang-tidy * Enable clang-tidy option to find inconsistent argument names * Remove -Iassets from clang-tidy compiler options --- src/code/audio_heap.c | 2 +- src/code/code_800E4FE0.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/code') diff --git a/src/code/audio_heap.c b/src/code/audio_heap.c index b49822711..147ce16b9 100644 --- a/src/code/audio_heap.c +++ b/src/code/audio_heap.c @@ -1,7 +1,7 @@ #include "ultra64.h" #include "global.h" -void AudioHeap_InitSampleCaches(u32 persistentSize, u32 temporarySize); +void AudioHeap_InitSampleCaches(u32 persistentSampleCacheSize, u32 temporarySampleCacheSize); SampleCacheEntry* AudioHeap_AllocTemporarySampleCacheEntry(u32 size); SampleCacheEntry* AudioHeap_AllocPersistentSampleCacheEntry(u32 size); void AudioHeap_DiscardSampleCacheEntry(SampleCacheEntry* entry); diff --git a/src/code/code_800E4FE0.c b/src/code/code_800E4FE0.c index 1be420f2a..5b1101fc9 100644 --- a/src/code/code_800E4FE0.c +++ b/src/code/code_800E4FE0.c @@ -21,12 +21,12 @@ typedef enum { CHAN_UPD_STEREO // 14 } ChannelUpdateType; -void func_800E6300(SequenceChannel* channel, AudioCmd* arg1); +void func_800E6300(SequenceChannel* channel, AudioCmd* cmd); void func_800E59AC(s32 playerIdx, s32 fadeTimer); void Audio_InitMesgQueues(void); AudioTask* func_800E5000(void); void Audio_ProcessCmds(u32); -void func_800E6128(SequencePlayer* seqPlayer, AudioCmd* arg1); +void func_800E6128(SequencePlayer* seqPlayer, AudioCmd* cmd); void func_800E5958(s32 playerIdx, s32 fadeTimer); s32 func_800E66C0(s32 arg0); -- cgit v1.2.3