Better_Software_Header_MobileBetter_Software_Header_Web

Find what you need - explore our website and developer resources

How to use static analysis to improve performance


31 Comments

7 - Sept - 2015

Jesper Juhl

7 - Sept - 2015

Clare Macrae

8 - Sept - 2015

mlim

7 - Sept - 2015

Jean-Michaël Celerier

8 - Sept - 2015

Jesper Juhl

8 - Sept - 2015

trackvegeta

8 - Sept - 2015

mlim

9 - Sept - 2015

Paul Barbot

11 - Sept - 2015

Jesper Juhl

11 - Sept - 2015

Jesper Juhl

11 - Sept - 2015

Sérgio Martins

11 - Sept - 2015

Jesper Juhl

2 - Oct - 2015

Ram

Downloads/scratch-smartins-clazy/Utils.cpp:859:48: error: no matching function for call to ‘std::vector::erase(__gnu_cxx::__normal_iterator<clang::DeclContext* const*, std::vector >&, __gnu_cxx::__normal_iterator<clang::DeclContext* const*, std::vector >)’
                 methodContexts.erase(it, it + 1);
                                                ^
Downloads/scratch-smartins-clazy/Utils.cpp:859:48: note: candidates are:
In file included from /usr/include/c++/4.8/vector:69:0,
                 from /usr/include/c++/4.8/bits/random.h:34,
                 from /usr/include/c++/4.8/random:50,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from /usr/include/llvm/ADT/SmallVector.h:22,
                 from /usr/include/llvm/Support/Allocator.h:24,
                 from /usr/include/clang/AST/ASTVector.h:23,
                 from /usr/include/clang/AST/ASTUnresolvedSet.h:18,
                 from /usr/include/clang/AST/DeclCXX.h:19,
                 from Downloads/scratch-smartins-clazy/Utils.h:31,
                 from Downloads/scratch-smartins-clazy/Utils.cpp:28:
/usr/include/c++/4.8/bits/vector.tcc:134:5: note: std::vector::iterator std::vector::erase(std::vector::iterator) [with _Tp = clang::DeclContext*; _Alloc = std::allocator; std::vector::iterator = __gnu_cxx::__normal_iterator<clang::DeclContext**, std::vector >; typename std::_Vector_base::pointer = clang::DeclContext**]
     vector::
     ^
/usr/include/c++/4.8/bits/vector.tcc:134:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/4.8/bits/vector.tcc:146:5: note: std::vector::iterator std::vector::erase(std::vector::iterator, std::vector::iterator) [with _Tp = clang::DeclContext*; _Alloc = std::allocator; std::vector::iterator = __gnu_cxx::__normal_iterator<clang::DeclContext**, std::vector >; typename std::_Vector_base::pointer = clang::DeclContext**]
     vector::
     ^
/usr/include/c++/4.8/bits/vector.tcc:146:5: note:   no known conversion for argument 1 from ‘__gnu_cxx::__normal_iterator<clang::DeclContext* const*, std::vector >’ to ‘std::vector::iterator {aka __gnu_cxx::__normal_iterator<clang::DeclContext**, std::vector >}’
make[2]: *** [CMakeFiles/ClangLazy.dir/Utils.cpp.o] Error 1
make[1]: *** [CMakeFiles/ClangLazy.dir/all] Error 2
make: *** [all] Error 2

2 - Oct - 2015

Sérgio Martins

6 - Oct - 2015

Nyall Dawson

7 - Oct - 2015

Sérgio Martins

7 - Oct - 2015

Sérgio Martins

8 - Oct - 2015

Nyall Dawson

9 - Oct - 2015

Sérgio Martins

26 - Oct - 2015

Alexey Ivanov

[  1%] Building CXX object src/thirdparty/qtlockedfile/CMakeFiles/qtlockedfile.dir/qtlockedfile.cpp.o
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
0  clang-3.7       0x00000000013e06b8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  clang-3.7       0x00000000013e1a1b
2  libpthread.so.0 0x00007ff6acdf1d10
3  libc.so.6       0x00007ff6ac1ab267 gsignal + 55
4  libc.so.6       0x00007ff6ac1aceca abort + 362
5  libstdc++.so.6  0x00007ff6ac7e6b7d __gnu_cxx::__verbose_terminate_handler() + 365
6  libstdc++.so.6  0x00007ff6ac7e49c6
7  libstdc++.so.6  0x00007ff6ac7e4a11
8  libstdc++.so.6  0x00007ff6ac7e4c29
9  libstdc++.so.6  0x00007ff6ac7e51cc
10 ClangLazy.so    0x00007ff6ab3a3553
11 ClangLazy.so    0x00007ff6ab39fc4b OldStyleConnect::OldStyleConnect(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 107
12 ClangLazy.so    0x00007ff6ab3a3233
13 ClangLazy.so    0x00007ff6ab39154f CheckManager::createCheck(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) + 319
14 ClangLazy.so    0x00007ff6ab3924d4 CheckManager::createChecks(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > >) + 516
15 ClangLazy.so    0x00007ff6ab3c9ce1
16 clang-3.7       0x000000000173b4ea clang::FrontendAction::CreateWrappedASTConsumer(clang::CompilerInstance&, llvm::StringRef) + 330
17 clang-3.7       0x000000000173c092 clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) + 2578
18 clang-3.7       0x000000000170d4c7 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 695
19 clang-3.7       0x00000000017a9de3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3123
20 clang-3.7       0x00000000006f6634 cc1_main(llvm::ArrayRef, char const*, void*) + 1156
21 clang-3.7       0x00000000006f586f main + 11983
22 libc.so.6       0x00007ff6ac196a40 __libc_start_main + 240
23 clang-3.7       0x00000000006f2893
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/dev_qt5 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS_DEBUG="-Xclang -load -Xclang /opt/clang37/lib/ClangLazy.so -Xclang -add-plugin -Xclang clang-lazy" -DCMAKE_PREFIX_PATH=/opt/clang37

26 - Oct - 2015

Sérgio Martins

26 - Oct - 2015

Alexey Ivanov

26 - Oct - 2015

Alexey Ivanov

26 - Oct - 2015

Alexey Ivanov

26 - Oct - 2015

Alexey Ivanov

1 - Nov - 2015

Eric Lemanissier

1 - Nov - 2015

Sérgio Martins

2 - Nov - 2015

ericLemanissier

2 - Nov - 2015

Sérgio Martins

2 - Nov - 2015

ericLemanissier

17 - Nov - 2015

Eugene Zelenko

SérgioMartins

Sérgio Martins

Senior Software Engineer

Learn Modern C++

Learn more