aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralperevyshin <alperevyshin@yandex-team.com>2023-05-08 16:47:06 +0300
committeralperevyshin <alperevyshin@yandex-team.com>2023-05-08 16:47:06 +0300
commit8107c88ce7480dfc685a7227eb3b44c9e9f666b1 (patch)
treeeb60d3ae57e1954bf910fa5291ec4f6b58a90352
parent12a3e9b5a765cf68340fa6286661deec892ce3a9 (diff)
downloadydb-8107c88ce7480dfc685a7227eb3b44c9e9f666b1.tar.gz
Mark import of unused macros as error. Contribs under yamaker, pt. 1
При обычной сборке буста эти макросы не должны инклудится даже с учетом того, что они задефайнены на какие-то существующие пути. Подробнее для макроса `PP*` — [в комментарии](https://arcanum.yandex-team.ru/arcadia/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp?#L20) перед этими инклудами: > Hide these #include from dependency analysers as > these are required in maintenance mode only Подробнее для макроса `BOOST_REGEX_H*` [в комментарии](https://arcanum.yandex-team.ru/arcadia/contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp?#L125) перед этими инклудами: > Since this preprocessor path is almost never taken, we hide these header > dependencies so that build tools don't find them.
-rw-r--r--contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp6
-rw-r--r--contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp6
-rw-r--r--contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_tester.hpp6
-rw-r--r--contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp6
-rw-r--r--contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp6
5 files changed, 15 insertions, 15 deletions
diff --git a/contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp b/contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp
index 344926f6ab..953a037a09 100644
--- a/contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp
+++ b/contrib/restricted/boost/regex/include/boost/regex/pending/static_mutex.hpp
@@ -128,9 +128,9 @@ private:
#define BOOST_REGEX_H1 <boost/thread/once.hpp>
#define BOOST_REGEX_H2 <boost/thread/recursive_mutex.hpp>
#define BOOST_REGEX_H3 <boost/thread/lock_types.hpp>
-#include BOOST_REGEX_H1
-#include BOOST_REGEX_H2
-#include BOOST_REGEX_H3
+#error #include BOOST_REGEX_H1
+#error #include BOOST_REGEX_H2
+#error #include BOOST_REGEX_H3
#undef BOOST_REGEX_H1
#undef BOOST_REGEX_H2
#undef BOOST_REGEX_H3
diff --git a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp
index 688c5dad91..3a6cf64867 100644
--- a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp
+++ b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_helper.hpp
@@ -21,13 +21,13 @@
// these are required in maintenance mode only:
//
#define PP1 <boost/preprocessor/iterate.hpp>
-#include PP1
+#error #include PP1
#undef PP1
#define PP1 <boost/preprocessor/enum_params.hpp>
-#include PP1
+#error #include PP1
#undef PP1
#define PP1 <boost/preprocessor/comma_if.hpp>
-#include PP1
+#error #include PP1
#undef PP1
#endif
diff --git a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_tester.hpp b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_tester.hpp
index 1c8683c04d..ad7defe619 100644
--- a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_tester.hpp
+++ b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_function_ptr_tester.hpp
@@ -24,9 +24,9 @@
#define PP1 <boost/preprocessor/iterate.hpp>
#define PP2 <boost/preprocessor/enum_params.hpp>
#define PP3 <boost/preprocessor/comma_if.hpp>
-#include PP1
-#include PP2
-#include PP3
+#error #include PP1
+#error #include PP2
+#error #include PP3
#undef PP1
#undef PP2
#undef PP3
diff --git a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp
index 90b825dd07..e6ff406951 100644
--- a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp
+++ b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp
@@ -22,13 +22,13 @@
// from trackers:
//
#define PPI <boost/preprocessor/iterate.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#define PPI <boost/preprocessor/enum_params.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#define PPI <boost/preprocessor/comma_if.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#endif
diff --git a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp
index 083a10fd25..2f95d46c03 100644
--- a/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp
+++ b/contrib/restricted/boost/type_traits/include/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp
@@ -23,13 +23,13 @@
// from dependency trackers:
//
#define PPI <boost/preprocessor/iterate.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#define PPI <boost/preprocessor/enum_params.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#define PPI <boost/preprocessor/comma_if.hpp>
-#include PPI
+#error #include PPI
#undef PPI
#endif