cppcheck plugin for Kdev 4.7.0 and Kdevplatform 1.7.0

Hubiao Yang h.yang at Genexis.eu
Fri Nov 14 10:38:16 GMT 2014


Hi,

I have build and install failure when integrate cppcheck plugin to Kdevelop 4.7.0 and Kdevelop Platform 1.7.0. But, there is no any issue if integrate to Kdve 4.6.0 and platform 1.6.0.

I fetch the cppcheck plugin source code from: git clone git://anongit.kde.org/kdev-cppcheck
I made build and install with: mkdir build && cd build && cmake ../ && make && sudo make install
If anyone have any ideas about this, I will appreciate.

Best,
Hubiao


Part of the bug message is following:
/usr/local/include/kdevplatform/config-kdevplatform.h:9:25: error: ‘noexcept’ does not name a type
 #define Q_DECL_NOEXCEPT noexcept
                         ^
/usr/local/include/kdevplatform/language/duchain/indexedstring.h:87:38: note: in expansion of macro ‘Q_DECL_NOEXCEPT’
   IndexedString( IndexedString&& o ) Q_DECL_NOEXCEPT
                                      ^
In file included from /usr/local/include/kdevplatform/language/editor/documentrange.h:24:0,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:36,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/language/duchain/indexedstring.h:171:41: error: expected ‘,’ or ‘...’ before ‘&&’ token
   IndexedString& operator=(IndexedString&& o) Q_DECL_NOEXCEPT
                                         ^
/usr/local/include/kdevplatform/language/duchain/indexedstring.h:171:45: error: expected ‘;’ at end of member declaration
   IndexedString& operator=(IndexedString&& o) Q_DECL_NOEXCEPT
                                             ^
In file included from /usr/local/include/kdevplatform/language/duchain/indexedstring.h:19:0,
                 from /usr/local/include/kdevplatform/language/editor/documentrange.h:24,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:36,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/config-kdevplatform.h:9:25: error: ‘noexcept’ does not name a type
 #define Q_DECL_NOEXCEPT noexcept
                         ^
/usr/local/include/kdevplatform/language/duchain/indexedstring.h:171:47: note: in expansion of macro ‘Q_DECL_NOEXCEPT’
   IndexedString& operator=(IndexedString&& o) Q_DECL_NOEXCEPT
                                               ^
In file included from /usr/local/include/kdevplatform/language/duchain/instantiationinformation.h:24:0,
                 from /usr/local/include/kdevplatform/language/duchain/declaration.h:28,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:37,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/language/duchain/types/indexedtype.h:43:25: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [enabled by default]
     IndexedType(bool) = delete;
                         ^
In file included from /usr/local/include/kdevplatform/language/duchain/declaration.h:29:0,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:37,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/language/duchain/identifier.h:63:38: error: expected ‘,’ or ‘...’ before ‘&&’ token
   IndexedIdentifier(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;
                                      ^
/usr/local/include/kdevplatform/language/duchain/identifier.h:63:44: error: invalid constructor; you probably meant ‘KDevelop::IndexedIdentifier (const KDevelop::IndexedIdentifier&)’
   IndexedIdentifier(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;
                                            ^
/usr/local/include/kdevplatform/language/duchain/identifier.h:63:44: error: expected ‘;’ at end of member declaration
In file included from /usr/local/include/kdevplatform/language/duchain/indexedstring.h:19:0,
                 from /usr/local/include/kdevplatform/language/editor/documentrange.h:24,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:36,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/config-kdevplatform.h:9:25: error: ‘noexcept’ does not name a type
 #define Q_DECL_NOEXCEPT noexcept
                         ^
/usr/local/include/kdevplatform/language/duchain/identifier.h:63:46: note: in expansion of macro ‘Q_DECL_NOEXCEPT’
   IndexedIdentifier(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;
                                              ^
In file included from /usr/local/include/kdevplatform/language/duchain/declaration.h:29:0,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:37,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/language/duchain/identifier.h:66:49: error: expected ‘,’ or ‘...’ before ‘&&’ token
   IndexedIdentifier& operator=(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;
                                                 ^
/usr/local/include/kdevplatform/language/duchain/identifier.h:66:55: error: expected ‘;’ at end of member declaration
   IndexedIdentifier& operator=(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;
                                                       ^
In file included from /usr/local/include/kdevplatform/language/duchain/indexedstring.h:19:0,
                 from /usr/local/include/kdevplatform/language/editor/documentrange.h:24,
                 from /usr/local/include/kdevplatform/language/interfaces/codecontext.h:36,
                 from /usr/local/include/kdevplatform/language/interfaces/editorcontext.h:25,
                 from /home/hyang/kdev-cppcheck/plugin.cpp:55:
/usr/local/include/kdevplatform/config-kdevplatform.h:9:25: error: ‘noexcept’ does not name a type
 #define Q_DECL_NOEXCEPT noexcept
                         ^
/usr/local/include/kdevplatform/language/duchain/identifier.h:66:57: note: in expansion of macro ‘Q_DECL_NOEXCEPT’
   IndexedIdentifier& operator=(IndexedIdentifier&& rhs) Q_DECL_NOEXCEPT;





--
Hubiao Yang
Software Engineer
h.yang at genexis.eu

Skype: hyang.genexis

Genexis BV
Lodewijkstraat 1a
5652 AC Eindhoven
The Netherlands

http://www.genexis.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20141114/f7e13ec1/attachment.html>


More information about the KDevelop mailing list