summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-08-29 20:21:51 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-08-30 12:11:43 +0200
commite3f43bf74ede647fb3f2a83dac8905a47022eff3 (patch)
tree16aefd3194ecac3cd985d81a82904f58996740ef /solenv
parent1c7fdf561bc924741a121439a6cb42f96f285b58 (diff)
solenv: teach create-tags to handle CPPUNIT_TEST_FIXTURE()
So that e.g. :ts testOleSaveWhileEdit works in vim. Inspired by the upstream-documented DECLARE_FUNCTION() macro from <https://github.com/universal-ctags/ctags/blob/master/docs/parser-cxx.rst>. Note that if your ctags is old enough to not handle -D (like, more than 3 years old), it'll still index the rest, so it seems we can do this unconditionally. Change-Id: I5545f3a172bdac613bba07bd364ad5b00d1fd970 Reviewed-on: https://gerrit.libreoffice.org/78281 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/create-tags1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/bin/create-tags b/solenv/bin/create-tags
index c9fd565b823f..bf788e26cd13 100755
--- a/solenv/bin/create-tags
+++ b/solenv/bin/create-tags
@@ -12,6 +12,7 @@ saloptions="-ISAL_DELETED_FUNCTION -ISAL_OVERRIDE -ISAL_FINAL"
omnicppoptions="--c++-kinds=+p --fields=+iaS --extra=+q"
$ctags -h "+.hdl.hrc" --langmap=c:+.hrc.src,c++:+.hdl $saloptions $omnicppoptions \
+ -D "CPPUNIT_TEST_FIXTURE(TestClass, TestName)=class TestName : public TestClass {};" \
--languages=-HTML,Java,JavaScript \
--langdef=UNOIDL \
--langmap=UNOIDL:.idl \