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: [RFA] (cli/cli-cmds.c) ARI fix: Avoid assignment inside if statement


>    I would like to know what the status of this patch is,
> and more generally of the ARI rule: "Avoid assignment inside if statement".

I think that we should continue to discourage the use of assignments
inside if statements, and the ARI is a good tool for that. If someone
happens to come across a situation where it is clearly advantageous
to break this rule, then we can document it using an ARI comment
that clearly allows it.

-- 
Joel


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