bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] Bug#149583: indent: Confused by dynamic_cast in if (fwd)


From: Santiago Vila
Subject: [Bug-indent] Bug#149583: indent: Confused by dynamic_cast in if (fwd)
Date: Mon, 10 Jun 2002 21:07:06 +0200 (CEST)

Hello.

I received this from the Debian bug system. I've checked and it may
also be reproduced using indent-2.2.8 (not packaged for Debian yet).
[ Please keep the Cc: lines when replying. Thanks. ]

---------- Forwarded message ----------
Date: Mon, 10 Jun 2002 19:02:01 +0200
From: Akim Demaille <address@hidden>
To: address@hidden
Subject: Bug#149583: indent: Confused by dynamic_cast in if

Package: indent
Version: 2.2.7-2
Severity: normal

Hi!

indent does pretty much of a good job with C++, but I suspect that it
is confused by `<' as can be found in C++.  On the following sample:

void
visit (void)
{
  if (bar)
    dynamic_cast < const Record * >(baz);
  else
  record = 0;
}

it reports:

/tmp % indent type-visitor.hh                                    nostromo 19:00
indent: type-visitor.hh:6: Error:Unmatched 'else'

and improperly indents the else branch.

Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]