[umbrello] [Bug 338649] Extend C++ import for C++11
Oliver Kellogg
bugzilla_noreply at kde.org
Fri Sep 10 06:52:10 BST 2021
https://bugs.kde.org/show_bug.cgi?id=338649
--- Comment #24 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit 0372f89d7995a5fbc557e6c6090208bc54950e88 by Oliver Kellogg.
Committed on 10/09/2021 at 05:51.
Pushed by okellogg into branch 'master'.
Fix for "C++ importer does not recognize 'noexcept' keyword" :
lib/cppparser/keywords.h
- Align INSERT calls as table. Add INSERT("noexcept", Token_noexcept).
lib/cppparser/lexer.h
- In enum Type add Token_noexcept.
lib/cppparser/parser.cpp
- In functions skipUntilDeclaration, skipUntilStatement while-loop
switch add case Token_noexcept.
- In function parseExceptionSpecification handle the case
(m_lexer->lookAhead(0) == Token_noexcept).
test/import/cxx/const-methods.h
- Rename file to const-noexcept-methods.h.
test/import/cxx/const-noexcept-methods.h
- Rename class to ConstNoexceptMethodClass.
- Add NoexceptMethod with trailing noexcept.
- Add ConstNoexceptMethod with const noexcept and implementation.
Related: bug 442134
M +84 -83 lib/cppparser/keywords.h
M +1 -0 lib/cppparser/lexer.h
M +15 -2 lib/cppparser/parser.cpp
D +0 -3 test/import/cxx/const-methods.h
A +5 -0 test/import/cxx/const-noexcept-methods.h *
The files marked with a * at the end have a non valid license. Please read:
https://community.kde.org/Policies/Licensing_Policy and use the headers which
are listed at that page.
https://invent.kde.org/sdk/umbrello/commit/0372f89d7995a5fbc557e6c6090208bc54950e88
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list