From: Nick Mathewson Date: Mon, 3 Oct 2016 17:58:09 +0000 (-0400) Subject: Teach 'make tags' about MOCK_IMPL. X-Git-Tag: tor-0.2.9.4-alpha~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a49fb1e2e5ebb03d7d115b4a4eaa1c17c160f1a8;p=thirdparty%2Ftor.git Teach 'make tags' about MOCK_IMPL. Patch from nherring; closes ticket 16869 --- diff --git a/Makefile.am b/Makefile.am index c160af9732..f400728bac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,9 @@ EXTRA_DIST+= \ README \ ReleaseNotes +## This tells etags how to find mockable function definitions. +AM_ETAGSFLAGS=--regex='{c}/MOCK_IMPL([^,]+,\W*\([a-zA-Z0-9_]+\)\W*,/\1/s' + if COVERAGE_ENABLED TEST_CFLAGS=-fno-inline -fprofile-arcs -ftest-coverage if DISABLE_ASSERTS_IN_UNIT_TESTS diff --git a/changes/16869 b/changes/16869 new file mode 100644 index 0000000000..6687243551 --- /dev/null +++ b/changes/16869 @@ -0,0 +1,4 @@ + o Minor features (development tools, etags): + - Teach the "make tags" Makefile target how to correctly find + "MOCK_IMPL" function definitions. Patch from nherring; closes + ticket 16869.