-
Notifications
You must be signed in to change notification settings - Fork 139
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
Clang static analyzer warnings #222
Comments
The clang static analyzer generates a bunch of HTML output files with more verbose information. Unfortunately, I haven't figured out a way to get them out of Travis CI and put them somewhere that's visible. Any suggestions? |
For reference, here is how I modified the --- a/.travis.yml
+++ b/.travis.yml
@@ -26,6 +26,11 @@ matrix:
artifacts: true
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
+ script:
+ - ./bootstrap.sh -a
+ - scan-build -v --use-cc="${CC}" --use-c++="${CXX}" ./configure --enable-ssl
+ - scan-build -v --use-cc="${CC}" --use-c++="${CXX}" make
+ - make test
- compiler: gcc
addons:
apt: |
Based on some examples I saw, I added |
Another reference: |
Do you think enhancement tag would be enough for the issue, @esabol? |
I'm not sure how to categorize this, but that sounds fine. |
References:
https://clang-analyzer.llvm.org/scan-build.html
https://www.mankier.com/1/scan-build
Over in my fork, I added
scan-build -v --use-cc="${CC}" --use-c++="${CXX}"
prior to the./configure
andmake
lines to the clang-5.0 build in Travis CI. Here are the resulting warnings:At first glance, a lot of these warnings seem very spurious. Some of the "Potential leak of memory" warnings might be worth investigating, but I'm not seeing any glaring bugs. Any comments?
The text was updated successfully, but these errors were encountered: