Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid extensions for check #2

Closed
GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments
Closed

Valid extensions for check #2

GoogleCodeExporter opened this issue Nov 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started
  • Added labels: Milestone-0.9.2

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant