[tor-bugs] #29898 [Core Tor/Tor]: How can we automatically add #else and #endif comments?

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Mar 26 09:09:25 UTC 2019


#29898: How can we automatically add #else and #endif comments?
-------------------------------+--------------------------------
     Reporter:  teor           |      Owner:  (none)
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:  Tor: 0.4.1.x-final
    Component:  Core Tor/Tor   |    Version:
     Severity:  Normal         |   Keywords:  technical-debt
Actual Points:                 |  Parent ID:
       Points:  0.1            |   Reviewer:
      Sponsor:  Sponsor31-can  |
-------------------------------+--------------------------------
 In 0.3.5? we ran a script to automatically add comments to #else and
 #endif blocks. These comments help us work out how these macros are
 nested.

 But since then, we've added new #else and #endif without the comments.

 Should we run the script again in 0.4.1?
 Should we run it before we branch off each new maint branch?
 Should we automatically run it before we commit or merge?

 I hope nickm has some good feedback on this idea.

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


More information about the tor-bugs mailing list