-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Completion of error handling #99
Comments
Feel free to send PR... |
How do you think about to improve static source code analysis also for this software? |
As you can see on README we use https://lgtm.com and coverity.com for code analysis. |
Do these analysis tools point also the open issues out which I reported? |
Coverity Scan reports some of those errors – unless they are already fixed. :-)
Which static code analyser would you suggest to detect such errors? |
I suggest to avoid ignorance of return values a bit more.
|
Sure, but my question was more specific. There is currently a lot of code which does not follow those principles, and more such code could get merged. Without a lot of man power, it is impossible to detect all missing checks of return values. So it is important to have tools which report violations. Do you know such tools? |
As there are still some of the mentioned errors not fixed, I reopen this issue. |
I know a few higher level development tools which can help here. |
Just tell us the names of those tools, then we can decide. |
Examples: |
Thank you. I know and used the last two. Coccinelle itself does not find problems – it needs scripts written to do this. Cppcheck did not report missing handling of return values last time when I used it (well, that was some years ago). |
This software tool can also find and adjust various questionable source code. It supports the C programming language better than C++ so far.
I suggest to try Cppcheck out again to see if this analysis tool was improved in desired ways in the meantime. Would you like to get help from any additional development tools? |
@elfring : Will you provide output of your code analyze? |
Will the mentioned tools become relevant for your software development process? |
@elfring : I am sorry, but I did not get point of your question. Primary build system are autotools. Of course I am interested also in support cmake ... |
Did your interest increase for the application of the tool “AspectC++” (together with related information sources for example)? |
What does it mean practically? |
@elfring, I don't think that Tesseract will switch from C++ to Aspect C++ as that is currently not a common standard. As far as I could see Aspect C++ cannot be used to check the existing code. Nor can Coccinelle because it only supports C but not C++. So only cppcheck remains which can be used in addition to Coverity Scan and LGTM. The problems with If you have fixes for ignored return values, they are welcome. |
I suggest to take another look at the provided technology.
This tool can be useful for limited source code analysis and corresponding transformations.
I would prefer the application of available known methodologies. |
@elfring: any help with improving code is welcomed. Pointing to new tools/methodology is interesting but... we have limited sources and most of active contributors will probably still continue to use what they are familiar. |
It is probably obvious that I am trying for a while to get more software developers familiar also with other helpful methodologies. |
Would you like to add more error handling for return values from functions like the following?
The text was updated successfully, but these errors were encountered: