Improve docs

This commit is contained in:
Victor Zverovich 2020-11-08 06:48:34 -08:00
parent e29f93e8a8
commit 8cf0afaf1c
2 changed files with 13 additions and 11 deletions

View File

@ -443,13 +443,12 @@ Format string compilation
=========================
``fmt/compile.h`` provides format string compilation support when using
``FMT_COMPILE``. Format strings are parsed, checked and converted
into efficient formatting code at compile-time.
This supports arguments of built-in and string types as well as user-defined types
with ``constexpr`` ``parse`` functions in their ``formatter`` specializations.
Format string compilation can generate more binary code compared to the default
API and is only recommended in places where formatting is a performance
bottleneck.
``FMT_COMPILE``. Format strings are parsed, checked and converted into efficient
formatting code at compile-time. This supports arguments of built-in and string
types as well as user-defined types with ``constexpr`` ``parse`` functions in
their ``formatter`` specializations. Format string compilation can generate more
binary code compared to the default API and is only recommended in places where
formatting is a performance bottleneck.
.. doxygendefine:: FMT_COMPILE

View File

@ -89,11 +89,14 @@ def build_docs(version='dev', **kwargs):
fmt::basic_format_arg::handle
'''.format(include_dir, doxyxml_dir).encode('UTF-8'))
noisy_warnings = [
'warning: .* fmt::detail::.* is not documented.',
'warning: Internal inconsistency: member .* does not belong to any ' +
'container!'
'warning: Internal inconsistency: .* does not belong to any container!'
]
for w in noisy_warnings:
internal_symbols = [
'fmt::detail::.*',
'basic_data<>',
'fmt::dynamic_formatter'
]
for w in noisy_warnings + ['(' + '|'.join(internal_symbols) + ')']:
out = re.sub('.*' + w + '\n', '', out)
print(out)
if p.returncode != 0: