mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-27 11:40:26 +00:00
Improve docs
This commit is contained in:
parent
e29f93e8a8
commit
8cf0afaf1c
13
doc/api.rst
13
doc/api.rst
@ -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
|
||||
|
||||
|
11
doc/build.py
11
doc/build.py
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user