mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix warning filtering
This commit is contained in:
10
doc/build.py
10
doc/build.py
@ -88,15 +88,17 @@ def build_docs(version='dev', **kwargs):
|
|||||||
EXCLUDE_SYMBOLS = fmt::formatter fmt::printf_formatter fmt::arg_join \
|
EXCLUDE_SYMBOLS = fmt::formatter fmt::printf_formatter fmt::arg_join \
|
||||||
fmt::basic_format_arg::handle
|
fmt::basic_format_arg::handle
|
||||||
'''.format(include_dir, doxyxml_dir).encode('UTF-8'))
|
'''.format(include_dir, doxyxml_dir).encode('UTF-8'))
|
||||||
noisy_warnings = [
|
|
||||||
'warning: Internal inconsistency: .* does not belong to any container!'
|
|
||||||
]
|
|
||||||
internal_symbols = [
|
internal_symbols = [
|
||||||
'fmt::detail::.*',
|
'fmt::detail::.*',
|
||||||
'basic_data<>',
|
'basic_data<>',
|
||||||
|
'fmt::type_identity',
|
||||||
'fmt::dynamic_formatter'
|
'fmt::dynamic_formatter'
|
||||||
]
|
]
|
||||||
for w in noisy_warnings + ['(' + '|'.join(internal_symbols) + ')']:
|
noisy_warnings = [
|
||||||
|
'warning: Compound (' + '|'.join(internal_symbols) + ') is not documented.',
|
||||||
|
'warning: Internal inconsistency: .* does not belong to any container!'
|
||||||
|
]
|
||||||
|
for w in noisy_warnings:
|
||||||
out = re.sub('.*' + w + '\n', '', out)
|
out = re.sub('.*' + w + '\n', '', out)
|
||||||
print(out)
|
print(out)
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
Reference in New Issue
Block a user