[tor-bugs] #16869 [Core Tor/Tor]: Consider changing MOCK_DECL and MOCK_IMPL so that ctags still finds mocked functions

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Sep 30 21:58:23 UTC 2016


#16869: Consider changing MOCK_DECL and MOCK_IMPL so that ctags still finds mocked
functions
--------------------------+------------------------------
 Reporter:  isis          |          Owner:
     Type:  defect        |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.2.???
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  unittests     |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------

Comment (by nherring):

 For etags, it appears that
 `--regex='{c}/MOCK_IMPL([^,]+,\W*\([a-zA-Z0-9_]+\)\W*,/\1/s'` should work.
 It leaves `MOCK_IMPL` tags around, but adds additional tags for the real
 function.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16869#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list