Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- liangqi@olwst90198 ~/tmp/build $ export CCC_CXX=clang++
- liangqi@olwst90198 ~/tmp/build $ export PATH=~/dev/packages/checker-256:$PATH
- liangqi@olwst90198 ~/tmp/build $ scan-build cmake -G "Unix Makefiles" ../cppsa_test/
- -- The C compiler identification is GNU
- -- The CXX compiler identification is unknown
- -- Checking whether C compiler has -isysroot
- -- Checking whether C compiler has -isysroot - yes
- -- Checking whether C compiler supports OSX deployment target flag
- -- Checking whether C compiler supports OSX deployment target flag - yes
- -- Check for working C compiler: /Users/liangqi/dev/packages/checker-256/libexec/ccc-analyzer
- -- Check for working C compiler: /Users/liangqi/dev/packages/checker-256/libexec/ccc-analyzer -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working CXX compiler: /Users/liangqi/dev/packages/checker-256/libexec/c++-analyzer
- -- Check for working CXX compiler: /Users/liangqi/dev/packages/checker-256/libexec/c++-analyzer -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - failed
- -- Configuring done
- -- Generating done
- -- Build files have been written to: /Users/liangqi/tmp/build
- scan-build: Removing directory '/tmp/scan-build-2011-04-27-3' because it contains no reports.
- liangqi@olwst90198 ~/tmp/build $ scan-build -enable-checker cplusplus.experimental.Iterators -v -v -v make
- scan-build: Emitting reports for this run to '/tmp/scan-build-2011-04-27-3'.
- Scanning dependencies of target cppsa_test
- [100%] Building CXX object CMakeFiles/cppsa_test.dir/main.cpp.o
- clang++ -o CMakeFiles/cppsa_test.dir/main.cpp.o -c /Users/liangqi/tmp/cppsa_test/main.cpp
- could not find clang line
- make[2]: *** [CMakeFiles/cppsa_test.dir/main.cpp.o] Error 9
- make[1]: *** [CMakeFiles/cppsa_test.dir/all] Error 2
- make: *** [all] Error 2
- scan-build: Removing directory '/tmp/scan-build-2011-04-27-3' because it contains no reports.
- liangqi@olwst90198 ~/tmp/build $ which clang++
- /usr/bin/clang++
- liangqi@olwst90198 ~/tmp/build $ rm -rf ~/dev/packages/checker-256/bin/clang
- liangqi@olwst90198 ~/tmp/build $ rm -rf ~/dev/packages/checker-256/bin/clang++
- liangqi@olwst90198 ~/tmp/build $ cd /usr/local/bin
- liangqi@olwst90198 /usr/local/bin $ ls
- brew ctest git-shell lli llvm-extract llvm-ranlib scan-view
- bugpoint djpeg git-upload-archive llvm-ar llvm-ld llvm-stub set-xcode-analyzer
- ccmake gccxml git-upload-pack llvm-as llvm-link llvmc tblgen
- cjpeg gccxml_cc1plus gitk llvm-bcanalyzer llvm-mc macho-dump wget
- cmake git hg llvm-config llvm-nm opt wrjpgcom
- cmakexbuild git-cvsserver jpegtran llvm-diff llvm-objdump rdjpgcom
- cpack git-receive-pack llc llvm-dis llvm-prof scan-build
- liangqi@olwst90198 /usr/local/bin $ ln -s ~/dev/packages/checker-256/bin/clang-3.0 clang
- liangqi@olwst90198 /usr/local/bin $ ln -s ~/dev/packages/checker-256/bin/clang-3.0 clang++
- liangqi@olwst90198 /usr/local/bin $ export PATH=~/dev/packages/checker-256:/usr/local/bin:$PATH
- liangqi@olwst90198 /usr/local/bin $ cd -
- /Users/liangqi/tmp/build
- liangqi@olwst90198 ~/tmp/build $ which clang++
- /usr/local/bin/clang++
- liangqi@olwst90198 ~/tmp/build $ clang++ -v
- clang version 3.0 (tags/checker/checker-256)
- Target: x86_64-apple-darwin10
- Thread model: posix
- liangqi@olwst90198 ~/tmp/build $ make clean
- liangqi@olwst90198 ~/tmp/build $ scan-build -enable-checker cplusplus.experimental.Iterators -v -v -v make
- scan-build: 'clang' executable not found in '/Users/liangqi/dev/packages/checker-256/bin'.
- scan-build: Using 'clang' from path: /usr/local/bin/clang
- scan-build: Emitting reports for this run to '/tmp/scan-build-2011-04-27-3'.
- [100%] Building CXX object CMakeFiles/cppsa_test.dir/main.cpp.o
- clang++ -o CMakeFiles/cppsa_test.dir/main.cpp.o -c /Users/liangqi/tmp/cppsa_test/main.cpp
- [LOCATION]: /Users/liangqi/tmp/build
- #SHELL (cd '/Users/liangqi/tmp/build' && '/usr/local/bin/clang++' '-cc1' '-triple' 'x86_64-apple-darwin10.0.0' '-analyze' '-disable-free' '-main-file-name' 'main.cpp' '-analyzer-store=region' '-analyzer-opt-analyze-nested-blocks' '-analyzer-eagerly-assume' '-analyzer-checker=core' '-analyzer-checker=deadcode' '-analyzer-checker=security' '-analyzer-checker=unix' '-analyzer-checker=osx' '-analyzer-output' 'plist' '-w' '-pic-level' '1' '-mdisable-fp-elim' '-masm-verbose' '-munwind-tables' '-target-cpu' 'core2' '-resource-dir' '/Users/liangqi/dev/packages/checker-256/bin/../lib/clang/3.0' '-ferror-limit' '19' '-fmessage-length' '0' '-stack-protector' '1' '-fblocks' '-fcxx-exceptions' '-fexceptions' '-fdiagnostics-show-option' '-analyzer-display-progress' '-analyzer-checker' 'cplusplus.experimental.Iterators' '-analyzer-output=html' '-o' '/tmp/scan-build-2011-04-27-3' '-x' 'c++' '/Users/liangqi/tmp/cppsa_test/main.cpp')
- ANALYZE: /usr/include/c++/4.2.1/cstring memchr
- ANALYZE: /usr/include/c++/4.2.1/cstring strchr
- ANALYZE: /usr/include/c++/4.2.1/cstring strpbrk
- ANALYZE: /usr/include/c++/4.2.1/cstring strrchr
- ANALYZE: /usr/include/c++/4.2.1/cstring strstr
- ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt16
- ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt32
- ANALYZE: /usr/include/libkern/i386/_OSByteOrder.h _OSSwapInt64
- ANALYZE: /usr/include/c++/4.2.1/cstdlib abs
- ANALYZE: /usr/include/c++/4.2.1/cstdlib div
- ANALYZE: /usr/include/c++/4.2.1/cstdlib abs
- ANALYZE: /usr/include/c++/4.2.1/cstdlib div
- ANALYZE: /usr/include/stdio.h __sputc
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/c++locale.h __convert_from_v
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_active_p
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_once
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_key_create
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_key_delete
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_getspecific
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_setspecific
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_lock
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_trylock
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_mutex_unlock
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_init_function
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_lock
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_trylock
- ANALYZE: /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/gthr-default.h __gthread_recursive_mutex_unlock
- ANALYZE: /usr/include/ctype.h isascii
- ANALYZE: /usr/include/ctype.h __istype
- ANALYZE: /usr/include/ctype.h __isctype
- ANALYZE: /usr/include/ctype.h __wcwidth
- ANALYZE: /usr/include/ctype.h isalnum
- ANALYZE: /usr/include/ctype.h isalpha
- ANALYZE: /usr/include/ctype.h isblank
- ANALYZE: /usr/include/ctype.h iscntrl
- ANALYZE: /usr/include/ctype.h isdigit
- ANALYZE: /usr/include/ctype.h isgraph
- ANALYZE: /usr/include/ctype.h islower
- ANALYZE: /usr/include/ctype.h isprint
- ANALYZE: /usr/include/ctype.h ispunct
- ANALYZE: /usr/include/ctype.h isspace
- ANALYZE: /usr/include/ctype.h isupper
- ANALYZE: /usr/include/ctype.h isxdigit
- ANALYZE: /usr/include/ctype.h toascii
- ANALYZE: /usr/include/ctype.h tolower
- ANALYZE: /usr/include/ctype.h toupper
- ANALYZE: /usr/include/ctype.h digittoint
- ANALYZE: /usr/include/ctype.h ishexnumber
- ANALYZE: /usr/include/ctype.h isideogram
- ANALYZE: /usr/include/ctype.h isnumber
- ANALYZE: /usr/include/ctype.h isphonogram
- ANALYZE: /usr/include/ctype.h isrune
- ANALYZE: /usr/include/ctype.h isspecial
- ANALYZE: /usr/include/_wctype.h iswalnum
- ANALYZE: /usr/include/_wctype.h iswalpha
- ANALYZE: /usr/include/_wctype.h iswcntrl
- ANALYZE: /usr/include/_wctype.h iswctype
- ANALYZE: /usr/include/_wctype.h iswdigit
- ANALYZE: /usr/include/_wctype.h iswgraph
- ANALYZE: /usr/include/_wctype.h iswlower
- ANALYZE: /usr/include/_wctype.h iswprint
- ANALYZE: /usr/include/_wctype.h iswpunct
- ANALYZE: /usr/include/_wctype.h iswspace
- ANALYZE: /usr/include/_wctype.h iswupper
- ANALYZE: /usr/include/_wctype.h iswxdigit
- ANALYZE: /usr/include/_wctype.h towlower
- ANALYZE: /usr/include/_wctype.h towupper
- ANALYZE: /usr/include/c++/4.2.1/cwchar wcschr
- ANALYZE: /usr/include/c++/4.2.1/cwchar wcspbrk
- ANALYZE: /usr/include/c++/4.2.1/cwchar wcsrchr
- ANALYZE: /usr/include/c++/4.2.1/cwchar wcsstr
- ANALYZE: /usr/include/c++/4.2.1/cwchar wmemchr
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h fill
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h lexicographical_compare
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_algobase.h lexicographical_compare
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_uninitialized.h uninitialized_copy
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_uninitialized.h uninitialized_copy
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator-
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator+
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h operator+
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h __fill_bvector
- ANALYZE: /usr/include/c++/4.2.1/bits/stl_bvector.h fill
- ANALYZE: /Users/liangqi/tmp/cppsa_test/main.cpp main
- /Users/liangqi/tmp/cppsa_test/main.cpp:16:9: warning: Cannot compare iterators from different containers
- if (i1 != i2 ) {
- ^~~~~~~~
- 1 warning generated.
- Linking CXX executable cppsa_test
- clang++ -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cppsa_test.dir/main.cpp.o -o cppsa_test
- [100%] Built target cppsa_test
- scan-build: 1 bugs found.
- scan-build: Run 'scan-view /tmp/scan-build-2011-04-27-3' to examine bug reports.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement