Skip to content

Commit

Permalink
Add inspect check for missing #include <list>, fix violations
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ballo committed May 20, 2016
1 parent 4324def commit b394a47
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions examples/nqueen/nqueen_client.cpp
Expand Up @@ -13,6 +13,7 @@

#include <boost/lexical_cast.hpp>

#include <list>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions hpx/lcos/local/trigger.hpp
Expand Up @@ -17,6 +17,7 @@
#include <hpx/util/assert_owns_lock.hpp>
#include <hpx/util/unlock_guard.hpp>

#include <list>
#include <mutex>
#include <utility>

Expand Down
2 changes: 1 addition & 1 deletion hpx/parallel/algorithms/sort.hpp
Expand Up @@ -32,9 +32,9 @@

#include <algorithm>
#include <iterator>
#include <list>
#include <type_traits>
#include <utility>
#include <list>

namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/segmented_algorithms/detail/dispatch.hpp
Expand Up @@ -20,6 +20,7 @@

#include <boost/exception_ptr.hpp>

#include <list>
#include <type_traits>

namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1) { namespace detail
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/util/foreach_partitioner.hpp
Expand Up @@ -30,6 +30,7 @@
#include <boost/make_shared.hpp>

#include <algorithm>
#include <list>
#include <vector>

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/util/partitioner.hpp
Expand Up @@ -30,6 +30,7 @@
#include <boost/range/functions.hpp>

#include <iterator>
#include <list>
#include <vector>

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/util/partitioner_with_cleanup.hpp
Expand Up @@ -27,6 +27,7 @@
#include <boost/make_shared.hpp>

#include <algorithm>
#include <list>
#include <vector>

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions hpx/parallel/util/scan_partitioner.hpp
Expand Up @@ -30,6 +30,7 @@
#include <boost/make_shared.hpp>

#include <algorithm>
#include <list>
#include <vector>

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions hpx/plugins/parcelport/ibverbs/acceptor.hpp
Expand Up @@ -24,6 +24,7 @@
#include <boost/atomic.hpp>

#include <cstring>
#include <list>
#include <memory>
#include <string>

Expand Down
1 change: 1 addition & 0 deletions hpx/plugins/parcelport/ibverbs/connection_handler.hpp
Expand Up @@ -23,6 +23,7 @@

#include <boost/atomic.hpp>

#include <list>
#include <map>
#include <memory>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions hpx/runtime/agas/server/primary_namespace.hpp
Expand Up @@ -31,6 +31,7 @@
#endif

#include <cstdint>
#include <list>
#include <map>
#include <memory>
#include <mutex>
Expand Down
1 change: 1 addition & 0 deletions hpx/runtime/parcelset/parcelport.hpp
Expand Up @@ -23,6 +23,7 @@
#include <boost/cstdint.hpp>

#include <deque>
#include <list>
#include <map>
#include <memory>
#include <mutex>
Expand Down
Expand Up @@ -15,6 +15,7 @@
#include <hpx/lcos/local/promise.hpp>
#include <hpx/util/unwrapped.hpp>

#include <list>
#include <map>
#include <memory>
#include <mutex>
Expand Down
1 change: 1 addition & 0 deletions hpx/runtime/threads/policies/thread_queue.hpp
Expand Up @@ -30,6 +30,7 @@

#include <cstddef>
#include <functional>
#include <list>
#include <map>
#include <memory>
#include <mutex>
Expand Down
2 changes: 1 addition & 1 deletion hpx/util/cache/lru_cache.hpp
Expand Up @@ -10,8 +10,8 @@
#include <hpx/util/cache/statistics/no_statistics.hpp>

#include <algorithm>
#include <map>
#include <list>
#include <map>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace util { namespace cache
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/serialization/output_archive.cpp
Expand Up @@ -6,6 +6,8 @@
#include <hpx/config.hpp>
#include <hpx/runtime/serialization/output_archive.hpp>

#include <list>

namespace hpx { namespace serialization
{
void output_archive::add_gid(
Expand Down
1 change: 1 addition & 0 deletions src/runtime_impl.cpp
Expand Up @@ -31,6 +31,7 @@
#include <boost/ref.hpp>

#include <iostream>
#include <list>
#include <mutex>
#include <sstream>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions tests/unit/lcos/when_some.cpp
Expand Up @@ -10,6 +10,7 @@
#include <hpx/include/threads.hpp>
#include <hpx/util/lightweight_test.hpp>

#include <list>
#include <memory>
#include <string>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions tests/unit/serialization/serialization_list.cpp
Expand Up @@ -11,6 +11,7 @@

#include <hpx/util/lightweight_test.hpp>

#include <list>
#include <vector>

template <typename T>
Expand Down
1 change: 1 addition & 0 deletions tools/inspect/include_check.cpp
Expand Up @@ -33,6 +33,7 @@ namespace boost
{ "(\\bstd\\s*::\\s*((shared|unique)_ptr)\\b)", "std::\\2", "memory" },
{ "(\\bstd\\s*::\\s*(unordered_((map|set)))\\b)", "std::\\2", "unordered_\\3" },
{ "(\\bstd\\s*::\\s*(unordered_multi((map)|(set)))\\b)", "std::\\2", "unordered_\\3" },
{ "(\\bstd\\s*::\\s*list\\b)", "std::list", "list" },
{ "(\\bstd\\s*::\\s*string\\b)", "std::string", "string" },
{ "(\\bstd\\s*::\\s*vector\\b)", "std::vector", "vector" },
{ "(\\bstd\\s*::\\s*(mem((set)|(cpy)|(move)))\\b)", "std::\\2", "cstring" },
Expand Down

0 comments on commit b394a47

Please sign in to comment.