jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
SonarQube Eclipse
  • SonarQube Eclipse
  • SONARIDE-182

Support C/C++ projects

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

We must create bridge for Eclipse CDT in order to support C/C++ projects.

Issue Links

relates to

Improvement - An improvement or enhancement to an existing feature or task. SONARIDE-101 Support non-java projects in Eclipse

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Freddy Mallet added a comment - 07/Nov/11 5:02 AM

Too early to start thinking of such feature

Show
Freddy Mallet added a comment - 07/Nov/11 5:02 AM Too early to start thinking of such feature
Hide
Permalink
Julien HENRY added a comment - 19/Nov/12 2:10 AM

You have a new feature to install: Sonar Eclipse for CDT. Previous feature was renamed: Sonar Eclipse for JDT.

Show
Julien HENRY added a comment - 19/Nov/12 2:10 AM You have a new feature to install: Sonar Eclipse for CDT. Previous feature was renamed: Sonar Eclipse for JDT.
Hide
Permalink
Freddy Mallet added a comment - 30/Nov/12 9:01 AM - edited

@Julien, could you reorganize the Content of the Eclipse update site as follows :

  • Sonar Java
    • Sonar Java analyzer
  • Sonar C/C++
    • Sonar C/C++ analyzer
  • Sonar optional connectors
    • Sonar m2e Connector
    • Sonar Mylyn Connector
Show
Freddy Mallet added a comment - 30/Nov/12 9:01 AM - edited @Julien, could you reorganize the Content of the Eclipse update site as follows : Sonar Java Sonar Java analyzer Sonar C/C++ Sonar C/C++ analyzer Sonar optional connectors Sonar m2e Connector Sonar Mylyn Connector
Hide
Permalink
Freddy Mallet added a comment - 30/Nov/12 9:23 AM

@Julien, violations and more generally source files are not found when those files are not located in the root directory of the C/C++ project.

You can give a try with a simple Hello World project where the helloworld.cpp source file is located in the directory src/dir1/dir2.

Show
Freddy Mallet added a comment - 30/Nov/12 9:23 AM @Julien, violations and more generally source files are not found when those files are not located in the root directory of the C/C++ project. You can give a try with a simple Hello World project where the helloworld.cpp source file is located in the directory src/dir1/dir2.
Hide
Permalink
Julien HENRY added a comment - 03/Dec/12 3:13 AM

Should be fixed now

Show
Julien HENRY added a comment - 03/Dec/12 3:13 AM Should be fixed now
Hide
Permalink
Julien HENRY added a comment - 03/Dec/12 10:36 AM

Let's try to support property sonar.cpp.library.directories in order to give location of includes.

Show
Julien HENRY added a comment - 03/Dec/12 10:36 AM Let's try to support property sonar.cpp.library.directories in order to give location of includes.
Hide
Permalink
Freddy Mallet added a comment - 11/Dec/12 10:57 AM

@Julien, the remote mode seems to work perfectly but I don't manage to activate the local mode. I get the following exception :

'Sonar analysis' has encountered a problem, No usable JVM found when using a fresh CDT/Juno distribution.

Show
Freddy Mallet added a comment - 11/Dec/12 10:57 AM @Julien, the remote mode seems to work perfectly but I don't manage to activate the local mode. I get the following exception : 'Sonar analysis' has encountered a problem, No usable JVM found when using a fresh CDT/Juno distribution.
Hide
Permalink
Julien HENRY added a comment - 11/Dec/12 11:10 AM - edited

I am not able to reproduce. Is there a stack?

I have installed CDT bundle from Eclipse site + installed Sonar for C++ only + created a hello world project and everything is fine.

Show
Julien HENRY added a comment - 11/Dec/12 11:10 AM - edited I am not able to reproduce. Is there a stack? I have installed CDT bundle from Eclipse site + installed Sonar for C++ only + created a hello world project and everything is fine.
Hide
Permalink
Freddy Mallet added a comment - 13/Dec/12 3:52 AM - edited

Could you rename the category name "Sonar C/C+" into "Sonar C/C+ (requires Eclipse CDT and the SonarSource C++ plugin)"

Show
Freddy Mallet added a comment - 13/Dec/12 3:52 AM - edited Could you rename the category name "Sonar C/C+ " into "Sonar C/C + (requires Eclipse CDT and the SonarSource C++ plugin)"
Hide
Permalink
Julien HENRY added a comment - 13/Dec/12 4:04 AM

Category rename done.

Show
Julien HENRY added a comment - 13/Dec/12 4:04 AM Category rename done.
Hide
Permalink
Freddy Mallet added a comment - 13/Dec/12 5:30 AM

Works well when starting with a Java IDE Juno edition.

Show
Freddy Mallet added a comment - 13/Dec/12 5:30 AM Works well when starting with a Java IDE Juno edition.
Hide
Permalink
Julien HENRY added a comment - 13/Dec/12 8:02 AM

I think the reason it fails on a clean CDT install is that platform specific org.eclipse.jdt.launching.macosx plugin is missing. I tried to add it as a dependency of the Sonar C/C+ feature.
Not tested as I don't have a Mac.

Show
Julien HENRY added a comment - 13/Dec/12 8:02 AM I think the reason it fails on a clean CDT install is that platform specific org.eclipse.jdt.launching.macosx plugin is missing. I tried to add it as a dependency of the Sonar C/C+ feature. Not tested as I don't have a Mac.
Hide
Permalink
Freddy Mallet added a comment - 13/Dec/12 11:03 AM

Indeed I do confirm that's the issue is fixed on Mac.

Show
Freddy Mallet added a comment - 13/Dec/12 11:03 AM Indeed I do confirm that's the issue is fixed on Mac.
Hide
Permalink
Julien HENRY added a comment - 16/Dec/12 6:16 AM

IT added

Show
Julien HENRY added a comment - 16/Dec/12 6:16 AM IT added

People

  • Assignee:
    Julien HENRY
    Reporter:
    Evgeny Mandrikov
Vote (0)
Watch (3)

Dates

  • Created:
    25/Nov/10 3:02 AM
    Updated:
    16/Dec/12 6:16 AM
    Resolved:
    13/Dec/12 5:30 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.