-
Notifications
You must be signed in to change notification settings - Fork 363
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
typedef union not supported by public API visitor #921
Comments
@jeremfg reason for this could be different things:
|
I agree, this is why I did my homework before opening this issue. I realize that perhaps I should have first introduced myself. We've been heavy users of SonarQube for Java code for many years now. We've adopted sonar-cxx a year and a half ago for our embedded software development projects written in C as it seemed to be the best sonar alternative to fit our needs. We use perhaps 75% of the features that sonar-cxx offers. Speaking of which, I've only opened two issues so far (2 that looked pretty obvious in my opinion) since I didn't want to submerge you guys :). Is there a mailing list or other places to discuss what we find?. Any guidelines I should read before we dig deeper?
Yes. Thankfully the default value of this configuration already covers .c files. Granted my issue occurs in a header file (.h) but this is not the issue here. This is as much valid C++ code as it would be C code. Unions haven't been removed in C++ ;-)
I understand the confusion by the usage of CAPITALS in the name. But this is actually a convention we use/follow when naming symbols that represent hardware registers. There is no macros in this definition, the TEXxxx symbols are actually typedefed structures containing only primitive type members.
There is no macro used within this union.
Everything this union uses is contained within the same file, defined above it. There is thus no external files to reference that could be missing. As I said in my previous post, looking at class AbstractCxxPublicApiVisitor.java, it's pretty obvious to see that |
Hi @jeremfg
You are always welcome to contribute to this plugin.
No, there is only this issue tracker.
Yes you are right. So this issue is a future request. Regards, |
fix for typedef union {
/* ... */
} Sample; |
@jeremfg should be fixed. Please try and give us feedback. |
I have the following construct in C code:
I get the following in my logs form sonar-runner:
Line 190-195 corresponds to the structure above.
Looking at class AbstractCxxPublicApiVisitor.java, line 671, it seems that a case is missing for "union".
The text was updated successfully, but these errors were encountered: