ipodipad / cppcheclipse

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

Valid extensions for check #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select files with .C extension
2. No check is done

What is the expected output? What do you see instead?
.C files may be checked by cppcheck (at least w/ 1.38 version).

What version of the product are you using? On what operating system?
0.91, cppcheck 1.38

Please provide any additional information below.
It's not really an issue but restrict the use of cppcheck.
In Builder.java file of package com.googlecode.cppcheclipse.core, a static
attribute (VALID_EXTENSION) defines file extensions on which cppcheck is
launched. Possible ways to "correct this "problem" : simply add ".C" in
this attribute, add a preference field dedicated to file extensions, use
getContentTypeId from ITranslationUnit interface (test if file is an
instance of IAdaptable, if so try transforming it into a ICElement instance
via getAdapter method, then if it is an instance of ITranslationUnit test
if getContentTypeId is "org.eclipse.cdt.core.cxxSource" or
"org.eclipse.cdt.core.cSource")...

Original issue reported on code.google.com by mathieu....@gmail.com on 27 Oct 2009 at 1:58

GoogleCodeExporter commented 9 years ago
Okay, somehow I forgot to make the extension check case insensitive. I will 
also add
".txx" to the list of accepted extensions. Then this list is identical to the 
one
used in cppcheck. Thanks for your report.

Original comment by konra...@gmx.de on 27 Oct 2009 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by konra...@gmx.de on 28 Oct 2009 at 3:01

GoogleCodeExporter commented 9 years ago

Original comment by konra...@gmx.de on 31 Oct 2009 at 8:27