mirror of
https://github.com/boostorg/config.git
synced 2025-07-31 04:47:16 +02:00
Big clean up to fix issues identified by the inspect program.
Regenerate docs.
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
// riscv.cpp
|
// riscv.cpp
|
||||||
//
|
//
|
||||||
|
// Copyright Andreas Schwab 2019
|
||||||
// Distributed under the Boost Software License Version 1.0. (See
|
// Distributed under the Boost Software License Version 1.0. (See
|
||||||
// accompanying file LICENSE_1_0.txt or copy at
|
// accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
15
config.htm
15
config.htm
@ -1,15 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="refresh" content="0; URL=doc/html/index.html">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<P>
|
|
||||||
Automatic redirection failed, please go to <a href="doc/html/index.html">doc/html/index.html</a>.
|
|
||||||
</P>
|
|
||||||
<P>Copyright John Maddock 2001</P>
|
|
||||||
<P>Distributed under the Boost Software License, Version 1.0. (See accompanying file <A href="../../LICENSE_1_0.txt">
|
|
||||||
LICENSE_1_0.txt</A> or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</A>).</P>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
|
|
@ -1,3 +1,14 @@
|
|||||||
|
[/
|
||||||
|
Boost.Config
|
||||||
|
|
||||||
|
Copyright (c) 2001 Beman Dawes
|
||||||
|
Copyright (c) 2001 Vesa Karvonen
|
||||||
|
Copyright (c) 2001 John Maddock
|
||||||
|
|
||||||
|
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)
|
||||||
|
]
|
||||||
|
|
||||||
[section:build_config Build Time Configuration]
|
[section:build_config Build Time Configuration]
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ Distributed under the Boost Software License, Version 1.0.
|
|||||||
|
|
||||||
[/ Cited Boost resources ]
|
[/ Cited Boost resources ]
|
||||||
|
|
||||||
[def __BOOST_REGRESSION_TEST_DRIVER__ [@../../../../tools/regression/doc/index.html boost regression test driver]]
|
|
||||||
[def __BOOST_CONFIG_HEADER__ [@../../../../boost/config.hpp <boost/config.hpp>]]
|
[def __BOOST_CONFIG_HEADER__ [@../../../../boost/config.hpp <boost/config.hpp>]]
|
||||||
[def __BOOST_CONFIG_USER_HEADER__ [@../../../../boost/config/user.hpp <boost/config/user.hpp>]]
|
[def __BOOST_CONFIG_USER_HEADER__ [@../../../../boost/config/user.hpp <boost/config/user.hpp>]]
|
||||||
[def __BOOST_CONFIG_SUFFIX_HEADER__ [@../../../../boost/config/detail/suffix.hpp <boost/config/detail/suffix.hpp>]]
|
[def __BOOST_CONFIG_SUFFIX_HEADER__ [@../../../../boost/config/detail/suffix.hpp <boost/config/detail/suffix.hpp>]]
|
||||||
|
@ -419,9 +419,6 @@ Although you can run the configuration regression tests as individual test
|
|||||||
files, there are rather a lot of them, so there are a couple of shortcuts to
|
files, there are rather a lot of them, so there are a couple of shortcuts to
|
||||||
help you out:
|
help you out:
|
||||||
|
|
||||||
If you have built the __BOOST_REGRESSION_TEST_DRIVER__, then you can use this to
|
|
||||||
produce a nice html formatted report of the results using the supplied test file.
|
|
||||||
|
|
||||||
Alternatively you can run the configure script like this:
|
Alternatively you can run the configure script like this:
|
||||||
|
|
||||||
[: `./configure --enable-test`]
|
[: `./configure --enable-test`]
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
[/
|
||||||
|
Boost.Config
|
||||||
|
|
||||||
|
Copyright (c) 2001 Beman Dawes
|
||||||
|
Copyright (c) 2001 Vesa Karvonen
|
||||||
|
Copyright (c) 2001 John Maddock
|
||||||
|
|
||||||
|
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)
|
||||||
|
]
|
||||||
|
|
||||||
[section:cstdint Standard Integer Types]
|
[section:cstdint Standard Integer Types]
|
||||||
|
|
||||||
[section Overview]
|
[section Overview]
|
||||||
|
@ -3832,6 +3832,18 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<code class="computeroutput"><span class="identifier">BOOST_NO_CXX17_HDR_VARIANT</span></code>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
The compiler does not support the header <code class="computeroutput"><span class="special"><</span><span class="identifier">variant</span><span class="special">></span></code>.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<code class="computeroutput"><span class="identifier">BOOST_NO_CXX17_HDR_STRING_VIEW</span></code>
|
<code class="computeroutput"><span class="identifier">BOOST_NO_CXX17_HDR_STRING_VIEW</span></code>
|
||||||
@ -4567,6 +4579,33 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<code class="computeroutput"><span class="identifier">BOOST_ATTRIBUTE_NODISCARD</span></code>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
Expands to <code class="computeroutput"><span class="special">[[</span><span class="identifier">nodiscard</span><span class="special">]]</span></code> when this is available - can
|
||||||
|
be used to create a warning when a type or variable is unused.
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
<code class="computeroutput"><span class="identifier">BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS</span></code>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p>
|
||||||
|
Expands to <code class="computeroutput"><span class="special">[[</span><span class="identifier">no_unique_address</span><span class="special">]]</span></code> when this is available - can
|
||||||
|
be used to indicate that a non-static data member need not have
|
||||||
|
a unique address (for example empty classes).
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<p>
|
||||||
<code class="computeroutput"><span class="identifier">BOOST_MAY_ALIAS</span></code>,
|
<code class="computeroutput"><span class="identifier">BOOST_MAY_ALIAS</span></code>,
|
||||||
|
@ -104,7 +104,8 @@
|
|||||||
Notice that multiple arguments can be added to the requires rule, and that
|
Notice that multiple arguments can be added to the requires rule, and that
|
||||||
these are always the same as the Boost.Config macro name, but in lower case
|
these are always the same as the Boost.Config macro name, but in lower case
|
||||||
and with the <span class="emphasis"><em>boost_no_</em></span> or <span class="emphasis"><em>boost_has_</em></span>
|
and with the <span class="emphasis"><em>boost_no_</em></span> or <span class="emphasis"><em>boost_has_</em></span>
|
||||||
prefix removed.
|
prefix removed. You can also use any C++ standard feature-macro name with the
|
||||||
|
leading underscores removed (see more below).
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
When building the above example, you will see at the start of the build process
|
When building the above example, you will see at the start of the build process
|
||||||
@ -114,6 +115,36 @@
|
|||||||
<span class="special">-</span> <span class="identifier">Boost</span><span class="special">.</span><span class="identifier">Config</span> <span class="identifier">Feature</span> <span class="identifier">Check</span><span class="special">:</span> <span class="identifier">cxx11_constexpr</span> <span class="special">:</span> <span class="identifier">yes</span>
|
<span class="special">-</span> <span class="identifier">Boost</span><span class="special">.</span><span class="identifier">Config</span> <span class="identifier">Feature</span> <span class="identifier">Check</span><span class="special">:</span> <span class="identifier">cxx11_constexpr</span> <span class="special">:</span> <span class="identifier">yes</span>
|
||||||
<span class="special">-</span> <span class="identifier">Boost</span><span class="special">.</span><span class="identifier">Config</span> <span class="identifier">Feature</span> <span class="identifier">Check</span><span class="special">:</span> <span class="identifier">cxx11_user_defined_literals</span> <span class="special">:</span> <span class="identifier">yes</span>
|
<span class="special">-</span> <span class="identifier">Boost</span><span class="special">.</span><span class="identifier">Config</span> <span class="identifier">Feature</span> <span class="identifier">Check</span><span class="special">:</span> <span class="identifier">cxx11_user_defined_literals</span> <span class="special">:</span> <span class="identifier">yes</span>
|
||||||
</pre>
|
</pre>
|
||||||
|
<p>
|
||||||
|
If you wish to make a build conditional on a C++ standard feature macro then
|
||||||
|
you can specify these too, just remove the leading underscores from the name.
|
||||||
|
For example:
|
||||||
|
</p>
|
||||||
|
<pre class="programlisting"><span class="special">[</span> <span class="identifier">requires</span> <span class="identifier">cpp_constexpr</span> <span class="special">]</span>
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
To require C++11 style const-expressions. If you want to specify a macro from
|
||||||
|
a particular standard, then you append an underscore followed by the (2 digit)
|
||||||
|
year of the standard, for example:
|
||||||
|
</p>
|
||||||
|
<pre class="programlisting"><span class="special">[</span> <span class="identifier">requires</span> <span class="identifier">cpp_constexpr_17</span> <span class="special">]</span>
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
For C++17 constepxr. If you don't specify a standard then you get the first
|
||||||
|
version that introduced the macro. In addition there are only standard-specific
|
||||||
|
rules for each version bump of the macro, so:
|
||||||
|
</p>
|
||||||
|
<pre class="programlisting"><span class="special">[</span> <span class="identifier">requires</span> <span class="identifier">cpp_if_constexpr_17</span> <span class="special">]</span>
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
Is fine since the macro was introduced in C++17 and is the same as the un-versioned
|
||||||
|
name, but:
|
||||||
|
</p>
|
||||||
|
<pre class="programlisting"><span class="special">[</span> <span class="identifier">requires</span> <span class="identifier">cpp_if_constexpr_20</span> <span class="special">]</span>
|
||||||
|
</pre>
|
||||||
|
<p>
|
||||||
|
Will result in a build error since there is no C++20 version bump for <code class="computeroutput"><span class="identifier">__cpp_if_constexpr</span></code>.
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
That's all there is to this handy feature, should at any time you be unsure
|
That's all there is to this handy feature, should at any time you be unsure
|
||||||
of the feature-test names you can pass to the "requires" rule, then
|
of the feature-test names you can pass to the "requires" rule, then
|
||||||
|
@ -969,11 +969,6 @@
|
|||||||
files, there are rather a lot of them, so there are a couple of shortcuts
|
files, there are rather a lot of them, so there are a couple of shortcuts
|
||||||
to help you out:
|
to help you out:
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
If you have built the <a href="../../../../tools/regression/doc/index.html" target="_top">boost
|
|
||||||
regression test driver</a>, then you can use this to produce a nice html
|
|
||||||
formatted report of the results using the supplied test file.
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Alternatively you can run the configure script like this:
|
Alternatively you can run the configure script like this:
|
||||||
</p>
|
</p>
|
||||||
@ -993,7 +988,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||||
<td align="left"><p><small>Last revised: October 15, 2018 at 16:56:00 GMT</small></p></td>
|
<td align="left"><p><small>Last revised: August 20, 2019 at 17:48:08 GMT</small></p></td>
|
||||||
<td align="right"><div class="copyright-footer"></div></td>
|
<td align="right"><div class="copyright-footer"></div></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -110,9 +110,6 @@ test-suite config
|
|||||||
[ compile header_deprecated_test.cpp ]
|
[ compile header_deprecated_test.cpp ]
|
||||||
;
|
;
|
||||||
|
|
||||||
obj has_clang_implicit_fallthrough : cmd_line_check.cpp :
|
|
||||||
<toolset>clang:<cxxflags>"-std=c++11 -Wimplicit-fallthrough" <warnings-as-errors>on <warnings>all ;
|
|
||||||
|
|
||||||
explicit has_clang_implicit_fallthrough ;
|
explicit has_clang_implicit_fallthrough ;
|
||||||
|
|
||||||
exe config_info_printer : config_info.cpp ;
|
exe config_info_printer : config_info.cpp ;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// (C) Copyright John Maddock 2013.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
// Boost Software License, Version 1.0. (See accompanying file
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
#ifndef __clang__
|
|
||||||
# error "This test is for Clang only"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
@ -1,4 +1,8 @@
|
|||||||
|
/* (C) Copyright John Maddock 2011.
|
||||||
|
Use, modification and distribution are subject to 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)
|
||||||
|
*/
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
// (C) Copyright John Maddock 2014-9.
|
||||||
|
// (C) Copyright Andrey Semashev 2017.
|
||||||
// Use, modification and distribution are subject to the
|
// Use, modification and distribution are subject to the
|
||||||
// Boost Software License, Version 1.0. (See accompanying file
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
Reference in New Issue
Block a user