mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-14 20:56:26 +00:00
[libc++][test][NFC] Remove unused inclusions of <iostream>
(#134776)
Some test files for flat container adaptors redundantly include `<iostream>` and, surprisingly, `<cstddef>`. This patch removes the redundant inclusions. Inclusions of `<vector>` is also removed since a sane implementation is expected to make instantiation of `flat_(multi)map<K, V>` or `flat_(multi)set<K>` valid when only `<flat_map>` or `<flat_set>` is included.
This commit is contained in:
parent
12a7155ee2
commit
5c45e239e8
@ -19,16 +19,13 @@
|
||||
// const_reverse_iterator crend() const noexcept;
|
||||
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <deque>
|
||||
#include <flat_map>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int, char**) {
|
||||
{
|
||||
|
@ -21,16 +21,13 @@
|
||||
// const_reverse_iterator crend() const noexcept;
|
||||
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <deque>
|
||||
#include <flat_map>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int, char**) {
|
||||
{
|
||||
|
@ -19,16 +19,13 @@
|
||||
// const_reverse_iterator crend() const noexcept;
|
||||
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <deque>
|
||||
#include <flat_set>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include <iostream>
|
||||
|
||||
void test() {
|
||||
{
|
||||
|
@ -19,16 +19,13 @@
|
||||
// const_reverse_iterator crend() const noexcept;
|
||||
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <deque>
|
||||
#include <flat_set>
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include <iostream>
|
||||
|
||||
void test() {
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user