Review Request: "noexcept" keyword parsing
Milian Wolff
mail at milianw.de
Sat Apr 7 11:51:26 UTC 2012
> On April 7, 2012, 11:49 a.m., Milian Wolff wrote:
> > also missing is support for the noexcept expression:
> >
> > http://www.nongnu.org/hcb/#noexcept-expression
> >
> >
whoops not true, you actually did that :) thanks
- Milian
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104498/#review12225
-----------------------------------------------------------
On April 6, 2012, 5:35 p.m., Ivan Shapovalov wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104498/
> -----------------------------------------------------------
>
> (Updated April 6, 2012, 5:35 p.m.)
>
>
> Review request for KDevelop.
>
>
> Description
> -------
>
> Adds initial parser support for "noexcept" and "noexcept(...)" declaration specifiers in KDevelop C++ parser.
> This is particularly useful with new GCC toolchain version 4.7.0, where these keywords are frequently used throughout STL.
>
>
> This addresses bug 297604.
> http://bugs.kde.org/show_bug.cgi?id=297604
>
>
> Diffs
> -----
>
> languages/cpp/parser/ast.h 46ecac7c4f652e556b83188b08db50fe3b2d7b78
> languages/cpp/parser/codegenerator.cpp 962fe5be3d82fe785e74a5a896ff207c25cff789
> languages/cpp/parser/default_visitor.cpp 174e5d98f7efd7bebb3508c2bc9bd855e4e5e810
> languages/cpp/parser/lexer.cpp 0cdad1e9549ef413351a1e102a3b14e00e2c4f86
> languages/cpp/parser/parser.cpp 50c09a88b3c69a173477e4a4cf06ae566daf3b64
> languages/cpp/parser/tokens.h 3e73330c649032503a20137231d479ec2225733c
> languages/cpp/parser/tokens.cpp 3d8c05fba9e02b1dc57dd17ae1f33ae581b06cdb
>
> Diff: http://git.reviewboard.kde.org/r/104498/diff/
>
>
> Testing
> -------
>
> A test file with intensive STL usage is uploaded.
>
> Steps to reproduce:
> 1) Open the test file in KDevelop 4.3.60 compiled from branch 'master' (commit 8c73677)
> See that "std::pair<>" is resolved as function with no return type; "std::map<>" and "std::vector<>" are not highlighted at all.
>
> 2) Apply patches, rebuild KDevelop and clear your current DUChain cache
> # rm -rf ~/.kdevduchain
>
> 3) Reopen the test file
> See that all STL typedefs and method calls are parsed and highlighted correctly.
>
>
> Thanks,
>
> Ivan Shapovalov
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120407/c070c1e9/attachment.html>
More information about the KDevelop-devel
mailing list