]> granicus.if.org Git - clang/commit
PR19601: std::remove_if does not really remove the elements.
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 30 Apr 2014 19:59:22 +0000 (19:59 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 30 Apr 2014 19:59:22 +0000 (19:59 +0000)
commitac011f7b0309ebcea9ce1e4dc118c22afb21c2b8
treeb0f7eed435d6eda999dc6f6811359d957f5b7aa2
parentcc1fce58faa4b0d789b9cfaeae1002504514d45c
PR19601: std::remove_if does not really remove the elements.

It moves them at the end of the range instead, so an extra erase is needed.

It is strange that this code works without the erase. On the other hand, removing the remove_if will make fail some tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207696 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/CompilationDatabase.cpp