Last active
May 31, 2019 11:53
-
-
Save snikulov/b2d6c6e0571defdd2e4dd7d529df6283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snikulov@snikulov-lin:~/work/check$ uname -a | |
Linux snikulov-lin 4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | |
snikulov@snikulov-lin:~$ cd work/ | |
snikulov@snikulov-lin:~/work$ mkdir check | |
snikulov@snikulov-lin:~/work$ cd check | |
snikulov@snikulov-lin:~/work/check$ vim main.cpp | |
snikulov@snikulov-lin:~/work/check$ vim CMakeLists.txt | |
snikulov@snikulov-lin:~/work/check$ ls | |
CMakeLists.txt main.cpp | |
snikulov@snikulov-lin:~/work/check$ scan-build cmake . | |
scan-build: Using '/usr/lib/llvm-3.8/bin/clang' for static analysis | |
-- The C compiler identification is GNU 5.4.0 | |
-- The CXX compiler identification is GNU 5.4.0 | |
-- Check for working C compiler: /usr/share/clang/scan-build-3.8/libexec/ccc-analyzer | |
-- Check for working C compiler: /usr/share/clang/scan-build-3.8/libexec/ccc-analyzer -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /usr/share/clang/scan-build-3.8/libexec/c++-analyzer | |
-- Check for working CXX compiler: /usr/share/clang/scan-build-3.8/libexec/c++-analyzer -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /home/snikulov/work/check | |
scan-build: Removing directory '/tmp/scan-build-2019-05-31-144140-7458-1' because it contains no reports. | |
scan-build: No bugs found. | |
snikulov@snikulov-lin:~/work/check$ scan-build make | |
scan-build: Using '/usr/lib/llvm-3.8/bin/clang' for static analysis | |
Scanning dependencies of target scan-build-test | |
[ 50%] Building CXX object CMakeFiles/scan-build-test.dir/main.cpp.o | |
/home/snikulov/work/check/main.cpp:6:5: warning: Function call argument is an uninitialized value | |
std::cout << a << std::endl; | |
^~~~~~~~~~~~~~ | |
1 warning generated. | |
[100%] Linking CXX executable scan-build-test | |
[100%] Built target scan-build-test | |
scan-build: 1 bug found. | |
scan-build: Run 'scan-view /tmp/scan-build-2019-05-31-144205-7886-1' to examine bug reports. | |
snikulov@snikulov-lin:~/work/check$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment