Skip to content

Commit

Permalink
Add inspect check for unguarded boost::format usage
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ballo committed Sep 15, 2017
1 parent c3385f8 commit 3bac096
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hpx/util/format.hpp
Expand Up @@ -3,6 +3,9 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

// hpxinspect:nodeprecatedinclude:boost/format.hpp
// hpxinspect:nodeprecatedname:boost::format

#ifndef HPX_UTIL_FORMAT_HPP
#define HPX_UTIL_FORMAT_HPP

Expand Down
1 change: 1 addition & 0 deletions tools/inspect/deprecated_include_check.cpp
Expand Up @@ -48,6 +48,7 @@ namespace boost
{ "boost/atomic\\.hpp", "atomic" },
{ "boost/nondet_random.hpp", "random" },
{ "boost/random/([^\\s]*)\\.hpp", "random" },
{ "boost/format\\.hpp", "hpx/util/format.hpp" },
{ nullptr, nullptr }
};

Expand Down
1 change: 1 addition & 0 deletions tools/inspect/deprecated_name_check.cpp
Expand Up @@ -88,6 +88,7 @@ namespace boost
{ "(\\bboost\\s*::\\s*memory_order_((relaxed)|(acquire)|(release)|"
"(acq_rel)|(seq_cst))\\b)", "std::memory_order_\\2" },
{ "(\\bboost\\s*::\\s*random\\s*::\\s*([^\\s]*)\\b)", "std::\\2" },
{ "(\\bboost\\s*::\\s*format\\b)", "hpx::util::format[_to]" },
/////////////////////////////////////////////////////////////////////////
{ "((\\bhpx::\\b)?\\btraits\\s*::\\bis_callable\\b)", "\\2traits::is_invocable[_r]" },
{ "((\\bhpx::\\b)?\\butil\\s*::\\bresult_of\\b)", "\\2util::invoke_result" },
Expand Down

0 comments on commit 3bac096

Please sign in to comment.