IWYU: Fix handling of <memory> standard header

An old workaround for `std::allocator_traits<>::value_type` lints from
IWYU on `std::vector<>` usage breaks IWYU's handling of `<memory>`.
Convert the workaround to use the same approach we already use for a
workaround of `std::__decay_and_strip<>::::__type` lints.  Then update
the `<memory>` inclusions to follow the now-correct IWYU lints.
This commit is contained in:
Brad King
2019-07-10 11:38:48 -04:00
parent 4fc10431f0
commit 71fbebd1dc
88 changed files with 104 additions and 69 deletions

View File

@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmForEachCommand.h"
#include <memory> // IWYU pragma: keep
#include <memory>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>