This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: C/C++ PATCH to implement -Wmultiline-expansion (PR c/80116)


On Thu, Jun 01, 2017 at 10:13:01PM +0000, Joseph Myers wrote:
> On Thu, 1 Jun 2017, David Malcolm wrote:
> 
> > The patch appears to only consider "if" and "else" clauses.  Shouldn't
> > it also cover "for", "while" and "do/while"?
> 
> do/while would normally get a syntax error in the problem cases.

Indeed, I think there's no point in handling "do/while" for this warning.

	Marek


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