[cfe-commits] Patch: Give a fix-it for improperly nested namespace

Richard Trieu rtrieu at google.com
Fri May 6 18:57:20 PDT 2011


Moved fix-its from the notes to the error message.

On Fri, May 6, 2011 at 2:20 PM, Richard Trieu <rtrieu at google.com> wrote:

> When improperly using "::" to nest namespaces, give a fix-it to correct it.
>  Parsing will also recover as if they were properly nested.
>
> namespace foo::bar {
> }
>
> Will result in a fix-it at "::" to change to " { namespace " and an
> additional right bracket at the end.
>
> Patch attached and available through Code Review:
> http://codereview.appspot.com/4452052/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110506/a8c2df12/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: improperly_nested_namespaces2.patch
Type: text/x-patch
Size: 3765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110506/a8c2df12/attachment.bin>


More information about the cfe-commits mailing list