cppcheclipse icon indicating copy to clipboard operation
cppcheclipse copied to clipboard

template flag is hard-coded, can't change to 'gcc'

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

What steps will reproduce the problem?
1. Run cppcheck plugin within Eclipse 3.8.2, Linux 64-bit on a C or C++ file
2. See console output
3. The template flag is hardcoded to 
"--template={file};{line};{severity};{id};{message}"

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.
The output is expected given the template flag. I want to be able to specify a 
different template flag, e.g. --template=gcc

What version of the cppcheclipse, cppcheck, Eclipse and Java are you using?
On what operating system?
cppcheck 1.63
java version "1.8.0_05"
Red Hat Enterprise Linux Workstation release 6.5 (Santiago)

Please provide any additional information below.
This is a feature request.

Original issue reported on code.google.com by [email protected] on 1 May 2014 at 11:59

GoogleCodeExporter avatar Jul 15 '15 18:07 GoogleCodeExporter

The template option needs to be hardcoded, so that cppcheclipse can parse the 
output and put the appropriate Eclipse error markers in place. Is there any 
specific output info you miss in the template?
Why do you want to switch the template? The console output is primarily thought 
for cppcheclipse itself and is only given out for debugging purposes. Please 
have a look at the markers view, if you want to get an overview over all 
detected issues by cppcheck.

Original comment by [email protected] on 2 May 2014 at 7:07

GoogleCodeExporter avatar Jul 15 '15 18:07 GoogleCodeExporter

I see. Okay. I was thinking that if the template was 'gcc' then I could 
double-click on the console output and have Eclipse take me to that line in the 
file. Maybe I was expecting the cppcheck output to act like the output of the 
Eclipse compile output?

Original comment by [email protected] on 2 May 2014 at 8:13

GoogleCodeExporter avatar Jul 15 '15 18:07 GoogleCodeExporter