Skip to content

Commit e366bb3

Browse files
authored
Fix several doxygen warnings (#1790)
1 parent 4f42a75 commit e366bb3

21 files changed

Lines changed: 252 additions & 230 deletions

.github/workflows/api_doc_build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616

1717
env:
1818
BUILD_TYPE: Release
19+
DOXYGEN_VERSION: "1.17.0"
1920

2021
concurrency:
2122
group: ${{ github.workflow }}-${{ github.ref }}
@@ -34,7 +35,14 @@ jobs:
3435
run: sudo apt-get update
3536

3637
- name: Install Dependencies
37-
run: sudo apt-get install doxygen xsltproc libxslt1-dev
38+
run: sudo apt-get install xsltproc libxslt1-dev
39+
40+
- name: Install Doxygen ${{ env.DOXYGEN_VERSION }}
41+
run: |
42+
DOXYGEN_VERSION_UNDERSCORED="${DOXYGEN_VERSION//./_}"
43+
curl --proto-redir =https -fsSL "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION_UNDERSCORED}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" \
44+
| sudo tar -xz --strip-components=1 -C /usr/local
45+
doxygen --version
3846
3947
- name: Create Build Environment
4048
run: cmake -E make_directory ${{runner.workspace}}/build

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ latex/
5151
/zensical_runtime.toml
5252
_codeql_build_dir/
5353
_codeql_detected_source_root
54+
55+
# Auto-generated by CMake build targets -- not committed to version control
56+
doc/wiki/api/
57+
doc/wiki/settings/
58+
doc/wiki/usage/

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ RUN zypper refresh && zypper install --no-recommends -y cmake pkg-config make gc
1212

1313
RUN zypper refresh && zypper install --no-recommends -y clang
1414

15-
RUN zypper refresh && zypper install --no-recommends -y doxygen astyle gdb sox find awk
15+
RUN zypper refresh && zypper install --no-recommends -y doxygen astyle gdb sox
1616

17-
RUN zypper refresh && zypper install --no-recommends -y glib2-devel ninja
17+
RUN zypper refresh && zypper install --no-recommends -y glib2-devel ninja xsltproc
1818

1919
# Documentation build dependencies:
2020
# python3 + pipx -- for zensical

doc/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ if ( DOXYGEN_FOUND )
165165
# a relative path. The file is gitignored via the root .gitignore.
166166
if ( LIBXSLT_XSLTPROC_EXECUTABLE AND ZENSICAL_EXECUTABLE )
167167
set ( ZENSICAL_RUNTIME_CONFIG ${CMAKE_SOURCE_DIR}/zensical_runtime.toml )
168+
if ( DOXYGEN_VERSION VERSION_LESS "1.15.0" )
169+
message ( WARNING "Your doxygen version ${DOXYGEN_VERSION} is old. This logic has only been tested to work correctly with doxygen 1.15 and newer." )
170+
endif ()
171+
168172
add_custom_target ( zensical
169173
COMMAND ${CMAKE_COMMAND}
170174
-D WIKI_DIR=${WIKI_DOCS_DIR}

doc/Doxyfile.cmake

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ VERBATIM_HEADERS = NO
121121
# configuration options related to the alphabetical class index
122122
#---------------------------------------------------------------------------
123123
ALPHABETICAL_INDEX = YES
124-
COLS_IN_ALPHA_INDEX = 5
125124
IGNORE_PREFIX =
126125
#---------------------------------------------------------------------------
127126
# configuration options related to the HTML output
@@ -167,7 +166,7 @@ LATEX_OUTPUT = latex
167166
LATEX_CMD_NAME = latex
168167
MAKEINDEX_CMD_NAME = makeindex
169168
COMPACT_LATEX = NO
170-
PAPER_TYPE = a4wide
169+
PAPER_TYPE = a4
171170
EXTRA_PACKAGES =
172171
LATEX_HEADER =
173172
PDF_HYPERLINKS = YES
@@ -228,15 +227,11 @@ TAGFILES =
228227
GENERATE_TAGFILE =
229228
ALLEXTERNALS = NO
230229
EXTERNAL_GROUPS = YES
231-
PERL_PATH = /usr/bin/perl
232230
#---------------------------------------------------------------------------
233231
# Configuration options related to the dot tool
234232
#---------------------------------------------------------------------------
235-
CLASS_DIAGRAMS = YES
236-
MSCGEN_PATH =
237233
HIDE_UNDOC_RELATIONS = YES
238234
HAVE_DOT = NO
239-
DOT_FONTNAME =
240235
DOT_FONTPATH =
241236
CLASS_GRAPH = YES
242237
COLLABORATION_GRAPH = YES
@@ -254,8 +249,6 @@ DOT_PATH =
254249
DOTFILE_DIRS =
255250
DOT_GRAPH_MAX_NODES = 50
256251
MAX_DOT_GRAPH_DEPTH = 1000
257-
DOT_TRANSPARENT = YES
258-
DOT_MULTI_TARGETS = NO
259252
GENERATE_LEGEND = YES
260253
DOT_CLEANUP = YES
261254
#---------------------------------------------------------------------------

doc/wiki/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

doc/wiki/BuildingForAndroid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ to capture even more missing dependencies that the NDK requires and make sure th
5151
## Getting started
5252

5353
* Read the preface above!
54-
* [Seriously, read the preface](#Preface)!!
54+
* [Seriously, read the preface](#preface)!!
5555
* Download the Android NDK
5656
* Download [fluid-android-prepare.sh](https://gist.github.com/derselbst/885641b86b8bd0e5fd1b1d846d4b286b) and [fluid-android-compile.sh](https://gist.github.com/derselbst/88917bf177d25cfc1067a37b442dd5ff)
5757
* Open `fluid-android-prepare.sh` and study it

src/bindings/fluid_cmd.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4114,7 +4114,11 @@ fluid_cmd_handler_destroy_hash_value(void *value)
41144114
/**
41154115
* Create a new command handler.
41164116
*
4117-
* See new_fluid_cmd_handler2() for more information.
4117+
* @sa See new_fluid_cmd_handler2() for more information.
4118+
*
4119+
* @param synth If not NULL, all the default synthesizer commands will be added to the new handler.
4120+
* @param router If not NULL, all the default midi_router commands will be added to the new handler.
4121+
* @return New command handler, or NULL if alloc failed
41184122
*/
41194123
fluid_cmd_handler_t *new_fluid_cmd_handler(fluid_synth_t *synth, fluid_midi_router_t *router)
41204124
{
@@ -4427,7 +4431,8 @@ void delete_fluid_client(fluid_client_t *client)
44274431
/**
44284432
* Create a new TCP/IP command shell server.
44294433
*
4430-
* See new_fluid_server2() for more information.
4434+
* @sa See new_fluid_server2() for more information.
4435+
* @return New shell server instance or NULL on error
44314436
*/
44324437
fluid_server_t *
44334438
new_fluid_server(fluid_settings_t *settings,

src/rvoice/fluid_chorus.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static int new_mod_delay_line(fluid_chorus_t *chorus, int delay_length)
626626
* fluid_chorus_set() must be called at least one time after calling
627627
* new_fluid_chorus().
628628
*
629-
* @param sample_rate, audio sample rate in Hz.
629+
* @param sample_rate audio sample rate in Hz.
630630
* @return pointer on chorus unit.
631631
*/
632632
fluid_chorus_t *
@@ -706,7 +706,7 @@ fluid_chorus_reset(fluid_chorus_t *chorus)
706706
* Set one or more chorus parameters.
707707
*
708708
* @param chorus Chorus instance.
709-
* @param set Flags indicating which chorus parameters to set (#fluid_chorus_set_t).
709+
* @param set Flags indicating which chorus parameters to set (fluid_chorus_set_t).
710710
* @param nr Chorus voice count (0-99, CPU time consumption proportional to
711711
* this value).
712712
* @param level Chorus level (0.0-10.0).
@@ -927,9 +927,9 @@ fluid_chorus_samplerate_change(fluid_chorus_t *chorus, fluid_real_t sample_rate)
927927
/**
928928
* Process chorus by mixing the result in output buffer.
929929
* @param chorus pointer on chorus unit returned by new_fluid_chorus().
930-
* @param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
931-
* @param left_out, right_out, pointers on stereo output buffers of
932-
* FLUID_BUFSIZE samples.
930+
* @param in pointer on monophonic input buffer of FLUID_BUFSIZE samples.
931+
* @param left_out pointer on stereo output buffer (left channel) of FLUID_BUFSIZE samples.
932+
* @param right_out pointer on stereo output buffer (right channel) of FLUID_BUFSIZE samples.
933933
*/
934934
void fluid_chorus_processmix(fluid_chorus_t *chorus, const fluid_real_t *in,
935935
fluid_real_t *left_out, fluid_real_t *right_out)
@@ -1002,9 +1002,9 @@ void fluid_chorus_processmix(fluid_chorus_t *chorus, const fluid_real_t *in,
10021002
/**
10031003
* Process chorus by putting the result in output buffer (no mixing).
10041004
* @param chorus pointer on chorus unit returned by new_fluid_chorus().
1005-
* @param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
1006-
* @param left_out, right_out, pointers on stereo output buffers of
1007-
* FLUID_BUFSIZE samples.
1005+
* @param in pointer on monophonic input buffer of FLUID_BUFSIZE samples.
1006+
* @param left_out pointer on stereo output buffer (left channel) of FLUID_BUFSIZE samples.
1007+
* @param right_out pointer on stereo output buffer (right channel) of FLUID_BUFSIZE samples.
10081008
*/
10091009
/* Duplication of code ... (replaces sample data instead of mixing) */
10101010
void fluid_chorus_processreplace(fluid_chorus_t *chorus, const fluid_real_t *in,

src/rvoice/fluid_rvoice.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ fluid_rvoice_check_sample_sanity(fluid_rvoice_t *voice)
292292
* Synthesize a voice to a buffer.
293293
*
294294
* @param voice rvoice to synthesize
295-
* @param dsp_buf Audio buffer to synthesize to (#FLUID_BUFSIZE in length)
295+
* @param dsp_buf Audio buffer to synthesize to (FLUID_BUFSIZE in length)
296296
* @return Count of samples written to dsp_buf. (-1 means voice is currently
297-
* quiet, 0 .. #FLUID_BUFSIZE-1 means voice finished.)
297+
* quiet, 0 .. FLUID_BUFSIZE-1 means voice finished.)
298298
*
299299
* Panning, reverb and chorus are processed separately. The dsp interpolation
300300
* routine is in (fluid_rvoice_dsp.c).
@@ -687,8 +687,7 @@ static FLUID_INLINE void fluid_rvoice_local_retrigger_attack(fluid_rvoice_t *voi
687687
/**
688688
* Used by legato Mode : multi_retrigger
689689
* see fluid_synth_noteon_mono_legato_multi_retrigger()
690-
* @param voice the synthesis voice to be updated
691-
*/
690+
*/
692691
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_multi_retrigger_attack)
693692
{
694693
fluid_rvoice_t *voice = obj;
@@ -743,15 +742,12 @@ DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_multi_retrigger_attack)
743742

744743
/**
745744
* sets the portamento dsp parameters: dsp.pitchoffset, dsp.pitchinc
746-
* @param voice rvoice to set portamento.
747-
* @param countinc increment count number.
748-
* @param pitchoffset pitch offset to apply to voice dsp.pitch.
749745
*
750746
* Notes:
751747
* 1) To get continuous portamento between consecutive noteOn (n1,n2,n3...),
752748
* pitchoffset is accumulated in current dsp pitchoffset.
753749
* 2) And to get constant portamento duration, dsp pitch increment is updated.
754-
*/
750+
*/
755751
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_set_portamento)
756752
{
757753
fluid_rvoice_t *voice = obj;

0 commit comments

Comments
 (0)