3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 saloptions
="-ISAL_DELETED_FUNCTION -ISAL_OVERRIDE -ISAL_FINAL"
12 omnicppoptions
="--c++-kinds=+p --fields=+iaS --extra=+q"
14 $ctags -h "+.hdl.hrc" --langmap=c
:+.hrc.src
,c
++:+.hdl
$saloptions $omnicppoptions \
15 -D "CPPUNIT_TEST_FIXTURE(TestClass, TestName)=class TestName : public TestClass {};" \
16 --languages=-HTML,Java
,JavaScript \
18 --langmap=UNOIDL
:.idl \
19 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*interface[ \t]*([a-zA-Z0-9_]+[ \t]*::[ \t]*)*([a-zA-Z0-9_]+)[ \t]*(:[^:]|\{|$)/\3/i,interface/" \
20 --regex-UNOIDL="/^[ \t]*([a-zA-Z0-9:]+)[ \t]+([a-zA-Z0-9]+)\(.*\)/\2/f,function/" \
21 --regex-UNOIDL="/^[ \t]*\[.*property.*\][ \t]+([a-zA-Z0-9_]+)[ \t]+([a-zA-Z0-9]+);/\2/p,property/" \
22 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*service[ \t]+([a-zA-Z0-9_]+)[ \t]*(:[^:]|\{|$)/\2/g,service/" \
23 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*singleton[ \t]+([a-zA-Z0-9_]+)[ \t]*(:[^:]|\{|$)/\2/g,singleton/" \
24 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*struct[ \t]+([a-zA-Z0-9_]+)[ \t]*(:[^:]|\{|\<|$)/\2/s,struct/" \
25 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*enum[ \t]+([a-zA-Z0-9_]+)[ \t]*(\{|$)/\2/e,enum/" \
26 --regex-UNOIDL="/^[ \t]*(published)?[ \t]*exception[ \t]+([a-zA-Z0-9_]+)[ \t]*(:[^:]|\{|$)/\2/x,exception/" \
27 --regex-UNOIDL="/^[ \t]*([a-zA-Z0-9_]+)[ \t]+([a-zA-Z0-9_]+);/\2/m,member/" \
28 -R --exclude=instdir
--exclude=instdir_for_build
--exclude=workdir
--exclude=workdir_for_build \
29 --exclude=external
--totals=yes ${SRCDIR:-*}
31 if test -d workdir_for_build
; then
37 $ctags -h "+.hdl.hrc" --langmap=c
:+.hrc.src
,c
++:+.hdl
$saloptions $omnicppoptions \
38 --languages=-HTML,Java
,JavaScript \
39 -R --append=yes --totals=yes \
40 $w/UnoApiHeadersTarget
/udkapi
/normal \
41 $w/UnoApiHeadersTarget
/offapi
/normal \
42 $w/CustomTarget
/officecfg
/registry