This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Sort #includes in gdb


On 03/15/2019 11:13 PM, Tom Tromey wrote:
> Pedro> ISTR that you could point the bot at some branch instead of a patch?
> 
> Tom> I don't know but I will ask Sergio when he's back.
> 
> I think it can't be done.

Isn't that what "try --branch" is for?

> 
> Pedro> No firm opinion on comments vs no comments.
> 
> Tom> For now at least, I'm sticking with "no comments" because the lack of
> Tom> comment-handling in the script means that adding comments makes the
> Tom> script non-idempotent.  But, idempotency is a good quality to have,
> Tom> because it means the script can be re-run at any time to fix any
> Tom> "regressions" that have crept in.
> 
> I thought about this some more and I went back and implemented limited
> comment-scanning, to make this work.  I think this is nicer because it
> provides an in-source guide to developers saying where to add a new
> #include.
> 
> I've appended the relevant bits from the rewritten objfiles.c.
> 
> Let me know what you think.
Seems fine to me.

BTW, I noticed that the ChangeLog said "Sort headers."
twice for every entry.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]