ipodipad / cppcheclipse

Automatically exported from code.google.com/p/cppcheclipse
0 stars 0 forks source link

cppcheclipse fails to check when C++ 03 is specified. #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get to cppcheclipse's settings in Eclipse
2. Set C++ Language Standard to 'C++ 03'
3. Run cppcheck on a project

What is the expected output? What do you see instead? Please provide output
of the console view of cppcheclipse as well as the Eclipse error log.
Expected output: checking results
Real output:
== Running cppcheck at 25.08.13 1:00 ==
Command line: /usr/bin/cppcheck 
--template={file};{line};{severity};{id};{message} --enable=all --force --debug 
--std=c++03 <here_is_include_list> <here_is_cpp_list>
cppcheck: error: unrecognized command line option: "--std=c++03".

What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
cppcheclipse: 0.9.9
cppcheck: 1.52
Eclipse: Kepler Release
Java: version "1.6.0_27"
Xubuntu 12.04 (3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:23:24 UTC 2013 
i686 athlon i386 GNU/Linux)

Original issue reported on code.google.com by ibram...@gmail.com on 24 Aug 2013 at 9:14

GoogleCodeExporter commented 8 years ago
man cppcheck gives nothing about --std parameter.
cppcheck --help gives next:
--std=<id>           Environment. The available options are:
                          * posix
                                 Use this if a posix environment is available
                          * c99
                                 Use this if the compiler is C99 compatible
                          * c++11
                                 Use this if the compiler is C++11 compatible.
                                 note: you probably want to also use 'c99'.
It seems that my version doesn't support c++03. If it right cppcheclipse should 
check cppcheck's version and disable/remove c++03 from settings.

Original comment by ibram...@gmail.com on 24 Aug 2013 at 9:22

GoogleCodeExporter commented 8 years ago
You are right, the environment c++03 was only added with cppcheck version 1.56. 
Please do upgrade to at least that version. I will also increase the minimum 
required version of cppcheck with the next version of cppcheclipse.

Original comment by konra...@gmx.de on 19 Dec 2013 at 4:22

GoogleCodeExporter commented 8 years ago

Original comment by konra...@gmx.de on 21 Dec 2013 at 7:25

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r294.

Original comment by konra...@gmx.de on 21 Dec 2013 at 7:32