[Libreoffice-commits] core.git: solenv/bin

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 30 10:12:28 UTC 2019


 solenv/bin/create-tags |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit e3f43bf74ede647fb3f2a83dac8905a47022eff3
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Aug 29 20:21:51 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Aug 30 12:11:43 2019 +0200

    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 at collabora.com>

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 \


More information about the Libreoffice-commits mailing list