[cfe-dev] Tests for Clang-tidy STL containers checks

Eugene Zelenko via cfe-dev cfe-dev at lists.llvm.org
Mon Dec 14 13:08:41 PST 2015


Hi!

While working on LLDB code cleanup, I discovered that some of
Clang-tidy STL containers checks don't work properly with LLVM STL
implementation. More interesting discovery was that actual STL
containers were not used in tests, but were replaced with code
snippets.

I think proper solution will be to use real STL headers and pass
proper compiler flags from CMAKE_CXX_FLAGS when compiled with Clang
and create -stdlib=libstdc++ --gcc-toolchain=<path> when compiled with
GCC. Similar solution could be implemented for other compilers/STL
implementations.

Eugene.


More information about the cfe-dev mailing list