summaryrefslogtreecommitdiff
path: root/bin/find-undocumented-classes
blob: 3476596c0039b2b107233af5fe94a870c5894aeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash

# finds undocumented classes in the current directory (recursive)

type -p doxygen >/dev/null || exit

filter=
quiet=n
if [ "$1" = "-q" ]; then
    filter=">/dev/null"
    quiet=y
    shift
fi

doxygen=$(mktemp -d)
eval doxygen -g $doxygen/doxygen.cfg $filter
sed -i "/HTML_OUTPUT/s|html|$doxygen/html|" $doxygen/doxygen.cfg
sed -i '/GENERATE_LATEX/s/= YES/= NO/' $doxygen/doxygen.cfg
sed -i '/RECURSIVE/s/= NO/= YES/' $doxygen/doxygen.cfg
# do we have any arguments?
if [ -n "$*" ]; then
    sed -i "/^INPUT[^_]/s|=.*|= $*|" $doxygen/doxygen.cfg
fi
eval doxygen $doxygen/doxygen.cfg $filter 2> $doxygen/errors.txt
if [ "$quiet" == "n" ]; then
    echo
    echo "The following classes are undocumented:"
    echo
fi
cat $doxygen/errors.txt|grep -i 'Warning: Compound.*is not documented'
rm -rf $doxygen

# vim:set shiftwidth=4 softtabstop=4 expandtab:
d=8b87e29c987c599058a70f6a2e0259a2a4100f04'>use $(file …) directly instead of gb_var2file when not used as intermediateChristian Lohmaier 2022-12-13gb_var2file: remove now unused chunk-size parameterChristian Lohmaier 2022-11-29Don't build the Qt5 Mandelbrot demos unless we have Qt5Tor Lillqvist 2022-11-14WASM: fix loading writer docs after rebaseBalázs Varga (allotropia) 2022-11-01tdf#142446 follow up: Fix missing ui file crash and a11y ui errorsJim Raykowski 2022-10-14WASM add Calc as optional build result, make it build & runBalazs Varga 2022-09-29tdf#151197: Remove EmojiControlKhaled Hosny