Review Request: Parser support for C99 designated initializers
Alexandre Courbot
gnurou at gmail.com
Mon Apr 16 13:17:01 UTC 2012
> On April 16, 2012, 11:52 a.m., Milian Wolff wrote:
> > note: I've committed it to master, but changed the style a bit and removed the macro.
> >
> > imo having the two lines (rewind + return false) is more readable and explicit than the macro. sure a bit more to type but not much.
> >
> > I've also adapted the code style to the rest of the parser's style and also removed a few c-isms (like defining stuff on top instead of where they are used). please review my adapted patch and follow these things in the future.
> >
> > thanks
Thanks for the pull! Code style is hardly consistent across KDevelop files, but I will try to use your changes as reference for future commits.
- Alexandre
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103448/#review12505
-----------------------------------------------------------
On April 16, 2012, 2:36 a.m., Alexandre Courbot wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103448/
> -----------------------------------------------------------
>
> (Updated April 16, 2012, 2:36 a.m.)
>
>
> Review request for KDevelop and Milian Wolff.
>
>
> Description
> -------
>
> Parser support for C99 designated initializers
>
> Support C99 initializers in the C++ parser, e.g:
>
> struct foo_t foo = {
> .has_cake = true,
> .nb_candles = 12,
> };
>
> int bar[10] = {
> [1] = 15,
> [9] = 25,
> };
>
> REVIEW: 103448
>
>
> Diffs
> -----
>
> languages/cpp/parser/parser.h 64b5c505866ac2a0ed847aa67e4c7809df3af6b5
> languages/cpp/parser/parser.cpp a45ee31a1207d56efef292babb2e774b51378ead
> languages/cpp/parser/tests/test_parser.h 2869d9ddae2632aced2f2e2fa966382da3a0082d
> languages/cpp/parser/tests/test_parser.cpp 94e3ee06dc9187568c000dcdd8baf8d87d1d06e6
>
> Diff: http://git.reviewboard.kde.org/r/103448/diff/
>
>
> Testing
> -------
>
> Used it for a couple of weeks, ensured the parser tests all pass.
>
>
> Thanks,
>
> Alexandre Courbot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120416/516e43aa/attachment.html>
More information about the KDevelop-devel
mailing list